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 |
GLMAP * | glMapList = 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 _DSTRUCT_MAIN 1 |
Definition at line 12 of file GLDESIGN.C.
#define ALIGNULONG | ( | i | ) | ((i+3)/4*4) |
Definition at line 702 of file GLDESIGN.C.
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 | ) |
GLvoid initialize | ( | HWND | ) |
Definition at line 159 of file gldesign1.c.
References AttenuateLight, bCanUseShaders, bOrtho, checkImage, checkImageHeight, checkImageWidth, CreateNoise3D(), far_plane, g_bump_texture, g_check_texture, g_env_texture, g_envB_texture, g_map_texture, g_movie_texture, g_noise_texture, g_ref_texture, g_tran_texture, gbBlue, gbGreen, gbRed, gszRootDir, LoadMAP(), makeCheckImageMap(), near_plane, oldrect, ortho_width, SetMappingQuality(), ShadersInit(), TRUE, TwoSided, and X__Free.
GLvoid drawScene | ( | HWND | , | |
BOOL | ||||
) |
Definition at line 393 of file gldesign1.c.
References bDrawMapping, bDrawSelection, bStereoDraw, DrawProjectMapRectangle(), DrawSelectionBox(), flat, PARALLAX_BALANCE_ADJUSTMENT, PrepareStereo(), round_angle, scale_view, STEREO_MAGNITUDE_ADJUSTMENT, and up_angle.
GLvoid resize | ( | HWND | ) |
Definition at line 457 of file gldesign1.c.
References bOrtho, far_plane, near_plane, oldrect, and ortho_width.
BOOL bSetupPixelFormat | ( | HDC | ) |
void SelectVertexInRectGL | ( | void | ) |
Definition at line 113 of file gldesign_tools.c.
References DESELECTED, DESELECTOR, DrawModel, inview(), m4by1, MainVp, max, min, Nvert, NvertDeselect, NvertSelect, Ortho2Dto3D(), round_angle, SELECTED, SELECTOR, SelXc, SelXs, SelYc, SelYs, Tool, TVpointX, TVpointY, TVpointZ, TVsizeX, TVsizeY, TVsizeZ, up_angle, UpdateCounters, vertex_scale, x, y, and z.
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 | hInstance | ) |
void UnregisterOpenGL | ( | HINSTANCE | hInstance | ) |
void BuildMapList | ( | void | ) |
Definition at line 760 of file GLDESIGN.C.
References ANIMBRUSH, B, DesignerGLMAPtag::bMovie, DesignerGLMAPtag::bMovieB, DesignerGLMAPtag::bMovieR, DesignerGLMAPtag::bMovieT, EndWait, FALSE, FreeMapList(), iMap, LoadMAP(), Mapped, NglMapList, nImaps, DesignerGLMAPtag::pixels, DesignerGLMAPtag::pixelsB, DesignerGLMAPtag::pixelsR, DesignerGLMAPtag::pixelsT, R, SetMappingQuality(), StartWait, T, TRUE, DesignerGLMAPtag::x, x, X__Malloc, DesignerGLMAPtag::xB, DesignerGLMAPtag::xR, DesignerGLMAPtag::xT, DesignerGLMAPtag::y, y, DesignerGLMAPtag::yB, DesignerGLMAPtag::yR, and DesignerGLMAPtag::yT.
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 | ) |
BOOL WINAPI DllMain | ( | HANDLE | hDLL, | |
DWORD | dwReason, | |||
LPVOID | lpReserved | |||
) |
Definition at line 97 of file GLDESIGN.C.
References DLL_PROCESS_ATTACH, DLL_PROCESS_DETACH, RegisterOpenGL(), TRUE, and UnregisterOpenGL().
HWND _AttachViewOpenGL | ( | HWND | parent, | |
char * | tt, | |||
LPRECT | pr, | |||
double * | lpPerspTheta, | |||
double * | lpPerspFi, | |||
int * | lpTool, | |||
X__STRUCTURE * | lpevi | |||
) |
Definition at line 133 of file GLDESIGN.C.
References FALSE, FileInPath(), G_GetEnv(), gszBMPdir, gszBMPfile, gszRootDir, IniFilename, L, MAX_DIR, PerspFi, PerspTheta, TempPath, Tool, and WM_INIT.
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().
RECT oldrect |
Definition at line 73 of file gldesign1.c.
Referenced by initialize(), MoveInPerspectiveGL(), Ortho2Dto3D(), Ortho3Dto2D(), resize(), RotateInPerspectiveGL(), and ShapeInPerspectiveGL().
char IniFilename[256] |
Definition at line 44 of file GLDESIGN.C.
Referenced by _AttachViewOpenGL(), _PrgmLogon(), ActivatePreferences(), AnimatorShutdown(), CoordinatesDlgProc(), CreateAppPalette(), DesignShutdown(), DisplayImageFromStore(), GetRenderRelativeHandle(), InitializeLastFilesList(), LoadPreferences(), MenuCommand(), PrimitivesDlgProc(), TimelineEditor(), and WinMain().
char IniSection[] = "GLPREFERENCES" |
Definition at line 45 of file GLDESIGN.C.
Referenced by ActivatePreferences(), AnimatorShutdown(), CoordinatesDlgProc(), DesignShutdown(), InitializeLastFilesList(), LoadPreferences(), MenuCommand(), PrimitivesDlgProc(), and WinMain().
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().
Definition at line 48 of file GLDESIGN.C.
long NglMapList = 0 |
double* PerspTheta |
Definition at line 50 of file GLDESIGN.C.
Referenced by _AttachViewOpenGL(), Draw3dView(), DrawQuick3dView(), ModelerViewWndProc(), Render_View(), SetupMainWindow(), and StartOpenGL().
double * PerspFi |
Definition at line 50 of file GLDESIGN.C.
Referenced by _AttachViewOpenGL(), Draw3dView(), DrawQuick3dView(), ModelerViewWndProc(), Render_View(), SetupMainWindow(), and StartOpenGL().
GLfloat up_angle = 0.0 |
Definition at line 51 of file GLDESIGN.C.
Referenced by drawScene(), MoveInPerspectiveGL(), RotateInPerspectiveGL(), SelectVertexInRectGL(), and ShapeInPerspectiveGL().
GLfloat round_angle = 0.0 |
Definition at line 51 of file GLDESIGN.C.
Referenced by drawScene(), MoveInPerspectiveGL(), RotateInPerspectiveGL(), SelectVertexInRectGL(), and ShapeInPerspectiveGL().
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 |
Definition at line 54 of file GLDESIGN.C.
Referenced by DrawSelectionBox(), initialize(), and resize().
GLfloat far_plane |
GLfloat vertex_scale = 4.0 |
Definition at line 54 of file GLDESIGN.C.
Referenced by DrawGlNurbs(), DrawModelEdges(), DrawProjectMapRectangle(), Make3dDisplayList(), Make3dDisplayListProg(), RotateInPerspectiveGL(), and SelectVertexInRectGL().
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 |
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 |
BOOL Clamped = FALSE |
BOOL Cmaterial = TRUE |
Definition at line 57 of file GLDESIGN.C.
BOOL AttenuateLight = TRUE |
BOOL TwoSided = TRUE |
BOOL ScrollBars = FALSE |
Definition at line 58 of file GLDESIGN.C.
BOOL bDrawMapping = FALSE |
BOOL bOverlayWire = FALSE |
Definition at line 58 of file GLDESIGN.C.
Referenced by Make3dDisplayList(), and Make3dDisplayListProg().
BOOL bOverlayWireHidden = FALSE |
BOOL bSelectOnlyInView = FALSE |
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 |
BOOL bStereoDraw = FALSE |
BOOL bShaders = FALSE |
Definition at line 60 of file GLDESIGN.C.
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 |
Definition at line 72 of file GLDESIGN.C.
Referenced by CloseGlWindow(), DrawExternalMaterialPolys(), initialize(), and Make3dDisplayListProg().
GLuint g_envB_texture |
Definition at line 73 of file GLDESIGN.C.
Referenced by CloseGlWindow(), DrawExternalMaterialPolys(), initialize(), and Make3dDisplayListProg().
GLuint g_noise_texture |
Definition at line 74 of file GLDESIGN.C.
Referenced by CloseGlWindow(), DrawExternalMaterialPolys(), initialize(), and Make3dDisplayListProg().
GLubyte checkImage[checkImageWidth][checkImageHeight][3] |