GLDESIGN.C File Reference

Go to the source code of this file.

Defines

#define _DSTRUCT_MAIN   1
#define ALIGNULONG(i)   ((i+3)/4*4)

Functions

void Make3dDisplayList (void)
void Make3dDisplayListProg (void)
 SetMappingQuality (void)
GLvoid initialize (HWND)
GLvoid drawScene (HWND, BOOL)
GLvoid resize (HWND)
BOOL bSetupPixelFormat (HDC)
void SelectVertexInRectGL (void)
void MoveInPerspectiveGL (double dx, double dy)
void RotateInPerspectiveGL (double dx, double dy)
void ShapeInPerspectiveGL (double dx, double dy)
BOOL CheckGPUhardware (HWND hwnd)
void RegisterOpenGL (HINSTANCE)
void UnregisterOpenGL (HINSTANCE)
void BuildMapList (void)
void FreeMapList (void)
unsigned char * MakeImageFromFile (char *temp, long *x, long *y, long type)
char * G_GetEnv (char const *aa)
BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
HWND _AttachViewOpenGL (HWND parent, char *tt, LPRECT pr, double *lpPerspTheta, double *lpPerspFi, int *lpTool, X__STRUCTURE *lpevi)
void _DetachViewOpenGL (void)
unsigned char * LoadMAP (char *InFile, long *xx, long *yy)

Variables

RECT oldrect
char IniFilename [256]
char IniSection [] = "GLPREFERENCES"
int * Tool
int SelXs
int SelYs
int SelXc
int SelYc
GLMAPglMapList = NULL
long NglMapList = 0
double * PerspTheta
double * PerspFi
GLfloat up_angle = 0.0
GLfloat round_angle = 0.0
GLfloat gbRed = 0.0
GLfloat gbGreen = 0.1
GLfloat gbBlue = 0.3
GLfloat gwRed = 1.0
GLfloat gwGreen = 1.0
GLfloat gwBlue = 1.0
GLfloat near_plane
GLfloat far_plane
GLfloat vertex_scale = 4.0
GLfloat ortho_width = 4.0
GLint listID = 0
GLint mode = 1
GLint bounding_box = 0
GLint current_map = 0
BOOL Mapped = FALSE
BOOL Update = TRUE
BOOL Fastest = FALSE
BOOL Clamped = FALSE
BOOL Cmaterial = TRUE
BOOL AttenuateLight = TRUE
BOOL TwoSided = TRUE
BOOL ScrollBars = FALSE
BOOL bDrawMapping = FALSE
BOOL bOverlayWire = FALSE
BOOL bOverlayWireHidden = FALSE
BOOL bSelectOnlyInView = FALSE
BOOL bThickWire = FALSE
BOOL bNurbsWireOnly = FALSE
BOOL bStereo = FALSE
BOOL bStereoDraw = FALSE
BOOL bShaders = FALSE
BOOL bOrtho = TRUE
BOOL bDrawSelection = FALSE
char gszBMPfile [MAX_FILE]
char gszBMPdir [MAX_DIR]
char gszRootDir [MAX_DIR]
BOOL bCanUseShaders = FALSE
GLuint g_check_texture
GLuint g_map_texture
GLuint g_ref_texture
GLuint g_bump_texture
GLuint g_tran_texture
GLuint g_movie_texture
GLuint g_env_texture
GLuint g_envB_texture
GLuint g_noise_texture
GLubyte checkImage [checkImageWidth][checkImageHeight][3]


Define Documentation

#define _DSTRUCT_MAIN   1

Definition at line 12 of file GLDESIGN.C.

#define ALIGNULONG (  )     ((i+3)/4*4)

Definition at line 702 of file GLDESIGN.C.


Function Documentation

void Make3dDisplayList ( void   ) 

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

Definition at line 690 of file gldesign1.c.

References bOverlayWire, bThickWire, DOT, dot(), DrawGlNurbs(), DrawModelEdges(), FALSE, fp, iMat, inview(), listID, MainFp, MainVp, Mapped, Nface, nMats, Nnurbs, normalise(), Normalize(), Nvert, TRUE, TVpointX, TVpointY, TVpointZ, TVsizeX, TVsizeY, TVsizeZ, VECSUB, VECSUM, vertex_scale, x, X__Free, X__Malloc, y, and z.

