Changeset 2689 for trunk/src/opengl/glut
- Timestamp:
- Feb 9, 2000, 9:51:20 AM (26 years ago)
- Location:
- trunk/src/opengl/glut
- Files:
-
- 1 added
- 1 deleted
- 62 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glut/Makefile
r2595 r2689 1 # $Id: Makefile,v 1.2 2000-02-09 08:46:06 jeroen Exp $ 1 2 # 2 3 # PD-Win32 API … … 15 16 16 17 !ifdef DEBUG 17 MAKE_CMD=nmake DEBUG=1 18 !else 19 MAKE_CMD=nmake 18 L=/CO 20 19 !endif 21 20 22 CFLAGS = -Tdp $(CFLAGS) -I$(PDWIN32_INCLUDE)23 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)21 CFLAGS = -Tdp -I..\mesa -I..\glu $(CFLAGS) -I$(PDWIN32_INCLUDE) 22 CXXFLAGS = -Tdp -I..\mesa -I..\glu $(CXXFLAGS) -I$(PDWIN32_INCLUDE) 24 23 25 24 TARGET=GLUT32 … … 36 35 glut_tr24.obj glut_util.obj glut_vidresize.obj glut_warp.obj glut_win.obj \ 37 36 glut_winmisc.obj win32_glx.obj win32_menu.obj win32_util.obj win32_winproc.obj \ 38 win32_x11.obj initterm.obj 37 win32_x11.obj initterm.obj glut_term.obj 39 38 40 39 all : $(TARGET).DLL 41 40 42 41 $(TARGET).DLL: $(OBJS) $(TARGET).def $(TARGET).lrf 43 ILINK /FREE /NOE @$(TARGET).lrf42 ILINK /FREE /NOE $(L) @$(TARGET).lrf 44 43 $(CP) $@ $(PDWIN32_BIN) 45 44 … … 105 104 /OUT:$(TARGET).DLL /DLL 106 105 $(PDWIN32_LIB)\ODINCRT.LIB 107 CPPOM30O.LIB 106 $(RTLLIB_O) 108 107 $(PDWIN32_LIB)\WINMM.LIB 109 108 $(PDWIN32_LIB)\KERNEL32.LIB -
trunk/src/opengl/glut/glut.h
r2595 r2689 1 /* $Id: glut.h,v 1.2 2000-02-09 08:46:07 jeroen Exp $ */ 1 2 #ifndef __glut_h__ 2 3 #define __glut_h__ -
trunk/src/opengl/glut/glut32.def
r2595 r2689 1 ; $Id: glut32.def,v 1.2 2000-02-09 08:46:07 jeroen Exp $ 1 2 LIBRARY GLUT32 INITINSTANCE TERMINSTANCE 2 3 -
trunk/src/opengl/glut/glut_8x13.c
r2595 r2689 1 1 /* $Id: glut_8x13.c,v 1.2 2000-02-09 08:46:07 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_9x15.c
r2595 r2689 1 1 /* $Id: glut_9x15.c,v 1.2 2000-02-09 08:46:07 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_bitmap.c
r2595 r2689 1 1 /* $Id: glut_bitmap.c,v 1.2 2000-02-09 08:46:08 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 -
trunk/src/opengl/glut/glut_bwidth.c
r2595 r2689 1 1 /* $Id: glut_bwidth.c,v 1.2 2000-02-09 08:46:08 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 -
trunk/src/opengl/glut/glut_cindex.c
r2595 r2689 1 1 /* $Id: glut_cindex.c,v 1.2 2000-02-09 08:46:08 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1996, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_cmap.c
r2595 r2689 1 1 /* $Id: glut_cmap.c,v 1.2 2000-02-09 08:46:08 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1996, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_cursor.c
r2595 r2689 1 1 /* $Id: glut_cursor.c,v 1.2 2000-02-09 08:46:08 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1995, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_dials.c
r2595 r2689 1 1 /* $Id: glut_dials.c,v 1.2 2000-02-09 08:46:09 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 8 8 #include "glutint.h" 9 9 10 void APIENTRY 10 void APIENTRY 11 11 glutButtonBoxFunc(GLUTbuttonBoxCB buttonBoxFunc) 12 12 { … … 17 17 } 18 18 19 void APIENTRY 19 void APIENTRY 20 20 glutDialsFunc(GLUTdialsCB dialsFunc) 21 21 { -
trunk/src/opengl/glut/glut_dstr.c
r2595 r2689 1 1 /* $Id: glut_dstr.c,v 1.2 2000-02-09 08:46:09 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_event.c
r2595 r2689 1 1 /* $Id: glut_event.c,v 1.2 2000-02-09 08:46:09 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1997, 1998. */ 3 3 … … 333 333 TranslateMessage(&event); /* translate virtual-key messages*/ 334 334 #if defined(__WIN32OS2__) 335 DispatchMessageA(&event); 335 DispatchMessageA(&event); /* call the window proc*/ 336 336 #else 337 337 DispatchMessage(&event); /* call the window proc*/ … … 1033 1033 } 1034 1034 /* Be sure to configure window BEFORE map window is done. */ 1035 1036 1035 if (workMask & GLUT_CONFIGURE_WORK) { 1037 1036 #if defined(_WIN32) || defined(__WIN32OS2__) … … 1083 1082 /* Do the repositioning, moving, and push/pop. */ 1084 1083 SetWindowPos(window->win, 1085 window->desiredStack == Above ? HWND_TOP : HWND_NOTOPMOST,1084 window->desiredStack == (Above ? HWND_TOP : HWND_NOTOPMOST), 1086 1085 changes.left, changes.top, 1087 1086 changes.right - changes.left, changes.bottom - changes.top, … … 1098 1097 window->desiredY = point.y; 1099 1098 } 1100 #else /* !_WIN32*/1099 #else /* !_WIN32 */ 1101 1100 XWindowChanges changes; 1102 1101 … … 1114 1113 1115 1114 hints.flags = MWM_HINTS_DECORATIONS; 1116 hints.decorations = 0; /* Absolutely no1115 hints.decorations = 0; /* Absolutely no*/ 1117 1116 decorations. */ 1118 1117 XChangeProperty(__glutDisplay, window->win, … … 1205 1204 1206 1205 __glutSetWindow(window); 1206 1207 1207 window->reshape(window->width, window->height); 1208 1208 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 #endif 1209 1228 1210 1229 /* Setting the redisplay bit on the first reshape is … … 1216 1235 workMask |= GLUT_REDISPLAY_WORK; 1217 1236 } 1237 1238 1218 1239 /* The code below is more involved than otherwise necessary 1219 1240 because it is paranoid about the overlay or entire window … … 1303 1324 finish and debug work there is. */ 1304 1325 1305 1306 1326 workMask |= window->workMask; 1307 1327 -
trunk/src/opengl/glut/glut_ext.c
r2595 r2689 1 1 /* $Id: glut_ext.c,v 1.2 2000-02-09 08:46:11 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 12 12 13 13 /* CENTRY */ 14 int APIENTRY 14 int APIENTRY 15 15 glutExtensionSupported(const char *extension) 16 16 { -
trunk/src/opengl/glut/glut_fullscrn.c
r2595 r2689 1 1 /* $Id: glut_fullscrn.c,v 1.2 2000-02-09 08:46:11 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1995, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_gamemode.c
r2595 r2689 1 1 /* $Id: glut_gamemode.c,v 1.2 2000-02-09 08:46:11 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_get.c
r2595 r2689 1 1 /* $Id: glut_get.c,v 1.2 2000-02-09 08:46:12 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_hel10.c
r2595 r2689 1 1 /* $Id: glut_hel10.c,v 1.2 2000-02-09 08:46:12 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_hel12.c
r2595 r2689 1 1 /* $Id: glut_hel12.c,v 1.2 2000-02-09 08:46:12 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_hel18.c
r2595 r2689 1 1 /* $Id: glut_hel18.c,v 1.2 2000-02-09 08:46:12 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_init.c
r2595 r2689 1 1 /* $Id: glut_init.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 59 59 #if defined(_WIN32) || defined(__WIN32OS2__) 60 60 61 #if def __BORLANDC__61 #if defined(__BORLANDC__) || defined(__WIN32OS2__) 62 62 #include <float.h> /* For masking floating point exceptions. */ 63 63 #endif … … 79 79 return; 80 80 81 #if def __BORLANDC__81 #if defined(__BORLANDC__) || defined(__WIN32OS2__) 82 82 /* Under certain conditions (e.g. while rendering solid surfaces with 83 83 lighting enabled) Microsoft OpenGL libraries cause some illegal -
trunk/src/opengl/glut/glut_input.c
r2595 r2689 1 1 /* $Id: glut_input.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_joy.c
r2595 r2689 1 1 /* $Id: glut_joy.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1997, 1998. */ 3 3 -
trunk/src/opengl/glut/glut_key.c
r2595 r2689 1 1 /* $Id: glut_key.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_keyctrl.c
r2595 r2689 1 1 /* $Id: glut_keyctrl.c,v 1.2 2000-02-09 08:46:13 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_keyup.c
r2595 r2689 1 1 /* $Id: glut_keyup.c,v 1.2 2000-02-09 08:46:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_mesa.c
r2595 r2689 1 1 /* $Id: glut_mesa.c,v 1.2 2000-02-09 08:46:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996. */ 3 3 4 /* This program is freely distributable without licensing fees 5 and is provided without guarantee or warrantee expressed or 4 /* This program is freely distributable without licensing fees 5 and is provided without guarantee or warrantee expressed or 6 6 implied. This program is -not- in the public domain. */ 7 7 … … 29 29 static int doneAlready = 0; 30 30 char *env, *vendor, *renderer; 31 32 /*#ifdef __WIN32OS2__ 33 __glutMesaSwapHackSupport=1; 34 return; 35 #endif*/ 31 36 32 37 if (doneAlready) -
trunk/src/opengl/glut/glut_modifier.c
r2595 r2689 1 1 /* $Id: glut_modifier.c,v 1.2 2000-02-09 08:46:14 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 4 /* This program is freely distributable without licensing fees 5 and is provided without guarantee or warrantee expressed or 4 /* This program is freely distributable without licensing fees 5 and is provided without guarantee or warrantee expressed or 6 6 implied. This program is -not- in the public domain. */ 7 7 -
trunk/src/opengl/glut/glut_mroman.c
r2595 r2689 1 1 /* $Id: glut_mroman.c,v 1.2 2000-02-09 08:46:15 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_overlay.c
r2595 r2689 1 1 /* $Id: glut_overlay.c,v 1.2 2000-02-09 08:46:15 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */ 3 3 … … 456 456 457 457 window->overlay = overlay; 458 glutUseLayer( GLUT_OVERLAY);458 glutUseLayer((GLenum)GLUT_OVERLAY); 459 459 460 460 if (overlay->treatAsSingle) { … … 475 475 /* If using overlay, switch to the normal layer. */ 476 476 if (window->renderWin == overlay->win) { 477 glutUseLayer( GLUT_NORMAL);477 glutUseLayer((GLenum)GLUT_NORMAL); 478 478 } 479 479 #if !defined(_WIN32) && !defined(__WIN32OS2__) -
trunk/src/opengl/glut/glut_roman.c
r2595 r2689 1 1 /* $Id: glut_roman.c,v 1.2 2000-02-09 08:46:16 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_shapes.c
r2595 r2689 1 1 /* $Id: glut_shapes.c,v 1.2 2000-02-09 08:46:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 … … 70 70 { 71 71 QUAD_OBJ_INIT(); 72 gluQuadricDrawStyle(quadObj, GLU_LINE);73 gluQuadricNormals(quadObj, GLU_SMOOTH);72 gluQuadricDrawStyle(quadObj, (GLenum)GLU_LINE); 73 gluQuadricNormals(quadObj, (GLenum)GLU_SMOOTH); 74 74 /* If we ever changed/used the texture or orientation state 75 75 of quadObj, we'd need to change it to the defaults here … … 82 82 { 83 83 QUAD_OBJ_INIT(); 84 gluQuadricDrawStyle(quadObj, GLU_FILL);85 gluQuadricNormals(quadObj, GLU_SMOOTH);84 gluQuadricDrawStyle(quadObj, (GLenum)GLU_FILL); 85 gluQuadricNormals(quadObj, (GLenum)GLU_SMOOTH); 86 86 /* If we ever changed/used the texture or orientation state 87 87 of quadObj, we'd need to change it to the defaults here … … 95 95 { 96 96 QUAD_OBJ_INIT(); 97 gluQuadricDrawStyle(quadObj, GLU_LINE);98 gluQuadricNormals(quadObj, GLU_SMOOTH);97 gluQuadricDrawStyle(quadObj, (GLenum)GLU_LINE); 98 gluQuadricNormals(quadObj, (GLenum)GLU_SMOOTH); 99 99 /* If we ever changed/used the texture or orientation state 100 100 of quadObj, we'd need to change it to the defaults here … … 108 108 { 109 109 QUAD_OBJ_INIT(); 110 gluQuadricDrawStyle(quadObj, GLU_FILL);111 gluQuadricNormals(quadObj, GLU_SMOOTH);110 gluQuadricDrawStyle(quadObj, (GLenum)GLU_FILL); 111 gluQuadricNormals(quadObj, (GLenum)GLU_SMOOTH); 112 112 /* If we ever changed/used the texture or orientation state 113 113 of quadObj, we'd need to change it to the defaults here -
trunk/src/opengl/glut/glut_space.c
r2595 r2689 1 1 /* $Id: glut_space.c,v 1.2 2000-02-09 08:46:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 8 8 #include "glutint.h" 9 9 10 void APIENTRY 10 void APIENTRY 11 11 glutSpaceballMotionFunc(GLUTspaceMotionCB spaceMotionFunc) 12 12 { … … 17 17 } 18 18 19 void APIENTRY 19 void APIENTRY 20 20 glutSpaceballRotateFunc(GLUTspaceRotateCB spaceRotateFunc) 21 21 { … … 26 26 } 27 27 28 void APIENTRY 28 void APIENTRY 29 29 glutSpaceballButtonFunc(GLUTspaceButtonCB spaceButtonFunc) 30 30 { -
trunk/src/opengl/glut/glut_stroke.c
r2595 r2689 1 1 /* $Id: glut_stroke.c,v 1.2 2000-02-09 08:46:16 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 -
trunk/src/opengl/glut/glut_swap.c
r2595 r2689 1 1 /* $Id: glut_swap.c,v 1.2 2000-02-09 08:46:17 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_swidth.c
r2595 r2689 1 1 /* $Id: glut_swidth.c,v 1.2 2000-02-09 08:46:17 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1995. */ 3 3 -
trunk/src/opengl/glut/glut_tablet.c
r2595 r2689 1 1 /* $Id: glut_tablet.c,v 1.2 2000-02-09 08:46:17 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 10 10 #include "glutint.h" 11 11 12 void APIENTRY 12 void APIENTRY 13 13 glutTabletMotionFunc(GLUTtabletMotionCB tabletMotionFunc) 14 14 { … … 24 24 } 25 25 26 void APIENTRY 26 void APIENTRY 27 27 glutTabletButtonFunc(GLUTtabletButtonCB tabletButtonFunc) 28 28 { -
trunk/src/opengl/glut/glut_teapot.c
r2595 r2689 1 1 /* $Id: glut_teapot.c,v 1.2 2000-02-09 08:46:17 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 196 196 197 197 /* CENTRY */ 198 void APIENTRY 198 void APIENTRY 199 199 glutSolidTeapot(GLdouble scale) 200 200 { … … 202 202 } 203 203 204 void APIENTRY 204 void APIENTRY 205 205 glutWireTeapot(GLdouble scale) 206 206 { -
trunk/src/opengl/glut/glut_tr10.c
r2595 r2689 1 1 /* $Id: glut_tr10.c,v 1.2 2000-02-09 08:46:18 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_tr24.c
r2595 r2689 1 1 /* $Id: glut_tr24.c,v 1.2 2000-02-09 08:46:18 jeroen Exp $ */ 2 2 /* GENERATED FILE -- DO NOT MODIFY */ 3 3 -
trunk/src/opengl/glut/glut_util.c
r2595 r2689 1 1 /* $Id: glut_util.c,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 … … 44 44 dprintf(("GLUT32: %s\n",errmsg)); 45 45 #endif 46 47 46 fprintf(stderr, "GLUT: Warning in %s: ", 48 47 __glutProgramName ? __glutProgramName : "(unamed)"); -
trunk/src/opengl/glut/glut_vidresize.c
r2595 r2689 1 1 /* $Id: glut_vidresize.c,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996. */ 3 3 -
trunk/src/opengl/glut/glut_warp.c
r2595 r2689 1 1 /* $Id: glut_warp.c,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_win.c
r2595 r2689 1 1 /* $Id: glut_win.c,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997. */ 3 3 -
trunk/src/opengl/glut/glut_winmisc.c
r2595 r2689 1 1 /* $Id: glut_winmisc.c,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994. */ 3 3 -
trunk/src/opengl/glut/glutbitmap.h
r2595 r2689 1 /* $Id: glutbitmap.h,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 1 2 #ifndef __glutbitmap_h__ 2 3 #define __glutbitmap_h__ -
trunk/src/opengl/glut/glutint.h
r2595 r2689 1 /* $Id: glutint.h,v 1.2 2000-02-09 08:46:19 jeroen Exp $ */ 1 2 #ifndef __glutint_h__ 2 3 #define __glutint_h__ -
trunk/src/opengl/glut/glutos2.h
r2595 r2689 1 /* $Id: glutos2.h,v 1.2 2000-02-09 08:46:20 jeroen Exp $ */ 1 2 #ifndef __glutos2_h__ 2 3 #define __glutos2_h__ -
trunk/src/opengl/glut/glutstroke.h
r2595 r2689 1 /* $Id: glutstroke.h,v 1.2 2000-02-09 08:46:20 jeroen Exp $ */ 1 2 #ifndef __glutstroke_h__ 2 3 #define __glutstroke_h__ -
trunk/src/opengl/glut/initterm.cpp
r2595 r2689 1 /* $Id: initterm.cpp,v 1. 1 2000-02-01 19:42:07 sandervlExp $ */1 /* $Id: initterm.cpp,v 1.2 2000-02-09 08:46:20 jeroen Exp $ */ 2 2 3 3 /* … … 41 41 } 42 42 43 BOOL WINAPI Glut32LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID ImpLoad); 44 43 45 /*-------------------------------------------------------------------*/ 44 46 /* A clean up routine registered with DosExitList must be used if */ … … 48 50 /*-------------------------------------------------------------------*/ 49 51 static void APIENTRY cleanup(ULONG reason); 50 51 52 52 53 /****************************************************************************/ … … 81 82 /*******************************************************************/ 82 83 83 if(RegisterLxDll(hModule, 0, 0) == FALSE)84 if(RegisterLxDll(hModule, Glut32LibMain, 0) == FALSE) 84 85 return 0UL; 85 86 86 rc = DosExitList(0x000 0F000|EXLST_ADD, cleanup);87 rc = DosExitList(0x000F0000|EXLST_ADD, cleanup); 87 88 if(rc) 88 89 return 0UL; -
trunk/src/opengl/glut/layerutil.c
r2595 r2689 1 1 /* $Id: layerutil.c,v 1.2 2000-02-09 08:46:20 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1993, 1994. */ 3 3 -
trunk/src/opengl/glut/layerutil.h
r2595 r2689 1 /* $Id: layerutil.h,v 1.2 2000-02-09 08:46:21 jeroen Exp $ */ 1 2 #ifndef __layerutil_h__ 2 3 #define __layerutil_h__ -
trunk/src/opengl/glut/os2_glx.h
r2595 r2689 1 /* $Id: os2_glx.h,v 1.2 2000-02-09 08:46:21 jeroen Exp $ */ 1 2 #ifndef __os2_glx_h__ 2 3 #define __os2_glx_h__ -
trunk/src/opengl/glut/os2_x11.h
r2595 r2689 1 /* $Id: os2_x11.h,v 1.2 2000-02-09 08:46:21 jeroen Exp $ */ 1 2 #ifndef __os2_x11_h__ 2 3 #define __os2_x11_h__ -
trunk/src/opengl/glut/pfddefs.h
r2595 r2689 1 /* $Id: pfddefs.h,v 1.2 2000-02-09 08:46:21 jeroen Exp $ */ 1 2 #define PFD_TYPE_RGBA 0 2 3 #define PFD_TYPE_COLORINDEX 1 -
trunk/src/opengl/glut/stroke.h
r2595 r2689 1 /* $Id: stroke.h,v 1.2 2000-02-09 08:46:21 jeroen Exp $ */ 1 2 /* $XConsortium: wfont.h,v 5.1 91/02/16 09:46:37 rws Exp $ */ 2 3 … … 6 7 All Rights Reserved 7 8 8 Permission to use, copy, modify, and distribute this software and its 9 documentation for any purpose and without fee is hereby granted, 9 Permission to use, copy, modify, and distribute this software and its 10 documentation for any purpose and without fee is hereby granted, 10 11 provided that the above copyright notice appear in all copies and that 11 both that copyright notice and this permission notice appear in 12 both that copyright notice and this permission notice appear in 12 13 supporting documentation, and that the names of Sun Microsystems, 13 the X Consortium, and MIT not be used in advertising or publicity 14 pertaining to distribution of the software without specific, written 15 prior permission. 14 the X Consortium, and MIT not be used in advertising or publicity 15 pertaining to distribution of the software without specific, written 16 prior permission. 16 17 17 SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 18 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 19 SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 18 SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 19 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 20 SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 20 21 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21 22 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, … … 85 86 Path_pt_ptr pts; /* pointer to them */ 86 87 int closed; /* true if the subpath is closed */ 87 int dcmp_flag; /* flag for pgon dcmp, pgon type 88 int dcmp_flag; /* flag for pgon dcmp, pgon type 88 89 * and dcmped triangle type */ 89 90 } Path_subpath; -
trunk/src/opengl/glut/wgl.h
r2595 r2689 1 /* JvdH - define the wglXXX functions*/1 /* $Id: wgl.h,v 1.2 2000-02-09 08:46:22 jeroen Exp $ */ 2 2 3 3 typedef ULONG HGC; -
trunk/src/opengl/glut/win32_glx.c
r2595 r2689 1 1 /* $Id: win32_glx.c,v 1.2 2000-02-09 08:46:22 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 -
trunk/src/opengl/glut/win32_menu.c
r2595 r2689 1 1 /* $Id: win32_menu.c,v 1.2 2000-02-09 08:46:22 jeroen Exp $ */ 2 2 /* Copyright (c) Mark J. Kilgard, 1994, 1997, 1998. */ 3 3 /* Copyright (c) Nate Robins, 1997. */ -
trunk/src/opengl/glut/win32_util.c
r2595 r2689 1 1 /* $Id: win32_util.c,v 1.2 2000-02-09 08:46:22 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 -
trunk/src/opengl/glut/win32_winproc.c
r2595 r2689 1 1 /* $Id: win32_winproc.c,v 1.2 2000-02-09 08:46:23 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 13 #include <ctype.h> 13 14 #endif … … 59 60 LPMINMAXINFO minmax; /* Minimum/maximum info structure. */ 60 61 GLUTwindow* window; /* GLUT window associated with message. */ 61 GLUTmenu* menu; /* GLUT menu associated with message.*/62 GLUTmenu* menu; /* GLUT menu associated with message.*/ 62 63 int x, y, width, height, key; 63 64 int button = -1; 65 int fSendKeyStroke=1; 64 66 65 67 switch(msg) { … … 69 71 PostQuitMessage(0); 70 72 return 0; 71 #if 073 #if defined(__WIN32OS2__) 72 74 case WM_DESTROY: 73 75 /* XXX NVidia's NT OpenGL can have problems closing down … … 88 90 #endif 89 91 case WM_PAINT: 92 dprintf(("GLUT32: WM_PAINT processing...\n")); 90 93 window = __glutGetWindow(hwnd); 91 94 if (window) { 92 BeginPaint(hwnd, &ps); /* Must have this for some Win32 reason. */ 95 #ifndef __WIN32OS2__ 96 BeginPaint(hwnd, &ps); /* Must have this for some Win32 reason.*/ 93 97 EndPaint(hwnd, &ps); 98 #endif 94 99 if (window->win == hwnd) { 95 100 __glutPostRedisplay(window, GLUT_REPAIR_WORK); … … 211 216 __glutSetWindow(window); 212 217 __glutModifierMask = 0; 213 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on*/218 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on*/ 214 219 __glutModifierMask |= ShiftMask; 215 220 if (GetKeyState(VK_CONTROL) < 0) … … 293 298 __glutSetWindow(window); 294 299 __glutModifierMask = 0; 295 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on*/300 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on*/ 296 301 __glutModifierMask |= ShiftMask; 297 302 if (GetKeyState(VK_CONTROL) < 0) … … 304 309 /* Specially handle any keys that match ASCII values but 305 310 do not generate Windows WM_SYSCHAR or WM_CHAR messages. */ 311 306 312 switch (wParam) { 307 313 case VK_DELETE: 308 314 handleDelete: 309 315 /* Delete is an ASCII character. */ 310 GetCursorPos(&point); 311 ScreenToClient(window->win, &point); 312 __glutSetWindow(window); 313 __glutModifierMask = 0; 314 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on */ 315 __glutModifierMask |= ShiftMask; 316 if (GetKeyState(VK_CONTROL) < 0) 317 __glutModifierMask |= ControlMask; 318 if (GetKeyState(VK_MENU) < 0) 319 __glutModifierMask |= Mod1Mask; 320 window->keyboard((unsigned char) 127, point.x, point.y); 321 __glutModifierMask = (unsigned int) ~0; 322 return 0; 316 dprintf(("VK_DELETE - wParam is %d\n",wParam)); 317 key=(unsigned char)127; 318 break; 319 320 #ifdef __WIN32OS2__ 321 /* For some reason Odin doesn't generate WM_CHARS for 'special' keys */ 322 /* at least - none that are received here. Create 'em here!! */ 323 case VK_F1: 324 case VK_F2: 325 case VK_F3: 326 case VK_F4: 327 case VK_F5: 328 case VK_F6: 329 case VK_F7: 330 case VK_F8: 331 case VK_F9: 332 case VK_F10: 333 case VK_F11: 334 case VK_F12: 335 case VK_LEFT: 336 case VK_UP: 337 case VK_RIGHT: 338 case VK_DOWN: 339 case VK_PRIOR: 340 case VK_NEXT: 341 case VK_HOME: 342 case VK_END: 343 case VK_INSERT: 344 case VK_ESCAPE: 345 key=wParam; 346 break; 347 #endif 348 323 349 default: 324 350 /* Let the following WM_SYSCHAR or WM_CHAR message generate 325 351 the keyboard callback. */ 352 fSendKeyStroke=0; 326 353 break; 327 354 } 355 356 if(fSendKeyStroke) 357 { 358 dprintf(("Sending keystroke %d...\n",key)); 359 360 GetCursorPos(&point); 361 ScreenToClient(window->win, &point); 362 __glutSetWindow(window); 363 __glutModifierMask = 0; 364 if (GetKeyState(VK_SHIFT) < 0) /* < 0 = high order bit is on*/ 365 __glutModifierMask |= ShiftMask; 366 if (GetKeyState(VK_CONTROL) < 0) 367 __glutModifierMask |= ControlMask; 368 if (GetKeyState(VK_MENU) < 0) 369 __glutModifierMask |= Mod1Mask; 370 window->keyboard(key, point.x, point.y); 371 __glutModifierMask = (unsigned int) ~0; 372 373 return 0; 374 } 328 375 } 329 376 return 0; … … 566 613 567 614 case WM_SIZE: 615 dprintf(("GLUT32: Handling WM_SIZE...")); 568 616 window = __glutGetWindow(hwnd); 569 617 if (window) { … … 586 634 /* A reshape should be considered like posting a 587 635 repair request. */ 636 dprintf(("GLUT32: WM_SIZE processing -> GLUT_REPAIR_WORK\n")); 588 637 __glutPostRedisplay(window, GLUT_REPAIR_WORK); 589 638 } 590 639 } 640 dprintf(("GLUT32: Handled WM_SIZE...")); 591 641 return 0; 592 642 -
trunk/src/opengl/glut/win32_x11.c
r2595 r2689 1 1 /* $Id: win32_x11.c,v 1.2 2000-02-09 08:46:23 jeroen Exp $ */ 2 2 /* Copyright (c) Nate Robins, 1997. */ 3 3 /* portions Copyright (c) Mark Kilgard, 1998. */
Note:
See TracChangeset
for help on using the changeset viewer.