gldesign1_old.c File Reference

Go to the source code of this file.

Defines

#define _DSCRUCT_SUB   1
#define MAPDELTA   0.3333333
#define TOL   1000.0
#define HIDDEN   2
#define RTD   0.159154943

Functions

unsigned char * LoadMAP (char *InFile, long *xx, long *yy)
void ShadersInit (char *)
void UseShaderProgram (long id)
void PrepareStereo (double, double, double, double, double, double, double, double, double, double, double)
void Make3dDisplayList (void)
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 bSetupPixelFormat (HDC hDC)
void SetMappingQuality (void)
GLvoid initialize (HWND hWnd)
GLvoid drawScene (HWND hWnd, BOOL shaded)
GLvoid resize (HWND hWnd)
void DrawModelEdges (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 flat
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_bump_texture
GLubyte checkImage [checkImageWidth][checkImageHeight][3]


Define Documentation

#define _DSCRUCT_SUB   1

Definition at line 8 of file gldesign1_old.c.

#define MAPDELTA   0.3333333

Definition at line 17 of file gldesign1_old.c.

#define TOL   1000.0

Definition at line 992 of file gldesign1_old.c.

#define HIDDEN   2

Definition at line 1013 of file gldesign1_old.c.

#define RTD   0.159154943

Definition at line 1096 of file gldesign1_old.c.


Function Documentation

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

Definition at line 738 of file GLDESIGN.C.

void ShadersInit ( char *   ) 

Referenced by initialize(), and ShadersInitTour().

void UseShaderProgram ( long  id  ) 

Definition at line 143 of file shaders.c.

Referenced by DrawExternalMaterialPolys(), and Make3dDisplayListProg().

void PrepareStereo ( double  dfLeftBorder,
double  dfRightBorder,
double  dfBottomBorder,
double  dfTopBorder,
double  dfNearBorder,
double  dfFarBorder,
double  dfTargetPlane,
double  dfCameraToTargetDistance,
double  dfStereoMagnitudeAdj,
double  dfParallaxBalanceAdj,
double  dfEyePosition 
)

void Make3dDisplayList ( void   ) 

TextureWithAlpha(glMapList[k].x,glMapList[k].y,glMapList[k].pixels);

void DrawGlNurbs ( GLfloat  drawtype  ) 

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 bSetupPixelFormat ( HDC  hDC  ) 

Definition at line 65 of file gldesign1_old.c.

References bStereo, bStereoDraw, FALSE, and TRUE.

void SetMappingQuality ( void   ) 

Definition at line 111 of file gldesign1_old.c.

References Clamped, and Fastest.

Referenced by BuildMapList(), and initialize().

GLvoid initialize ( HWND  hWnd  ) 

GLvoid drawScene ( HWND  hWnd,
BOOL  shaded 
)

GLvoid resize ( HWND  hWnd  ) 

Definition at line 350 of file gldesign1_old.c.

References far_plane, near_plane, and oldrect.

void DrawModelEdges ( 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

Referenced by drawScene().

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.

GLint listID

Definition at line 55 of file GLDESIGN.C.

GLint mode

Definition at line 55 of file GLDESIGN.C.

GLint flat

Referenced by drawScene().

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.

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.

Definition at line 69 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