GLEnergyRender.cc File Reference

#include <gra/render/GLEnergyRender.h>
#include <gra/camera/CameraGL.h>
#include <esg/explorer/ObjsExplorer.h>
#include <GL/gl.h>
#include <assert.h>
#include <GL/glut.h>

Go to the source code of this file.

Defines

#define __SET_MAP_FACET(c, e, s)


Define Documentation

#define __SET_MAP_FACET c,
e,
 ) 
 

Value:

{ \
   glBegin(GL_POLYGON); { \
        glTexCoord2f(0.0, 0.0); \
        glVertex3f((c).x + s[0] * (e.x/2),  \
                   (c).y + s[1] * (e.y/2),  \
                   (c).z + s[2] * (e.z/2)); \
        glTexCoord2f(0.0, 1.0); \
        glVertex3f((c).x + s[3] * (e.x/2),  \
                   (c).y + s[4] * (e.y/2),  \
                   (c).z + s[5] * (e.z/2)); \
        glTexCoord2f(1.0, 1.0); \
        glVertex3f((c).x + s[6] * (e.x/2),  \
                   (c).y + s[7] * (e.y/2),  \
                   (c).z + s[8] * (e.z/2)); \
        glTexCoord2f(1.0, 0.0); \
        glVertex3f((c).x + s[9]  * (e.x/2),  \
                   (c).y + s[10] * (e.y/2),  \
                   (c).z + s[11] * (e.z/2)); \
   } glEnd(); }

Definition at line 16 of file GLEnergyRender.cc.


Generated on Tue Nov 21 15:11:42 2006 for gra by  doxygen 1.4.6