Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

OBJlib.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <GL/gl.h>

Go to the source code of this file.

Compounds

struct  _GLMgroup
struct  _GLMmaterial
struct  GLMmodel
struct  GLMtriangle

Defines

#define M_PI   3.14159265
#define MakePlane   loadOBJfile
#define DrawPlane   drawOBJ
#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 _GLMgroup GLMgroup

Functions

int loadOBJfile (char *filename)
void drawOBJ (int wingID)
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 (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 DrawPlane   drawOBJ
 

#define GLM_COLOR   (1 << 3)
 

#define GLM_FLAT   (1 << 0)
 

#define GLM_MATERIAL   (1 << 4)
 

#define GLM_NONE   (0)
 

#define GLM_SMOOTH   (1 << 1)
 

#define GLM_TEXTURE   (1 << 2)
 

#define M_PI   3.14159265
 

#define MakePlane   loadOBJfile
 


Typedef Documentation

typedef struct _GLMgroup GLMgroup
 

typedef struct _GLMmaterial GLMmaterial
 


Function Documentation

void drawOBJ int    wingID
 

GLvoid glmDelete GLMmodel   model
 

GLvoid glmDimensions GLMmodel   model,
GLfloat *    dimensions
 

GLvoid glmDraw GLMmodel   model,
GLuint    mode
 

GLvoid glmFacetNormals GLMmodel   model
 

GLvoid glmLinearTexture GLMmodel   model
 

GLuint glmList GLMmodel   model,
GLuint    mode
 

GLMmodel* glmReadOBJ char *    filename
 

GLvoid glmReverseWinding GLMmodel   model
 

GLvoid glmScale GLMmodel   model,
GLfloat    scale
 

GLvoid glmSpheremapTexture GLMmodel   model
 

GLfloat glmUnitize GLMmodel   model
 

GLvoid glmVertexNormals GLMmodel   model,
GLfloat    angle
 

GLvoid glmWeld GLMmodel   model,
GLfloat    epsilon
 

GLvoid glmWriteOBJ GLMmodel   model,
char *    filename,
GLuint    mode
 

int loadOBJfile char *    filename
 


Generated on Sun Jun 16 17:36:43 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001