gldesign2.c File Reference

Go to the source code of this file.

Defines

#define _DSCRUCT_SUB   1
#define TOL   1.e-4;

Functions

unsigned char * LoadMAP (char *InFile, long *xx, long *yy)
void TextureWithAlpha (long x, long y, unsigned char *pin, unsigned char alpha, BOOL, unsigned char, unsigned char, unsigned char)
void DrawGlNurbs (GLfloat)
void DrawProjectMapRectangle (void)
void makeCheckImageMap (int id)
void GetMappingCoordS (int id, vector n, vector dx, vector dy, vector p0, long *pv, GLfloat *a, GLfloat *b)
void GetMappingCoordP (int id, vector n, vector x, vector y, vector p0, long *pv, GLfloat *a, GLfloat *b)
void GetMappingCoordC (int id, vector n, vector x, vector y, vector p0, long *pv, GLfloat *a, GLfloat *b)
void GetMapNormal (int k, vector mP, vector mX, vector mY, vector mN)
BOOL normalise (GLfloat *v)
BOOL Normalize (point x, point y, point z, GLfloat *n)
BOOL inview (vertex *vp)
void FixUpMapEdge (GLfloat alpha[])
void Make3dDisplayListProg (void)

Variables

GLfloat up_angle
GLfloat round_angle
GLfloat gbRed
GLfloat gbGreen
GLfloat gbBlue
GLfloat gwRed
GLfloat gwGreen
GLfloat gwBlue
GLfloat near_plane
GLfloat far_plane
GLfloat vertex_scale
GLint listID
GLint mode
GLint bounding_box
GLint current_map
BOOL Mapped
BOOL Update
BOOL Fastest
BOOL Clamped
BOOL Cmaterial
BOOL AttenuateLight
BOOL TwoSided
BOOL ScrollBars
BOOL bDrawMapping
BOOL bOverlayWire
BOOL bOverlayWireHidden
BOOL bSelectOnlyInView
BOOL bThickWire
BOOL bNurbsWireOnly
BOOL bStereo
BOOL bStereoDraw
char gszBMPfile []
char gszBMPdir []
char gszRootDir []
GLMAPglMapList
long NglMapList
GLuint g_check_texture
GLuint g_map_texture
GLuint g_movie_texture
GLuint g_env_texture
GLuint g_envB_texture
GLuint g_bump_texture
GLuint g_ref_texture
GLuint g_tran_texture
GLuint g_noise_texture
GLubyte checkImage [checkImageWidth][checkImageHeight][3]


Define Documentation

#define _DSCRUCT_SUB   1

Definition at line 7 of file gldesign2.c.

#define TOL   1.e-4;

Definition at line 557 of file gldesign2.c.


Function Documentation

unsigned char* LoadMAP ( char *  InFile,
long *  xx,
long *  yy 
)

Definition at line 738 of file GLDESIGN.C.

void TextureWithAlpha ( long  x,
long  y,
unsigned char *  pin,
unsigned char  alpha,
BOOL  ,
unsigned  char,
unsigned  char,
unsigned  char 
)

void DrawGlNurbs ( GLfloat   ) 

void DrawProjectMapRectangle ( void   ) 

void makeCheckImageMap ( int  id  ) 

void GetMappingCoordS ( int  id,
vector  n,
vector  dx,
vector  dy,
vector  p0,
long *  pv,
GLfloat *  a,
GLfloat *  b 
)

void GetMappingCoordP ( int  id,
vector  n,
vector  x,
vector  y,
vector  p0,
long *  pv,
GLfloat *  a,
GLfloat *  b 
)

void GetMappingCoordC ( int  id,
vector  n,
vector  x,
vector  y,
vector  p0,
long *  pv,
GLfloat *  a,
GLfloat *  b 
)

void GetMapNormal ( int  k,
vector  mP,
vector  mX,
vector  mY,
vector  mN 
)

BOOL normalise ( GLfloat *  v  ) 

BOOL Normalize ( point  x,
point  y,
point  z,
GLfloat *  n 
)

BOOL inview ( vertex vp  ) 

void FixUpMapEdge ( GLfloat  alpha[]  ) 

void Make3dDisplayListProg ( void   ) 


Variable Documentation

GLfloat up_angle

Definition at line 51 of file GLDESIGN.C.

GLfloat round_angle

Definition at line 51 of file GLDESIGN.C.

GLfloat gbRed

Definition at line 52 of file GLDESIGN.C.

GLfloat gbGreen

Definition at line 52 of file GLDESIGN.C.

GLfloat gbBlue

Definition at line 52 of file GLDESIGN.C.

GLfloat gwRed

Definition at line 53 of file GLDESIGN.C.

GLfloat gwGreen

Definition at line 53 of file GLDESIGN.C.

GLfloat gwBlue

Definition at line 53 of file GLDESIGN.C.

GLfloat near_plane

Definition at line 54 of file GLDESIGN.C.

GLfloat far_plane

Definition at line 54 of file GLDESIGN.C.

GLfloat vertex_scale

Definition at line 54 of file GLDESIGN.C.

GLint listID

Definition at line 55 of file GLDESIGN.C.

GLint mode

Definition at line 55 of file GLDESIGN.C.

GLint bounding_box

Definition at line 55 of file GLDESIGN.C.

GLint current_map

Definition at line 55 of file GLDESIGN.C.

BOOL Mapped

Definition at line 56 of file GLDESIGN.C.

BOOL Update

Definition at line 56 of file GLDESIGN.C.

BOOL Fastest

Definition at line 56 of file GLDESIGN.C.

BOOL Clamped

Definition at line 56 of file GLDESIGN.C.

BOOL Cmaterial

Definition at line 57 of file GLDESIGN.C.

Definition at line 57 of file GLDESIGN.C.

BOOL TwoSided

Definition at line 57 of file GLDESIGN.C.

BOOL ScrollBars

Definition at line 58 of file GLDESIGN.C.

Definition at line 58 of file GLDESIGN.C.

Definition at line 58 of file GLDESIGN.C.

Definition at line 58 of file GLDESIGN.C.

Referenced by DrawModelEdges().

Definition at line 58 of file GLDESIGN.C.

Referenced by inview().

BOOL bThickWire

Definition at line 59 of file GLDESIGN.C.

Definition at line 59 of file GLDESIGN.C.

BOOL bStereo

Definition at line 60 of file GLDESIGN.C.

Definition at line 60 of file GLDESIGN.C.

char gszBMPfile[]

Definition at line 62 of file GLDESIGN.C.

char gszBMPdir[]

Definition at line 62 of file GLDESIGN.C.

char gszRootDir[]

Definition at line 62 of file GLDESIGN.C.

Definition at line 48 of file GLDESIGN.C.

long NglMapList

Definition at line 49 of file GLDESIGN.C.

Definition at line 66 of file GLDESIGN.C.

GLuint g_map_texture

Definition at line 67 of file GLDESIGN.C.

Definition at line 71 of file GLDESIGN.C.

GLuint g_env_texture

Definition at line 72 of file GLDESIGN.C.

Definition at line 73 of file GLDESIGN.C.

Definition at line 69 of file GLDESIGN.C.

GLuint g_ref_texture

Definition at line 68 of file GLDESIGN.C.

Definition at line 70 of file GLDESIGN.C.

Definition at line 74 of file GLDESIGN.C.

GLubyte checkImage[checkImageWidth][checkImageHeight][3]

Definition at line 75 of file GLDESIGN.C.


Generated on Sun Apr 27 14:20:16 2014 for OpenFX by  doxygen 1.5.6