Changeset 2699 for trunk/src/opengl
- Timestamp:
- Feb 9, 2000, 2:44:32 PM (26 years ago)
- Location:
- trunk/src/opengl
- Files:
-
- 3 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/glu/makefile
r2692 r2699 1 # $Id: makefile,v 1. 3 2000-02-09 12:08:31 birdExp $1 # $Id: makefile,v 1.4 2000-02-09 13:44:32 sandervl Exp $ 2 2 # 3 3 # PD-Win32 … … 33 33 34 34 SOURCES = \ 35 initterm.cpp \36 35 nurbs\interface\bezierEval.cpp \ 37 36 nurbs\interface\bezierPatch.cpp \ … … 223 222 224 223 OBJS = \ 225 initterm.obj \ 224 $(PDWIN32_LIB)/dllentry.obj \ 225 resource.obj \ 226 226 nurbs\interface\bezierEval.obj \ 227 227 nurbs\interface\bezierPatch.obj \ … … 314 314 util\registry.obj 315 315 316 $(TARGET).DLL: $(SOURCES) initterm.obj $(TARGET).lrf $(TARGET).def316 $(TARGET).DLL: $(SOURCES) resource.obj $(TARGET).lrf $(TARGET).def 317 317 cd util 318 318 $(MAKE_CMD) … … 344 344 $(IMPDEF) $** $@ 345 345 346 resource.asm: $(TARGET).rc 347 $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc 348 349 resource.obj: resource.asm 350 346 351 clean: 347 $(RM) *.obj *.dll *.lib *.lrf 352 $(RM) *.obj *.dll *.lib *.lrf *exp.def resource.asm 348 353 $(RM) $(PDWIN32_BIN)\$(TARGET).dll 349 354 $(RM) $(PDWIN32_LIB)\$(TARGET).lib -
trunk/src/opengl/glut/Makefile
r2692 r2699 1 # $Id: Makefile,v 1. 3 2000-02-09 12:08:32 birdExp $1 # $Id: Makefile,v 1.4 2000-02-09 13:44:32 sandervl Exp $ 2 2 # 3 3 # PD-Win32 API … … 39 39 glut_tr24.obj glut_util.obj glut_vidresize.obj glut_warp.obj glut_win.obj \ 40 40 glut_winmisc.obj win32_glx.obj win32_menu.obj win32_util.obj win32_winproc.obj \ 41 win32_x11.obj initterm.obj glut_term.obj41 win32_x11.obj glut_term.obj $(PDWIN32_LIB)/dllentry.obj resource.obj 42 42 43 43 all : $(TARGET).DLL … … 53 53 $(TARGET)exp.def: $(TARGET).def 54 54 $(IMPDEF) $** $@ 55 56 resource.asm: $(TARGET).rc 57 $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc 58 59 resource.obj: resource.asm 55 60 56 61 win32_glx.obj: win32_glx.c os2_glx.h … … 111 116 $(PDWIN32_LIB)\WINMM.LIB 112 117 $(PDWIN32_LIB)\KERNEL32.LIB 113 $(PDWIN32_LIB)\PMWINX.LIB114 118 $(PDWIN32_LIB)\GDI32.LIB 115 119 $(PDWIN32_LIB)\USER32.LIB 116 $(PDWIN32_LIB)\OPENGL32.LIB117 120 $(PDWIN32_LIB)\GLU32.LIB 118 121 $(PDWIN32_LIB)\OPENGL32.LIB … … 122 125 123 126 clean: 124 $(RM) *.obj *.lib *.dll *.map *.lrf 127 $(RM) *.obj *.lib *.dll *.map *.lrf *exp.def resource.asm 125 128 $(RM) $(PDWIN32_BIN)\$(TARGET).dll 126 129 $(RM) $(PDWIN32_LIB)\$(TARGET).lib -
trunk/src/opengl/initterm.cpp
r2595 r2699 1 /* $Id: initterm.cpp,v 1. 2 2000-02-01 19:41:55sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.3 2000-02-09 13:44:30 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include <odin.h> 34 34 #include <win32type.h> 35 #include <winconst.h> 35 36 #include <odinlx.h> 36 37 #include <misc.h> /* PLF Wed 98-03-18 23:18:15 */ … … 41 42 void CDECL _ctordtorInit( void ); 42 43 void CDECL _ctordtorTerm( void ); 44 45 //Win32 resource table (produced by wrc) 46 extern DWORD _Resource_PEResTab; 43 47 } 44 48 45 /*-------------------------------------------------------------------*/ 46 /* A clean up routine registered with DosExitList must be used if */ 47 /* runtime calls are required and the runtime is dynamically linked. */ 48 /* This will guarantee that this clean up routine is run before the */ 49 /* library DLL is terminated. */ 50 /*-------------------------------------------------------------------*/ 51 static void APIENTRY cleanup(ULONG reason); 49 //****************************************************************************** 50 //****************************************************************************** 51 BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) 52 { 53 switch (fdwReason) 54 { 55 case DLL_PROCESS_ATTACH: 56 mod_init(); 57 return TRUE; 52 58 59 case DLL_THREAD_ATTACH: 60 case DLL_THREAD_DETACH: 61 return TRUE; 53 62 63 case DLL_PROCESS_DETACH: 64 mod_cleanup(); 65 _ctordtorTerm(); 66 return TRUE; 67 } 68 return FALSE; 69 } 54 70 /****************************************************************************/ 55 71 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 83 99 /*******************************************************************/ 84 100 85 if(RegisterLxDll(hModule, 0, 0) == FALSE)101 if(RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab) == FALSE) 86 102 return 0UL; 87 103 88 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);89 if(rc)90 return 0UL;91 92 mod_init();93 104 break; 94 105 … … 106 117 return 1UL; 107 118 } 108 109 110 static void APIENTRY cleanup(ULONG ulReason)111 {112 mod_cleanup();113 114 _ctordtorTerm();115 116 DosExitList(EXLST_EXIT, cleanup);117 118 return ;119 } -
trunk/src/opengl/makefile
r2692 r2699 1 # $Id: makefile,v 1. 4 2000-02-09 12:08:31 birdExp $1 # $Id: makefile,v 1.5 2000-02-09 13:44:31 sandervl Exp $ 2 2 # 3 3 # PD-Win32 API … … 35 35 TARGET3 = glut\glut32 36 36 37 OBJS1= opengl32.obj initterm.obj 37 OBJS1= opengl32.obj initterm.obj resource.obj 38 38 39 39 all: $(TARGET1).dll $(TARGET1).lib \ … … 43 43 $(TARGET1).dll: $(OBJS1) $(TARGET1).def 44 44 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS1) $(TARGET1).def \ 45 $(PDWIN32_LIB)/ pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \45 $(PDWIN32_LIB)/gdi32.lib $(PDWIN32_LIB)/kernel32.lib \ 46 46 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 47 47 OS2386.LIB $(RTLLIB_O) … … 55 55 $(TARGET1)exp.def: $(TARGET1).def 56 56 $(IMPDEF) $** $@ 57 58 resource.asm: $(TARGET1).rc 59 $(RC) $(RCFLAGS) -o resource.asm $(TARGET1).rc 60 61 resource.obj: resource.asm 57 62 58 63 $(TARGET2).dll: … … 70 75 71 76 clean: 72 $(RM) *.obj *.lib *.dll *.map 77 $(RM) *.obj *.lib *.dll *.map resource.asm *exp.def 73 78 $(RM) $(PDWIN32_BIN)\$(TARGET1).dll 74 79 $(RM) $(PDWIN32_LIB)\$(TARGET1).lib -
trunk/src/opengl/opengl32.def
r2689 r2699 1 ;/* $Id: opengl32.def,v 1. 4 2000-02-09 08:50:54 jeroenExp $ */1 ;/* $Id: opengl32.def,v 1.5 2000-02-09 13:44:31 sandervl Exp $ */ 2 2 LIBRARY OPENGL32 INITINSTANCE 3 3 … … 5 5 6 6 IMPORTS 7 GetPixelFormat=GDI32.GetPixelFormat8 DescribePixelFormat=GDI32.DescribePixelFormat9 ChoosePixelFormat=GDI32.ChoosePixelFormat10 SetPixelFormat=GDI32.SetPixelFormat11 SwapBuffers=GDI32.SwapBuffers12 7 OS2glAccum=OPENGL.glAccum 13 8 OS2glAlphaFunc=OPENGL.glAlphaFunc … … 369 364 370 365 EXPORTS 371 GetPixelFormat 372 SetPixelFormat 373 ChoosePixelFormat 374 DescribePixelFormat 375 SwapBuffers 366 GetPixelFormat = _GetPixelFormat@4 367 SetPixelFormat = _SetPixelFormat@12 368 ChoosePixelFormat = _ChoosePixelFormat@8 369 DescribePixelFormat = _DescribePixelFormat@16 370 SwapBuffers = _SwapBuffers@4 371 376 372 ; NOTE: The Glmf** functions are NT specific. The are used to generate an 377 373 ; enhanced meta-file in which OpenGL commands are stored.
Note:
See TracChangeset
for help on using the changeset viewer.