Changeset 2996 for trunk/src/opengl/glut
- Timestamp:
- Mar 4, 2000, 8:10:18 PM (25 years ago)
- Location:
- trunk/src/opengl/glut
- Files:
-
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/Makefile
r2945 r2996 1 # $Id: Makefile,v 1. 7 2000-02-29 13:56:51 sandervlExp $1 # $Id: Makefile,v 1.8 2000-03-04 19:10:13 jeroen Exp $ 2 2 3 3 # … … 26 26 CFLAGS = -Tdp -I..\mesa\GL -I..\glu $(CFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa 27 27 CXXFLAGS = -Tdp -I..\mesa\GL -I..\glu $(CXXFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa 28 29 CFLAGS=$(CFLAGS) -O- 28 30 29 31 TARGET=GLUT32 -
trunk/src/opengl/glut/glut32.rc
r2699 r2996 1 /* $Id: glut32.rc,v 1. 1 2000-02-09 13:44:32 sandervlExp $ */1 /* $Id: glut32.rc,v 1.2 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 3 3 #include "winuser.h" … … 24 24 VALUE "Comments", "Odin32 System Dll\0" 25 25 VALUE "CompanyName", "\0" 26 VALUE "FileDescription", "OpenGL Utility LibraryDLL\0"26 VALUE "FileDescription", "OpenGL Utility Toolkit DLL\0" 27 27 VALUE "FileVersion", "4.00\0" 28 28 VALUE "InternalName", "glut32\0" … … 36 36 BLOCK "VarFileInfo" 37 37 BEGIN 38 38 VALUE "Translation", 0x409, 0x04E4 39 39 END 40 40 END -
trunk/src/opengl/glut/glut_event.c
r2689 r2996 1 /* $Id: glut_event.c,v 1. 2 2000-02-09 08:46:09jeroen Exp $ */1 /* $Id: glut_event.c,v 1.3 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 100 100 int __glutWindowDamaged = 0; 101 101 102 void APIENTRY102 void GLAPIENTRY 103 103 glutIdleFunc(GLUTidleCB idleFunc) 104 104 { … … 106 106 } 107 107 108 void APIENTRY108 void GLAPIENTRY 109 109 glutTimerFunc(unsigned int interval, GLUTtimerCB timerFunc, int value) 110 110 { … … 204 204 205 205 /* CENTRY */ 206 void APIENTRY206 void GLAPIENTRY 207 207 glutPostRedisplay(void) 208 208 { … … 214 214 particularly useful when multiple windows need redisplays posted at 215 215 the same times. See also glutPostWindowOverlayRedisplay. */ 216 void APIENTRY216 void GLAPIENTRY 217 217 glutPostWindowRedisplay(int win) 218 218 { … … 1205 1205 __glutSetWindow(window); 1206 1206 1207 window->reshape(window->width, window->height); 1207 /* JvdH: DO NOT REMPVE THE EXPLICIT TYPECAST TO THIS GLAPIENTRY */ 1208 /* FUNCTION, OR THE COMPILER WILL NUKE THE STACK WHEN OPTIMIZING! */ 1209 /* VACPP obviously has a bug, and will adjust the ESP after the */ 1210 /* call, but the callee has already done so!!!! */ 1211 ((GLUTreshapeCB)(window->reshape))(window->width, window->height); 1208 1212 window->forceReshape = False; 1209 1210 #ifdef __WIN32OS2__1211 /* JvdH - 03/02/2000 */1212 /* FIXME: This is a rather stupid hack... */1213 /* The client area appears transparent... */1214 /* By twice swapping the ZORDER the client area is repainted... */1215 /* I'd like a better fix, but for now this seems to work */1216 SetWindowPos(window->win,1217 HWND_BOTTOM,1218 0,0,1219 0,0,1220 SWP_NOMOVE | SWP_NOSIZE);1221 1222 SetWindowPos(window->win,1223 HWND_TOP,1224 0,0,1225 0,0,1226 SWP_NOMOVE | SWP_NOSIZE);1227 #endif1228 1213 1229 1214 /* Setting the redisplay bit on the first reshape is … … 1234 1219 happens to the window. */ 1235 1220 workMask |= GLUT_REDISPLAY_WORK; 1236 } 1237 1221 1222 } 1238 1223 1239 1224 /* The code below is more involved than otherwise necessary … … 1260 1245 if (__glutMesaSwapHackSupport) { 1261 1246 if (window->usedSwapBuffers) { 1247 1262 1248 if ((workMask & (GLUT_REPAIR_WORK | GLUT_REDISPLAY_WORK)) == GLUT_REPAIR_WORK) { 1263 1249 SWAP_BUFFERS_WINDOW(window); … … 1282 1268 } 1283 1269 if (workMask & (GLUT_OVERLAY_REDISPLAY_WORK | GLUT_OVERLAY_REPAIR_WORK)) { 1270 1284 1271 window = __glutWindowList[num]; 1285 1272 if (window && window->overlay && … … 1306 1293 if (!window->overlay && window->usedSwapBuffers) { 1307 1294 if ((workMask & (GLUT_REPAIR_WORK | GLUT_REDISPLAY_WORK)) == GLUT_REPAIR_WORK) { 1295 1308 1296 SWAP_BUFFERS_WINDOW(window); 1309 1297 goto skippedDisplayCallback2; … … 1312 1300 } 1313 1301 /* Render to normal plane (and possibly overlay). */ 1302 1314 1303 __glutWindowDamaged = (workMask & (GLUT_OVERLAY_REPAIR_WORK | GLUT_REPAIR_WORK)); 1315 1304 __glutSetWindow(window); … … 1327 1316 1328 1317 if (workMask & GLUT_FINISH_WORK) { 1318 1329 1319 /* Finish work makes sure a glFinish gets done to indirect 1330 1320 rendering contexts. Indirect contexts tend to have much … … 1342 1332 /* Strip out dummy, finish, and debug work bits. */ 1343 1333 window->workMask &= ~(GLUT_DUMMY_WORK | GLUT_FINISH_WORK | GLUT_DEBUG_WORK); 1334 1335 WriteLog("GLUT32: processWindowWorkList -> will now return!\n"); 1336 1344 1337 if (window->workMask) { 1345 1338 /* Leave on work list. */ … … 1352 1345 1353 1346 /* CENTRY */ 1354 void APIENTRY1347 void GLAPIENTRY 1355 1348 glutMainLoop(void) 1356 1349 { 1350 WriteLog("GLUT32 MainLoop entered\n"); 1357 1351 #if !defined(_WIN32) && !defined(__WIN32OS2__) 1358 1352 if (!__glutDisplay) … … 1363 1357 "main loop entered with no windows created."); 1364 1358 for (;;) { 1359 WriteLog("GLUT32 --> LOOP in!\n"); 1365 1360 if (__glutWindowWorkList) { 1366 1361 GLUTwindow *remainder, *work; … … 1373 1368 *beforeEnd = __glutWindowWorkList; 1374 1369 __glutWindowWorkList = remainder; 1375 1370 } 1376 1371 } 1377 1372 } … … 1382 1377 waitForSomething(); 1383 1378 } else { 1379 WriteLog("Calling processEventsAndTimeouts from #1403\n"); 1384 1380 processEventsAndTimeouts(); 1385 } 1386 } 1387 } 1381 WriteLog("processEventsAndTimeouts from #1403 returned!\n"); 1382 } 1383 } 1384 } 1385 1386 WriteLog("MainLoop ended... ???\n"); 1388 1387 } 1389 1388 /* ENDCENTRY */ -
trunk/src/opengl/glut/glut_get.c
r2689 r2996 1 /* $Id: glut_get.c,v 1. 2 2000-02-09 08:46:12jeroen Exp $ */1 /* $Id: glut_get.c,v 1.3 2000-03-04 19:10:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ 3 3 … … 11 11 12 12 /* CENTRY */ 13 int APIENTRY13 int GLAPIENTRY 14 14 glutGet(GLenum param) 15 15 { -
trunk/src/opengl/glut/glut_init.c
r2689 r2996 1 /* $Id: glut_init.c,v 1. 2 2000-02-09 08:46:13jeroen Exp $ */1 /* $Id: glut_init.c,v 1.3 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 16 16 17 17 #if defined(__WIN32OS2__) 18 #include <windows.h> 18 19 #include "winconst.h" 20 #include "GL\gl.h" 19 21 #undef WH_NB_HOOKS /* Get rid of copiler warning... */ 20 22 #endif … … 199 201 glutInit(int *argcp, char **argv) 200 202 { 203 dprintf(("GLUT32: glutInit()\n")); 204 201 205 char *display = NULL; 202 206 char *str, *geometry = NULL; … … 373 377 glutInitDisplayMode(unsigned int mask) 374 378 { 379 dprintf(("GLUT32: glutInitDisplayMode()\n")); 375 380 __glutDisplayMode = mask; 376 381 } -
trunk/src/opengl/glut/glut_overlay.c
r2689 r2996 1 /* $Id: glut_overlay.c,v 1. 2 2000-02-09 08:46:15 jeroen Exp $ */1 /* $Id: glut_overlay.c,v 1.3 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */ 3 3 … … 26 26 #include "layerutil.h" 27 27 28 #if defined(__WIN32OS2__)29 #include "wgl.h"30 #endif28 //#if defined(__WIN32OS2__) 29 //#include "wgl.h" 30 //#endif 31 31 32 32 static Criterion requiredOverlayCriteria[] = -
trunk/src/opengl/glut/glut_term.c
r2689 r2996 1 /* $Id: glut_term.c,v 1. 1 2000-02-09 08:46:18jeroen Exp $ */1 /* $Id: glut_term.c,v 1.2 2000-03-04 19:10:15 jeroen Exp $ */ 2 2 /* 3 3 * GLUT Termination - on exit cleanup any open windows … … 11 11 12 12 13 ODINDEBUGCHANNEL (GLUT32-MAIN) 14 15 ODINFUNCTION3(BOOL, Glut32LibMain, HINSTANCE, hinstDLL, 16 DWORD, fdwReason, 17 LPVOID, ImpLoad) 13 void CDECL Glut32Terminate(void) 18 14 { 19 if(fdwReason==DLL_PROCESS_DETACH)20 {21 15 /* Our app has ended - close all the open windows! */ 22 16 dprintf(("GLUT internal cleanup - numwins %d\n",__glutWindowListSize)); … … 30 24 } 31 25 } 32 }33 34 return TRUE;35 26 } -
trunk/src/opengl/glut/glut_win.c
r2689 r2996 1 /* $Id: glut_win.c,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glut_win.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 17 17 #include "glutint.h" 18 18 19 #if defined(__WIN32OS2__)20 #include "wgl.h"21 #endif19 //#if defined(__WIN32OS2__) 20 //#include "wgl.h" 21 //#endif 22 22 23 23 GLUTwindow *__glutCurrentWindow = NULL; … … 131 131 132 132 /* CENTRY */ 133 int APIENTRY133 int GLAPIENTRY 134 134 glutGetWindow(void) 135 135 { … … 178 178 179 179 /* CENTRY */ 180 void APIENTRY180 void GLAPIENTRY 181 181 glutSetWindow(int win) 182 182 { … … 403 403 } 404 404 405 void APIENTRY405 void GLAPIENTRY 406 406 __glutDefaultDisplay(void) 407 407 { … … 413 413 } 414 414 415 void APIENTRY415 void GLAPIENTRY 416 416 __glutDefaultReshape(int width, int height) 417 417 { … … 718 718 719 719 /* CENTRY */ 720 int APIENTRY720 int GLAPIENTRY 721 721 glutCreateWindow(const char *title) 722 722 { … … 768 768 } 769 769 770 int APIENTRY770 int GLAPIENTRY 771 771 glutCreateSubWindow(int win, int x, int y, int width, int height) 772 772 { … … 860 860 861 861 /* CENTRY */ 862 void APIENTRY862 void GLAPIENTRY 863 863 glutDestroyWindow(int win) 864 864 { … … 903 903 } 904 904 905 void APIENTRY905 void GLAPIENTRY 906 906 glutDisplayFunc(GLUTdisplayCB displayFunc) 907 907 { … … 912 912 } 913 913 914 void APIENTRY914 void GLAPIENTRY 915 915 glutMouseFunc(GLUTmouseCB mouseFunc) 916 916 { … … 934 934 } 935 935 936 void APIENTRY936 void GLAPIENTRY 937 937 glutMotionFunc(GLUTmotionCB motionFunc) 938 938 { … … 965 965 } 966 966 967 void APIENTRY967 void GLAPIENTRY 968 968 glutPassiveMotionFunc(GLUTpassiveCB passiveMotionFunc) 969 969 { … … 980 980 } 981 981 982 void APIENTRY982 void GLAPIENTRY 983 983 glutEntryFunc(GLUTentryCB entryFunc) 984 984 { … … 991 991 } 992 992 993 void APIENTRY993 void GLAPIENTRY 994 994 glutWindowStatusFunc(GLUTwindowStatusCB windowStatusFunc) 995 995 { … … 1003 1003 } 1004 1004 1005 static void 1006 #ifdef __WIN32OS2__ 1007 _Optlink 1008 #endif 1005 static void GLAPIENTRY 1009 1006 visibilityHelper(int status) 1010 1007 { … … 1015 1012 } 1016 1013 1017 void APIENTRY1014 void GLAPIENTRY 1018 1015 glutVisibilityFunc(GLUTvisibilityCB visibilityFunc) 1019 1016 { … … 1025 1022 } 1026 1023 1027 void APIENTRY1024 void GLAPIENTRY 1028 1025 glutReshapeFunc(GLUTreshapeCB reshapeFunc) 1029 1026 { 1027 WriteLog("GLUT32: Setting reshapeFunc to @%08X\n",reshapeFunc); 1030 1028 if (reshapeFunc) { 1031 1029 __glutCurrentWindow->reshape = reshapeFunc; -
trunk/src/opengl/glut/glut_winmisc.c
r2689 r2996 1 /* $Id: glut_winmisc.c,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glut_winmisc.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 20 20 21 21 /* CENTRY */ 22 void APIENTRY22 void GLAPIENTRY 23 23 glutSetWindowTitle(const char *title) 24 24 { … … 37 37 } 38 38 39 void APIENTRY39 void GLAPIENTRY 40 40 glutSetIconTitle(const char *title) 41 41 { … … 53 53 } 54 54 55 void APIENTRY55 void GLAPIENTRY 56 56 glutPositionWindow(int x, int y) 57 57 { … … 63 63 } 64 64 65 void APIENTRY65 void GLAPIENTRY 66 66 glutReshapeWindow(int w, int h) 67 67 { 68 WriteLog("glutReshapeWindow (glut_winmisc)\n"); 68 69 IGNORE_IN_GAME_MODE(); 69 70 if (w <= 0 || h <= 0) … … 76 77 } 77 78 78 void APIENTRY79 void GLAPIENTRY 79 80 glutPopWindow(void) 80 81 { … … 85 86 } 86 87 87 void APIENTRY88 void GLAPIENTRY 88 89 glutPushWindow(void) 89 90 { … … 94 95 } 95 96 96 void APIENTRY97 void GLAPIENTRY 97 98 glutIconifyWindow(void) 98 99 { … … 103 104 } 104 105 105 void APIENTRY106 void GLAPIENTRY 106 107 glutShowWindow(void) 107 108 { … … 111 112 } 112 113 113 void APIENTRY114 void GLAPIENTRY 114 115 glutHideWindow(void) 115 116 { -
trunk/src/opengl/glut/glutint.h
r2689 r2996 1 /* $Id: glutint.h,v 1. 2 2000-02-09 08:46:19jeroen Exp $ */1 /* $Id: glutint.h,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 #ifndef __glutint_h__ 3 3 #define __glutint_h__ … … 253 253 254 254 /* GLUT function types */ 255 typedef void (* APIENTRY GLUTdisplayCB) (void);256 typedef void (* APIENTRY GLUTreshapeCB) (int, int);257 typedef void (* APIENTRY GLUTkeyboardCB) (unsigned char, int, int);258 typedef void (* APIENTRY GLUTmouseCB) (int, int, int, int);259 typedef void (* APIENTRY GLUTmotionCB) (int, int);260 typedef void (* APIENTRY GLUTpassiveCB) (int, int);261 typedef void (* APIENTRY GLUTentryCB) (int);262 typedef void (* APIENTRY GLUTvisibilityCB) (int);263 typedef void (* APIENTRY GLUTwindowStatusCB) (int);264 typedef void (* APIENTRY GLUTidleCB) (void);265 typedef void (* APIENTRY GLUTtimerCB) (int);266 typedef void (* APIENTRY GLUTmenuStateCB) (int);/* DEPRICATED. */267 typedef void (* APIENTRY GLUTmenuStatusCB) (int, int, int);268 typedef void (* APIENTRY GLUTselectCB) (int);269 typedef void (* APIENTRY GLUTspecialCB) (int, int, int);270 typedef void (* APIENTRY GLUTspaceMotionCB) (int, int, int);271 typedef void (* APIENTRY GLUTspaceRotateCB) (int, int, int);272 typedef void (* APIENTRY GLUTspaceButtonCB) (int, int);273 typedef void (* APIENTRY GLUTdialsCB) (int, int);274 typedef void (* APIENTRY GLUTbuttonBoxCB) (int, int);275 typedef void (* APIENTRY GLUTtabletMotionCB) (int, int);276 typedef void (* APIENTRY GLUTtabletButtonCB) (int, int, int, int);277 typedef void (* APIENTRY GLUTjoystickCB) (unsigned int buttonMask, int x, int y, int z);255 typedef void (* GLAPIENTRY GLUTdisplayCB) (void); 256 typedef void (* GLAPIENTRY GLUTreshapeCB) (int, int); 257 typedef void (* GLAPIENTRY GLUTkeyboardCB) (unsigned char, int, int); 258 typedef void (* GLAPIENTRY GLUTmouseCB) (int, int, int, int); 259 typedef void (* GLAPIENTRY GLUTmotionCB) (int, int); 260 typedef void (* GLAPIENTRY GLUTpassiveCB) (int, int); 261 typedef void (* GLAPIENTRY GLUTentryCB) (int); 262 typedef void (* GLAPIENTRY GLUTvisibilityCB) (int); 263 typedef void (* GLAPIENTRY GLUTwindowStatusCB) (int); 264 typedef void (* GLAPIENTRY GLUTidleCB) (void); 265 typedef void (* GLAPIENTRY GLUTtimerCB) (int); 266 typedef void (* GLAPIENTRY GLUTmenuStateCB) (int); /* DEPRICATED. */ 267 typedef void (* GLAPIENTRY GLUTmenuStatusCB) (int, int, int); 268 typedef void (* GLAPIENTRY GLUTselectCB) (int); 269 typedef void (* GLAPIENTRY GLUTspecialCB) (int, int, int); 270 typedef void (* GLAPIENTRY GLUTspaceMotionCB) (int, int, int); 271 typedef void (* GLAPIENTRY GLUTspaceRotateCB) (int, int, int); 272 typedef void (* GLAPIENTRY GLUTspaceButtonCB) (int, int); 273 typedef void (* GLAPIENTRY GLUTdialsCB) (int, int); 274 typedef void (* GLAPIENTRY GLUTbuttonBoxCB) (int, int); 275 typedef void (* GLAPIENTRY GLUTtabletMotionCB) (int, int); 276 typedef void (* GLAPIENTRY GLUTtabletButtonCB) (int, int, int, int); 277 typedef void (* GLAPIENTRY GLUTjoystickCB) (unsigned int buttonMask, int x, int y, int z); 278 278 #ifdef SUPPORT_FORTRAN 279 279 typedef void (*GLUTdisplayFCB) (void); … … 664 664 extern GLUTmenuItem *__glutItemSelected; 665 665 extern GLUTmenu **__glutMenuList; 666 extern void (* APIENTRY __glutMenuStatusFunc) (int, int, int);666 extern void (* GLAPIENTRY __glutMenuStatusFunc) (int, int, int); 667 667 extern void __glutMenuModificationError(void); 668 668 extern void __glutSetMenuItem(GLUTmenuItem * item, … … 746 746 extern void __glutReshapeFunc(GLUTreshapeCB reshapeFunc, 747 747 int callingConvention); 748 extern void APIENTRY __glutDefaultReshape(int, int);748 extern void GLAPIENTRY __glutDefaultReshape(int, int); 749 749 extern GLUTwindow *__glutCreateWindow( 750 750 GLUTwindow * parent, -
trunk/src/opengl/glut/initterm.cpp
r2756 r2996 1 /* $Id: initterm.cpp,v 1. 7 2000-02-11 13:29:29 birdExp $ */1 /* $Id: initterm.cpp,v 1.8 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 3 3 /* … … 31 31 #include <stdio.h> 32 32 #include <string.h> 33 #include < odin.h>33 #include <misc.h> 34 34 #include <win32type.h> 35 35 #include <winconst.h> 36 36 #include <odinlx.h> 37 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */38 37 39 38 … … 46 45 } 47 46 48 BOOL WINAPI Glut32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID ImpLoad);47 void CDECL Glut32Terminate(void); 49 48 50 //* *****************************************************************************51 //* *****************************************************************************49 //* ******************************************************************************/ 50 //* ******************************************************************************/ 52 51 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 53 52 { 54 53 switch (fdwReason) 55 54 { 56 case DLL_PROCESS_ATTACH:57 case DLL_THREAD_ATTACH:58 case DLL_THREAD_DETACH:59 return Glut32LibMain(hinstDLL, fdwReason, fImpLoad);55 case DLL_PROCESS_ATTACH: 56 case DLL_THREAD_ATTACH: 57 case DLL_THREAD_DETACH: 58 return TRUE; 60 59 61 case DLL_PROCESS_DETACH:62 Glut32LibMain(hinstDLL, fdwReason, fImpLoad);63 64 60 case DLL_PROCESS_DETACH: 61 Glut32Terminate(); 62 _ctordtorTerm(); 63 return TRUE; 65 64 } 66 65 return FALSE; … … 76 75 /* calling this function. */ 77 76 /****************************************************************************/ 78 unsigned long SYSTEM_DLL_InitTerm(unsigned long hModule, unsigned long77 unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long 79 78 ulFlag) 80 79 { 81 size_t i;82 APIRET rc;83 84 80 /*-------------------------------------------------------------------------*/ 85 81 /* If ulFlag is zero then the DLL is being loaded so initialization should */ … … 92 88 _ctordtorInit(); 93 89 94 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/95 96 90 /*******************************************************************/ 97 91 /* A DosExitList routine must be used to clean up if runtime calls */ … … 101 95 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 102 96 return 0UL; 97 98 CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed 98-03-18 05:28:48*/ 103 99 104 100 break; … … 117 113 return 1UL; 118 114 } 119 //* *****************************************************************************120 //* *****************************************************************************115 //* ******************************************************************************/ 116 //* ******************************************************************************/ -
trunk/src/opengl/glut/win32_glx.c
r2689 r2996 1 /* $Id: win32_glx.c,v 1. 2 2000-02-09 08:46:22jeroen Exp $ */1 /* $Id: win32_glx.c,v 1.3 2000-03-04 19:10:16 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 … … 9 9 #if defined(__WIN32OS2__) 10 10 #include "os2_glx.h" 11 #include "wgl.h"11 //#include "wgl.h" 12 12 #include "pfddefs.h" 13 13 #include <memory.h> -
trunk/src/opengl/glut/win32_winproc.c
r2689 r2996 1 /* $Id: win32_winproc.c,v 1. 2 2000-02-09 08:46:23jeroen Exp $ */1 /* $Id: win32_winproc.c,v 1.3 2000-03-04 19:10:17 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 /* portions Copyright (c) Mark Kilgard, 1997, 1998. */ … … 10 10 #include "glutint.h" 11 11 #if defined(__WIN32OS2__) 12 #include "wgl.h"12 //#include "wgl.h" 13 13 #include <ctype.h> 14 14 #endif … … 90 90 #endif 91 91 case WM_PAINT: 92 dprintf(("GLUT32: WM_PAINT processing...\n"));93 92 window = __glutGetWindow(hwnd); 94 93 if (window) { 94 /* 95 95 #ifndef __WIN32OS2__ 96 BeginPaint(hwnd, &ps); /* Must have this for some Win32 reason.*/96 BeginPaint(hwnd, &ps); 97 97 EndPaint(hwnd, &ps); 98 #endif 98 #endif */ 99 99 if (window->win == hwnd) { 100 100 __glutPostRedisplay(window, GLUT_REPAIR_WORK); … … 314 314 handleDelete: 315 315 /* Delete is an ASCII character. */ 316 dprintf(("VK_DELETE - wParam is %d\n",wParam));317 316 key=(unsigned char)127; 318 317 break; … … 356 355 if(fSendKeyStroke) 357 356 { 358 dprintf(("Sending keystroke %d...\n",key));359 360 357 GetCursorPos(&point); 361 358 ScreenToClient(window->win, &point); … … 390 387 /* TODO: take this out once the menu on middle mouse stuff works 391 388 properly. */ 389 /* 392 390 if (button == GLUT_MIDDLE_BUTTON) 393 return 0; 391 return 0;*/ 394 392 GetCursorPos(&point); 395 393 ScreenToClient(hwnd, &point); … … 613 611 614 612 case WM_SIZE: 615 dprintf(("GLUT32: Handling WM_SIZE..."));616 613 window = __glutGetWindow(hwnd); 617 614 if (window) { … … 619 616 height = HIWORD(lParam); 620 617 if (width != window->width || height != window->height) { 621 #if 0 /* Win32 GLUT does not support overlays for now.*/618 #if 0 /* Win32 GLUT does not support overlays for now.*/ 622 619 if (window->overlay) { 623 620 XResizeWindow(__glutDisplay, window->overlay->win, width, height); … … 630 627 to the SetWindowPos request! */ 631 628 GdiFlush(); 632 window->reshape(width, height);629 ((GLUTreshapeCB)(window->reshape))(width, height); 633 630 window->forceReshape = FALSE; 634 631 /* A reshape should be considered like posting a 635 632 repair request. */ 636 dprintf(("GLUT32: WM_SIZE processing -> GLUT_REPAIR_WORK\n"));637 633 __glutPostRedisplay(window, GLUT_REPAIR_WORK); 638 634 } 639 635 } 640 dprintf(("GLUT32: Handled WM_SIZE..."));641 636 return 0; 642 637
Note:
See TracChangeset
for help on using the changeset viewer.