View previous topic :: View next topic |
Author |
Message |
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Wed Jul 02, 2008 10:36 am Post subject: OpenGL with win32 |
|
|
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 |
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
Posted: Sat Sep 06, 2008 8:15 am Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Sun Sep 07, 2008 2:25 am Post subject: |
|
|
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
This fixed this problem for me but I don't know if it is 100% correct. |
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
|
Back to top |
|
|
|