Changeset 92
- Timestamp:
- 02/26/05 12:28:44 (4 years ago)
- Files:
-
- trunk/DerelictGLU/Makefile (modified) (1 diff)
- trunk/DerelictGLU/derelict/opengl/glu.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictGLU/Makefile
r74 r92 7 7 DFLAGS = -v 8 8 LIBFLAGS = -c -n 9 DINC = -I$(SRC.DIR) -I$(OGL.SRC.DIR) 9 DINC = -I$(SRC.DIR) -I$(OGL.SRC.DIR) -I..\DerelictUtil 10 10 11 11 GLU.SRC.DIR = $(SRC.DIR)\derelict\opengl trunk/DerelictGLU/derelict/opengl/glu.d
r90 r92 31 31 32 32 33 private import derelict.opengl.gltypes; 34 private import std.loader; 33 private 34 { 35 import derelict.opengl.gltypes; 36 import derelict.util.loader; 37 } 35 38 36 39 version(Windows) … … 99 102 } 100 103 101 private HXModule hglu; 102 103 private void* getProc(char[] procname) 104 { 105 void *symbol = ExeModule_GetSymbol(hglu, procname); 106 if(symbol is null) 107 throw new Exception("Failed to load glu proc address " ~ procname); 108 return symbol; 104 private SharedLib libGLU; 105 106 private void* getProc(char[] procName) 107 { 108 return Derelict_GetProc(libGLU, procName); 109 109 } 110 110 111 111 public void DerelictGLU_Load(char[] libName) 112 112 { 113 if( hglu!== null)113 if(libGLU !== null) 114 114 return; 115 115 116 hglu = ExeModule_Load(libName); 117 118 if(hglu is null) 119 throw new Exception("Failed to load the GLU shared library."); 120 116 libGLU = Derelict_LoadSharedLib(libName); 121 117 load(); 122 118 } … … 132 128 public void DerelictGLU_Unload() 133 129 { 134 if(hglu !== null) 135 ExeModule_Release(hglu); 130 Derelict_UnloadSharedLib(libGLU); 136 131 } 137 132
