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

OpenGL with win32

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
eldar



Joined: 14 Jun 2008
Posts: 101
Location: Ufa, Russia

PostPosted: Wed Jul 02, 2008 10:36 am    Post subject: OpenGL with win32 Reply with quote

I know it's unsupported, but I decided to give it a try. After compiling and executing opengl demos I wasn't surpeised - the examples didn't start:
Loaded lib = libgtk-win32-2.0-0.dll
Loaded lib = libgobject-2.0-0.dll
Loaded lib = libglib-2.0-0.dll
Loaded lib = libgdk-win32-2.0-0.dll
Loaded lib = libcairo-2.dll
Loaded lib = libpango-1.0-0.dll
Loaded lib = libatk-1.0-0.dll
Loaded lib = libgdkglext-win32-1.0-0.dll
Loaded lib = libgtkglext-win32-1.0-0.dll
object.Exception: Access Violation

I started to find where the problem is by comparing with gtkglext example in C, which works fine on Windows. But anyway, maybe somebody have a workaround on this issue, so I will be glad if you share some ideas Smile
Back to top
View user's profile Send private message
kaarna



Joined: 03 Apr 2006
Posts: 92
Location: Finland

PostPosted: Sat Sep 06, 2008 8:15 am    Post subject: Reply with quote

How did you get it to compile? I didn't manage even I linked in -lopengl32 and -lglu32 (or whatever they were...). The linker just told me that I had all the OpenGL functions undefined. I tried it with DMD...

If you could tell me if you did something special to make it compile, I could try to take a look at it.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Sep 06, 2008 9:26 am    Post subject: Reply with quote

i don't have a windows machine nearby to test, but you might have more luck using derelict: http://dsource.org/forums/viewtopic.php?t=4020
Back to top
View user's profile Send private message
eldar



Joined: 14 Jun 2008
Posts: 101
Location: Ufa, Russia

PostPosted: Sun Sep 07, 2008 2:25 am    Post subject: Reply with quote

Yep, I got it worked on windows - but there was one issue - image in opengl window is blinking when resizing. I fixed that by replacing
Code:

272            if ( drawable.isDoubleBuffered() )
273            {
274                //writefln("configureFrame 4");
275                drawable.swapBuffers();
276                //writefln("configureFrame 5");
277            }
278            else
279            {
280                //writefln("configureFrame 6");
281                glFlush ();
282                //writefln("configureFrame 7");
283            }

in glgtk.GLCapability module by just
Code:

      glFlush ();

This fixed this problem for me but I don't know if it is 100% correct.
Back to top
View user's profile Send private message
kaarna



Joined: 03 Apr 2006
Posts: 92
Location: Finland

PostPosted: Thu Feb 05, 2009 5:55 pm    Post subject: Reply with quote

If this was a bug tracking system and not a forum, I'd mark this as a duplicate of http://www.dsource.org/forums/viewtopic.php?t=3437. Which happens to now have a solution for the problem.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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