glm.h File Reference

#include <GL/gl.h>

Go to the source code of this file.

Classes

struct  _GLMmaterial
struct  _GLMtriangle
struct  _GLMgroup
struct  _GLMmodel

Defines

#define M_PI   3.14159265
#define GLM_NONE   (0)
#define GLM_FLAT   (1 << 0)
#define GLM_SMOOTH   (1 << 1)
#define GLM_TEXTURE   (1 << 2)
#define GLM_COLOR   (1 << 3)
#define GLM_MATERIAL   (1 << 4)

Typedefs

typedef _GLMmaterial GLMmaterial
typedef _GLMtriangle GLMtriangle
typedef _GLMgroup GLMgroup
typedef _GLMmodel GLMmodel

Functions

GLfloat glmUnitize (GLMmodel *model)
GLvoid glmDimensions (GLMmodel *model, GLfloat *dimensions)
GLvoid glmScale (GLMmodel *model, GLfloat scale)
GLvoid glmReverseWinding (GLMmodel *model)
GLvoid glmFacetNormals (GLMmodel *model)
GLvoid glmVertexNormals (GLMmodel *model, GLfloat angle)
GLvoid glmLinearTexture (GLMmodel *model)
GLvoid glmSpheremapTexture (GLMmodel *model)
GLvoid glmDelete (GLMmodel *model)
GLMmodelglmReadOBJ (const char *filename)
GLvoid glmWriteOBJ (GLMmodel *model, char *filename, GLuint mode)
GLvoid glmDraw (GLMmodel *model, GLuint mode)
GLuint glmList (GLMmodel *model, GLuint mode)
GLvoid glmWeld (GLMmodel *model, GLfloat epsilon)


Define Documentation

#define GLM_COLOR   (1 << 3)
 

Definition at line 21 of file glm.h.

Referenced by glmDraw(), and glmWriteOBJ().

#define GLM_FLAT   (1 << 0)
 

Definition at line 18 of file glm.h.

Referenced by glmWriteOBJ().

#define GLM_MATERIAL   (1 << 4)
 

Definition at line 22 of file glm.h.

Referenced by glmWriteOBJ().

#define GLM_NONE   (0)
 

Definition at line 17 of file glm.h.

#define GLM_SMOOTH   (1 << 1)
 

Definition at line 19 of file glm.h.

Referenced by glmWriteOBJ().

#define GLM_TEXTURE   (1 << 2)
 

Definition at line 20 of file glm.h.

Referenced by glmWriteOBJ().

#define M_PI   3.14159265
 

Definition at line 14 of file glm.h.

Referenced by Hemisphere::dir2uvPriorToPoweredZenith(), Hemisphere::dir2uvPriorToZenith(), Hemisphere::dir2uvUniformly(), glmVertexNormals(), Photon::Photon(), Sphere::randomDirection(), Sphere::randomSample(), and Hemisphere::world2local2D().


Typedef Documentation

typedef struct _GLMgroup GLMgroup
 

typedef struct _GLMmaterial GLMmaterial
 

typedef struct _GLMmodel GLMmodel
 

typedef struct _GLMtriangle GLMtriangle
 


Function Documentation

GLvoid glmDelete GLMmodel model  ) 
 

Definition at line 1269 of file glm.c.

References _GLMmodel::facetnorms, _GLMmodel::groups, _GLMmodel::materials, _GLMmodel::mtllibname, _GLMmaterial::name, _GLMgroup::name, _GLMgroup::next, _GLMmodel::normals, _GLMmodel::nummaterials, _GLMmodel::pathname, _GLMmodel::texcoords, _GLMmodel::triangles, _GLMgroup::triangles, and _GLMmodel::vertices.

GLvoid glmDimensions GLMmodel model,
GLfloat *  dimensions
 

Definition at line 838 of file glm.c.

References _GLMmodel::numvertices, and _GLMmodel::vertices.

Referenced by glmLinearTexture().

GLvoid glmDraw GLMmodel model,
GLuint  mode
 

Definition at line 1580 of file glm.c.