void Make3dDisplayListProg ( void   ) 

Definition at line 72 of file gldesign2.c.

static void SetMappingQuality ( void   ) 

Definition at line 687 of file rendergl.C.

Referenced by BuildMapList(), and initialize().

GLvoid initialize ( HWND   ) 

GLvoid drawScene ( HWND  ,
BOOL   
)

GLvoid resize ( HWND   ) 

Definition at line 457 of file gldesign1.c.

References bOrtho, far_plane, near_plane, oldrect, and ortho_width.

BOOL bSetupPixelFormat ( HDC   ) 

Definition at line 76 of file gldesign1.c.

References bStereo, bStereoDraw, FALSE, and TRUE.

void SelectVertexInRectGL ( void   ) 

void MoveInPerspectiveGL ( double  dx,
double  dy 
)

Definition at line 162 of file gldesign_tools.c.

References DrawModel, m4by1, m4by4, MainVp, Nvert, oldrect, rotx, rotz, round_angle, SELECTED, TVsizeX, up_angle, and y1.

void RotateInPerspectiveGL ( double  dx,
double  dy 
)

void ShapeInPerspectiveGL ( double  dx,
double  dy 
)

Definition at line 227 of file gldesign_tools.c.

References DrawModel, m4by1, m4by4, MainVp, Nvert, oldrect, rotx, rotz, round_angle, SELECTED, TVsizeX, up_angle, and y1.

BOOL CheckGPUhardware ( HWND  hwnd  ) 

Definition at line 267 of file gldesign1.c.

References FALSE, and TRUE.

Referenced by RendererMainWndProc().

void RegisterOpenGL ( HINSTANCE  hInstance  ) 

Definition at line 115 of file GLDESIGN.C.

References IDC_HAND.

Referenced by DllMain().

void UnregisterOpenGL ( HINSTANCE  hInstance  ) 

Definition at line 110 of file GLDESIGN.C.

Referenced by DllMain().

void BuildMapList ( void   ) 

void FreeMapList ( void   ) 

Definition at line 861 of file GLDESIGN.C.

References NglMapList, and X__Free.

Referenced by BuildMapList().

static unsigned char * MakeImageFromFile ( char *  temp,
long *  x,
long *  y,
long  type 
)

Definition at line 877 of file GLDESIGN.C.

References ALIGNULONG, B, FileInPath(), G, R, x, X__Free, X__Malloc, x_size, y, and y_size.

Referenced by LoadMAP().

char* G_GetEnv ( char const *  aa  ) 

Definition at line 89 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL().

