gldesign2_old.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 scale_view
GLfloat gbRed
GLfloat gbGreen
GLfloat gbBlue
GLfloat gwRed
GLfloat gwGreen
GLfloat gwBlue
GLfloat near_plane
GLfloat far_plane
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 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 8 of file gldesign2_old.c.

#define TOL   1.e-4;

Definition at line 516 of file gldesign2_old.c.


Function Documentation

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

Definition at line 738 of file GLDESIGN.C.

References MakeImageFromFile().

Referenced by _RenderImageProcess(), BuildMapList(), and initialize().

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 scale_view

GLfloat gbRed

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gbGreen

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gbBlue

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gwRed

Definition at line 53 of file GLDESIGN.C.

Referenced by DrawModelEdges().

GLfloat gwGreen

Definition at line 53 of file GLDESIGN.C.

Referenced by DrawModelEdges().

GLfloat gwBlue

Definition at line 53 of file GLDESIGN.C.

Referenced by DrawModelEdges().

GLfloat near_plane

Definition at line 54 of file GLDESIGN.C.

Referenced by DrawSelectionBox(), initialize(), and resize().

GLfloat far_plane

Definition at line 54 of file GLDESIGN.C.

Referenced by initialize(), and resize().

GLint listID

Definition at line 55 of file GLDESIGN.C.

Referenced by Make3dDisplayList(), and Make3dDisplayListProg().

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.

Referenced by DrawProjectMapRectangle().

BOOL Mapped

Definition at line 56 of file GLDESIGN.C.

Referenced by BuildMapList(), Make3dDisplayList(), and Make3dDisplayListProg().

BOOL Update

Definition at line 56 of file GLDESIGN.C.

BOOL Fastest

Definition at line 56 of file GLDESIGN.C.

Referenced by SetMappingQuality().

BOOL Clamped

Definition at line 56 of file GLDESIGN.C.

Referenced by SetMappingQuality().

BOOL Cmaterial

Definition at line 57 of file GLDESIGN.C.

Definition at line 57 of file GLDESIGN.C.

Referenced by initialize().

BOOL TwoSided

Definition at line 57 of file GLDESIGN.C.

Referenced by initialize(), and Make3dDisplayListProg().

BOOL ScrollBars

Definition at line 58 of file GLDESIGN.C.

Definition at line 58 of file GLDESIGN.C.

Referenced by drawScene().

Definition at line 58 of file GLDESIGN.C.

Referenced by Make3dDisplayList(), and Make3dDisplayListProg().

BOOL bThickWire

Definition at line 59 of file GLDESIGN.C.

Referenced by DrawModelEdges(), Make3dDisplayList(), and Make3dDisplayListProg().

Definition at line 59 of file GLDESIGN.C.

BOOL bStereo

Definition at line 60 of file GLDESIGN.C.

Referenced by bSetupPixelFormat().

Definition at line 60 of file GLDESIGN.C.

Referenced by bSetupPixelFormat(), and drawScene().

char gszBMPfile[]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL().

char gszBMPdir[]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL().

char gszRootDir[]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL(), and initialize().

Definition at line 48 of file GLDESIGN.C.

long NglMapList

Definition at line 49 of file GLDESIGN.C.

Referenced by BuildMapList(), and FreeMapList().

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.

Referenced by initialize(), and makeCheckImageMap().


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