Lines Matching refs:model

32 /* GLMmaterial: Structure that defines a material in a model. 
49 /* GLMtriangle: Structure that defines a triangle in a model.
58 /* GLMgroup: Structure that defines a group in a model.
68 struct _GLMgroup* next; /* pointer to next group in model */
71 /* GLMmodel: Structure that defines a model.
74 char* pathname; /* path to this model */
77 uint numvertices; /* number of vertices in model */
80 uint numnormals; /* number of normals in model */
83 uint numtexcoords; /* number of texcoords in model */
86 uint numfacetnorms; /* number of facetnorms in model */
89 uint numtriangles; /* number of triangles in model */
92 uint nummaterials; /* number of materials in model */
95 uint numgroups; /* number of groups in model */
98 float position[3]; /* position of the model */
112 /* glmUnitize: "unitize" a model by translating it to the origin and
116 * model - properly initialized GLMmodel structure
119 glmUnitize(GLMmodel* model);
122 * a model.
124 * model - initialized GLMmodel structure
128 glmDimensions(GLMmodel* model, float* dimensions);
130 /* glmScale: Scales a model by a given amount.
132 * model - properly initialized GLMmodel structure
136 glmScale(GLMmodel* model, float scale);
139 * this model. Default winding is counter-clockwise. Also changes
142 * model - properly initialized GLMmodel structure
145 glmReverseWinding(GLMmodel* model);
147 /* glmFacetNormals: Generates facet normals for a model (by taking the
151 * model - initialized GLMmodel structure
154 glmFacetNormals(GLMmodel* model);
156 /* glmVertexNormals: Generates smooth vertex normals for a model.
167 * use depends on the model, but 90 degrees is usually a good start.
169 * model - initialized GLMmodel structure
173 glmVertexNormals(GLMmodel* model, float angle);
179 * model - pointer to initialized GLMmodel structure
182 glmLinearTexture(GLMmodel* model);
193 * model - pointer to initialized GLMmodel structure
196 glmSpheremapTexture(GLMmodel* model);
200 * model - initialized GLMmodel structure
203 glmDelete(GLMmodel* model);
205 /* glmReadOBJ: Reads a model description from a Wavefront .OBJ file.
214 /* glmWriteOBJ: Writes a model description in Wavefront .OBJ format to
217 * model - initialized GLMmodel structure
227 glmWriteOBJ(GLMmodel* model, char* filename, uint mode);
229 /* glmDraw: Renders the model to the current OpenGL context using the
232 * model - initialized GLMmodel structure
241 glmDraw(GLMmodel* model, uint mode);
243 /* glmList: Generates and returns a display list for the model using
246 * model - initialized GLMmodel structure
255 glmList(GLMmodel* model, uint mode);
260 * model - initialized GLMmodel structure
262 * ( 0.00001 is a good start for a unitized model)
266 glmWeld(GLMmodel* model, float epsilon);
269 glmReIndex(GLMmodel *model);
272 glmMakeVBOs(GLMmodel *model);
275 glmDrawVBO(GLMmodel *model);
278 glmPrint(const GLMmodel *model);
284 glmLoadTextures(GLMmodel *model);
287 glmSpecularTexture(GLMmodel *model, uint cubeTex);