BOOL WINAPI DllMain ( HANDLE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

HWND _AttachViewOpenGL ( HWND  parent,
char *  tt,
LPRECT  pr,
double *  lpPerspTheta,
double *  lpPerspFi,
int *  lpTool,
X__STRUCTURE lpevi 
)

void _DetachViewOpenGL ( void   ) 

Definition at line 205 of file GLDESIGN.C.

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().


Variable Documentation

RECT oldrect

char IniFilename[256]

char IniSection[] = "GLPREFERENCES"

int* Tool

Definition at line 46 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL(), DrawSelectionBox(), and SelectVertexInRectGL().

int SelXs

Definition at line 47 of file GLDESIGN.C.

Referenced by DrawSelectionBox(), RotateInPerspectiveGL(), and SelectVertexInRectGL().

int SelYs

Definition at line 47 of file GLDESIGN.C.

Referenced by DrawSelectionBox(), RotateInPerspectiveGL(), and SelectVertexInRectGL().

int SelXc

Definition at line 47 of file GLDESIGN.C.

Referenced by DrawSelectionBox(), and SelectVertexInRectGL().

int SelYc

Definition at line 47 of file GLDESIGN.C.

Referenced by DrawSelectionBox(), and SelectVertexInRectGL().

GLMAP* glMapList = NULL

Definition at line 48 of file GLDESIGN.C.

long NglMapList = 0

Definition at line 49 of file GLDESIGN.C.

Referenced by BuildMapList(), and FreeMapList().

double* PerspTheta

double * PerspFi

GLfloat up_angle = 0.0

GLfloat round_angle = 0.0

GLfloat gbRed = 0.0

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gbGreen = 0.1

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gbBlue = 0.3

Definition at line 52 of file GLDESIGN.C.

Referenced by initialize().

GLfloat gwRed = 1.0

Definition at line 53 of file GLDESIGN.C.

Referenced by DrawModelEdges().

GLfloat gwGreen = 1.0

Definition at line 53 of file GLDESIGN.C.

Referenced by DrawModelEdges().

GLfloat gwBlue = 1.0

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().

GLfloat vertex_scale = 4.0

GLfloat ortho_width = 4.0

Definition at line 54 of file GLDESIGN.C.

Referenced by initialize(), Ortho2Dto3D(), Ortho3Dto2D(), and resize().

GLint listID = 0

Definition at line 55 of file GLDESIGN.C.

Referenced by Make3dDisplayList(), and Make3dDisplayListProg().

GLint mode = 1

Definition at line 55 of file GLDESIGN.C.

GLint bounding_box = 0

Definition at line 55 of file GLDESIGN.C.

GLint current_map = 0

Definition at line 55 of file GLDESIGN.C.

Referenced by DrawProjectMapRectangle().

BOOL Mapped = FALSE

Definition at line 56 of file GLDESIGN.C.

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

BOOL Update = TRUE

Definition at line 56 of file GLDESIGN.C.

BOOL Fastest = FALSE

Definition at line 56 of file GLDESIGN.C.

Referenced by SetMappingQuality().

BOOL Clamped = FALSE

Definition at line 56 of file GLDESIGN.C.

Referenced by SetMappingQuality().

BOOL Cmaterial = TRUE

Definition at line 57 of file GLDESIGN.C.

BOOL AttenuateLight = TRUE

Definition at line 57 of file GLDESIGN.C.

Referenced by initialize().

BOOL TwoSided = TRUE

Definition at line 57 of file GLDESIGN.C.

Referenced by initialize(), and Make3dDisplayListProg().

BOOL ScrollBars = FALSE

Definition at line 58 of file GLDESIGN.C.

BOOL bDrawMapping = FALSE

Definition at line 58 of file GLDESIGN.C.

Referenced by drawScene().

BOOL bOverlayWire = FALSE

Definition at line 58 of file GLDESIGN.C.

Referenced by Make3dDisplayList(), and Make3dDisplayListProg().

BOOL bOverlayWireHidden = FALSE

Definition at line 58 of file GLDESIGN.C.

Referenced by DrawModelEdges().

BOOL bSelectOnlyInView = FALSE

Definition at line 58 of file GLDESIGN.C.

Referenced by inview().

BOOL bThickWire = FALSE

Definition at line 59 of file GLDESIGN.C.

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

BOOL bNurbsWireOnly = FALSE

Definition at line 59 of file GLDESIGN.C.

BOOL bStereo = FALSE

Definition at line 60 of file GLDESIGN.C.

Referenced by bSetupPixelFormat().

BOOL bStereoDraw = FALSE

Definition at line 60 of file GLDESIGN.C.

Referenced by bSetupPixelFormat(), and drawScene().

BOOL bShaders = FALSE

Definition at line 60 of file GLDESIGN.C.

BOOL bOrtho = TRUE

Definition at line 61 of file GLDESIGN.C.

Referenced by initialize(), and resize().

BOOL bDrawSelection = FALSE

Definition at line 61 of file GLDESIGN.C.

Referenced by drawScene().

char gszBMPfile[MAX_FILE]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL().

char gszBMPdir[MAX_DIR]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL().

char gszRootDir[MAX_DIR]

Definition at line 62 of file GLDESIGN.C.

Referenced by _AttachViewOpenGL(), and initialize().

BOOL bCanUseShaders = FALSE

Definition at line 64 of file GLDESIGN.C.

Referenced by initialize().

Definition at line 66 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

GLuint g_map_texture

Definition at line 67 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

GLuint g_ref_texture

Definition at line 68 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

Definition at line 69 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

Definition at line 70 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

Definition at line 71 of file GLDESIGN.C.

Referenced by CloseGlWindow(), and initialize().

GLuint g_env_texture

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