Changeset 278
- Timestamp:
- 11/26/07 21:22:09 (7 months ago)
- Files:
-
- trunk/DerelictFT/derelict/freetype/ftfuncs.d (modified) (1 diff)
- trunk/DerelictGL/derelict/opengl/gl.d (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictFT/derelict/freetype/ftfuncs.d
r267 r278 296 296 DerelictFT.setup( 297 297 "freetype.dll", 298 "libfreetype.so ",298 "libfreetype.so.6,libfreetype.so", 299 299 "", 300 300 &loadFT, trunk/DerelictGL/derelict/opengl/gl.d
r269 r278 50 50 import derelict.util.wrapper; 51 51 52 version(Windows) 52 version(Windows) 53 53 { 54 54 import derelict.opengl.wgl; … … 62 62 else version(darwin) 63 63 { 64 void loadPlatformGL(SharedLib lib) {}64 void loadPlatformGL(SharedLib lib) {} 65 65 } 66 66 … … 105 105 version(DigitalMars) 106 106 { 107 pragma(lib, "gdi32.lib"); 107 version(Tango) 108 { 109 pragma(lib, "usergdi32.lib"); 110 } 111 else 112 { 113 pragma(lib, "gdi32.lib"); 114 } 108 115 } 109 116 … … 157 164 GLLoader.load(libNameString); 158 165 } 159 166 160 167 static void load(char[][] libs) 161 168 { 162 GLLoader.load(libs); 169 GLLoader.load(libs); 163 170 } 164 171 … … 172 179 GLLoader.unload(); 173 180 } 174 181 175 182 static bool loaded() 176 183 { 177 return GLLoader.loaded;178 } 179 184 return GLLoader.loaded; 185 } 186 180 187 static char[] libName() 181 188 { 182 return GLLoader.libName;189 return GLLoader.libName; 183 190 } 184 191 … … 196 203 } 197 204 else throw new DerelictException("DerelictGL.hasValidContext is unimplemented for this platform"); 198 205 199 206 return true; 200 207 } 201 208 202 209 static DerelictGLContext getCurrentContext() 203 210 { 204 version(Windows) return wglGetCurrentContext();205 else version(UsingGLX) return glXGetCurrentContext();206 else throw new DerelictException("DerelictGL.getCurrentContext is Unimplemented for this platform");211 version(Windows) return wglGetCurrentContext(); 212 else version(UsingGLX) return glXGetCurrentContext(); 213 else throw new DerelictException("DerelictGL.getCurrentContext is Unimplemented for this platform"); 207 214 } 208 215 … … 225 232 if(GLVersion.VersionNone == maxVersionAvail) 226 233 setVersion(); 227 234 228 235 if(GLVersion.Version11 == maxVersionAvail) 229 236 { 230 loadedVersion = GLVersion.Version11;231 return;232 }237 loadedVersion = GLVersion.Version11; 238 return; 239 } 233 240 234 241 try … … 253 260 if(minVersion >= GLVersion.Version20) 254 261 loadVersion(&loadGL20, GLVersion.Version20); 255 262 256 263 // version 2.1 257 264 if(minVersion >= GLVersion.Version21) 258 loadVersion(&loadGL21, GLVersion.Version21);265 loadVersion(&loadGL21, GLVersion.Version21); 259 266 } 260 267 catch(SharedLibProcLoadException slple)
