View previous topic :: View next topic |
Author |
Message |
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Wed Jun 25, 2008 2:58 am Post subject: OpenGL in GTKD |
|
|
I am using opengl with gtkD and I found that opengl is poor. Actually I need to use Vertex Buffer Objects. They present in derelict(which is more complete), so the question is - is it possible to use derelict with gtkD? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jun 25, 2008 1:01 pm Post subject: |
|
|
GtkD doesn't depend on the opengl wrappings in the srcgl/gtkglc other then an unneeded import in srcgl/glgtk/GLCapability.d see: svn r505.
So you are free to build your application with the opengl wrapping you want. |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Wed Jun 25, 2008 3:15 pm Post subject: |
|
|
thank you so much |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jun 26, 2008 12:50 pm Post subject: |
|
|
I think you have the same problem that i had when testing the demo with derelict. a missing:
Code: | DerelictGLU.load(); |
|
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Fri Jun 27, 2008 3:36 am Post subject: |
|
|
Added Code: | DerelictGLU.load(); | but it still crashes. Could you please share that sample code where you used derelict with gtk? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Fri Jun 27, 2008 12:32 pm Post subject: |
|
|
It's the same as the one you linked to. I did change the dsss.conf
Code: | --- gtkD/gtkD-svn/demos/gl/dsss.conf 2008-03-14 20:49:59.000000000 +0100
+++ gtkD-test/demos/gl/dsss.conf 2008-06-27 20:27:33.000000000 +0200
@@ -7,7 +7,7 @@
target = shapesGL
buildflags = -I../ -no-export-dynamic
version(linux) {
-buildflags += -L-lGL -L-lGLU -L-ldl
+buildflags += -L-ldl
}
version(Windows){
prebuild=warn Windows support is untested.
@@ -19,7 +19,7 @@
target = simpleGL
buildflags = -I../ -no-export-dynamic
version(linux) {
-buildflags += -L-lGL -L-lGLU -L-ldl
+buildflags += -L-ldl
}
version(Windows){
prebuild=warn Windows support is untested. |
-L-lGL and -L-lGLU are not needed when using derelict |
|
Back to top |
|
|
eldar
Joined: 14 Jun 2008 Posts: 101 Location: Ufa, Russia
|
Posted: Fri Jun 27, 2008 1:07 pm Post subject: |
|
|
thank you, finally everything works |
|
Back to top |
|
|
|