References _GLMmaterial::ambient, _GLMmaterial::diffuse, _GLMmodel::facetnorms, _GLMtriangle::findex, GLM_COLOR, _GLMmodel::groups, _GLMgroup::material, _GLMmodel::materials, _GLMgroup::next, _GLMtriangle::nindices, _GLMmodel::normals, _GLMgroup::numtriangles, _GLMmaterial::shininess, _GLMmaterial::specular, T, _GLMmodel::texcoords, _GLMtriangle::tindices, _GLMgroup::triangles, _GLMmodel::vertices, and _GLMtriangle::vindices.

Referenced by glmList().

GLvoid glmFacetNormals GLMmodel model  ) 
 

Definition at line 944 of file glm.c.

References _GLMmodel::facetnorms, _GLMtriangle::findex, glmCross(), glmNormalize(), _GLMmodel::numfacetnorms, _GLMmodel::numtriangles, T, _GLMmodel::triangles, and _GLMmodel::vertices.

Referenced by MayaParser::_init_model().

GLvoid glmLinearTexture GLMmodel model  ) 
 

Definition at line 1157 of file glm.c.

References glmAbs(), glmDimensions(), glmMax(), _GLMmodel::numtexcoords, _GLMmodel::numvertices, _GLMmodel::texcoords, and _GLMmodel::vertices.

GLuint glmList GLMmodel model,
GLuint  mode
 

Definition at line 1696 of file glm.c.

References glmDraw().

GLMmodel* glmReadOBJ const char *  filename  ) 
 

Definition at line 1306 of file glm.c.

References _GLMmodel::facetnorms, glmFirstPass(), glmSecondPass(), _GLMmodel::groups, _GLMmodel::materials, _GLMmodel::mtllibname, _GLMmodel::normals, _GLMmodel::numfacetnorms, _GLMmodel::numgroups, _GLMmodel::nummaterials, _GLMmodel::numnormals, _GLMmodel::numtexcoords, _GLMmodel::numtriangles, _GLMmodel::numvertices, _GLMmodel::pathname, _GLMmodel::position, _GLMmodel::texcoords, _GLMmodel::triangles, and _GLMmodel::vertices.

Referenced by MayaParser::MayaParser().

GLvoid glmReverseWinding GLMmodel model  ) 
 

Definition at line 898 of file glm.c.

References _GLMmodel::numnormals, _GLMmodel::numtexcoords, _GLMmodel::numtriangles, swap, and T.

GLvoid glmScale GLMmodel model,
GLfloat  scale
 

Definition at line 880 of file glm.c.

References _GLMmodel::numvertices, and _GLMmodel::vertices.

GLvoid glmSpheremapTexture GLMmodel model  ) 
 

Definition at line 1212 of file glm.c.

References _GLMmodel::normals, _GLMmodel::numnormals, _GLMmodel::numtexcoords, and _GLMmodel::texcoords.

Referenced by MayaParser::_init_model().

GLfloat glmUnitize GLMmodel model  ) 
 

Definition at line 774 of file glm.c.

References _GLMmodel::numvertices, and _GLMmodel::vertices.

Referenced by MayaParser::_init_model().

GLvoid glmVertexNormals GLMmodel model,
GLfloat  angle
 

Definition at line 1001 of file glm.c.

References _GLMmodel::facetnorms, M_PI, _GLMmodel::normals, _GLMmodel::numnormals, _GLMmodel::numtriangles, _GLMmodel::numvertices, and T.

Referenced by MayaParser::_init_model().

GLvoid glmWeld GLMmodel model,
GLfloat  epsilon
 

Definition at line 1717 of file glm.c.

References glmWeldVectors(), _GLMmodel::numtriangles, _GLMmodel::numvertices, T, and _GLMmodel::vertices.

GLvoid glmWriteOBJ GLMmodel model,
char *  filename,
GLuint  mode
 

Definition at line 1386 of file glm.c.

References _GLMmodel::facetnorms, GLM_COLOR, GLM_FLAT, GLM_MATERIAL, GLM_SMOOTH, GLM_TEXTURE, glmWriteMTL(), _GLMmodel::materials, _GLMmodel::mtllibname, _GLMmodel::normals, _GLMmodel::numvertices, _GLMmodel::texcoords, and _GLMmodel::vertices.


Generated on Wed Jun 28 12:24:32 2006 for esg by  doxygen 1.4.6