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

OpenGL Addon Patch

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Chman



Joined: 03 Mar 2007
Posts: 11

PostPosted: Fri Nov 02, 2007 4:33 am    Post subject: OpenGL Addon Patch Reply with quote

Hi,

I'm a tango user and the OpenGL addon didn't work because of some specifics Phobos calls. So I made this little patch to make it works using standard DFL features (no more phobos/tango related code).

Code:

22,23d21
< import std.c.stdlib;
<
114c112
<         std.c.windows.windows.PIXELFORMATDESCRIPTOR pfd;
---
>         dfl.internal.winapi.PIXELFORMATDESCRIPTOR pfd;
134c132
<         SetPixelFormat(cast(std.c.windows.windows.HANDLE) _hdc, n, &pfd);
---
>         SetPixelFormat(cast(dfl.internal.winapi.HANDLE) _hdc, n, &pfd);
138c136
<         ref std.c.windows.windows.PIXELFORMATDESCRIPTOR pfd,
---
>         ref dfl.internal.winapi.PIXELFORMATDESCRIPTOR pfd,


Tested with last Tango & DFL. Should work with Phobos too. Maybe this will be useful to someone else.

Tom
Back to top
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Thu Nov 15, 2007 11:24 pm    Post subject: Reply with quote

Thanks. Don't use Tango myself, but I'm all for maximum compatibility.
I applied the patch and uploaded a new version to the AddOns page.

(It's a wiki, so you also could have done that yourself if you had felt so inclined).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL 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