FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OS X 10.4.9 GDC 0.23 and derelict opengl

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
Paolo Invernizzi



Joined: 20 Jul 2006
Posts: 17

PostPosted: Thu Mar 29, 2007 7:19 am    Post subject: OS X 10.4.9 GDC 0.23 and derelict opengl Reply with quote

Hi all,

With this little patch, I can use derelict OpenGL on OS X.
Can be merged in the trunk?
Thanks! Paolo

Code:

Index: gl.d
===================================================================
--- gl.d        (revision 247)
+++ gl.d        (working copy)
@@ -55,7 +55,9 @@
         import derelict.util.wintypes;
     }
     else version(linux)
-        version = UsingGLX;
+        version = UsingGLX;
+    else version(darwin)
+        void loadPlatformGL(SharedLib lib){};
 
     version(UsingGLX)
         import derelict.opengl.glx;
@@ -328,7 +330,7 @@
     DerelictGL.setup (
         "opengl32.dll",
         "libGL.so,libGL.so.1",
-        "",
+        "/System/Library/Frameworks/OpenGL.framework/OpenGL",
         &loadAll
     );
 }
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Mar 29, 2007 10:41 am    Post subject: Reply with quote

Added to the trunk. Thanks for doing this.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group