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

OpenGL in GTKD

 
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 Jun 25, 2008 2:58 am    Post subject: OpenGL in GTKD Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jun 25, 2008 1:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
eldar



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

PostPosted: Wed Jun 25, 2008 3:15 pm    Post subject: Reply with quote

thank you so much Smile
Back to top
View user's profile Send private message
eldar



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

PostPosted: Thu Jun 26, 2008 12:18 am    Post subject: Reply with quote

Ok, updated my gtkD from the trunk - but I really don't know how to use it. I modified the demo shipped with the library:
http://www.everfall.com/paste/id.php?jkzavpfipqgm
After running this example I have the following:
http://www.everfall.com/paste/id.php?hucyhv9ematd
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jun 26, 2008 12:50 pm    Post subject: Reply with quote

I think you have the same problem that i had when testing the demo with derelict. a missing:
Code:
DerelictGLU.load();
Back to top
View user's profile Send private message
eldar



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

PostPosted: Fri Jun 27, 2008 3:36 am    Post subject: Reply with quote

Added
Code:
DerelictGLU.load();
but it still crashes. Could you please share that sample code where you used derelict with gtk?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Fri Jun 27, 2008 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
eldar



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

PostPosted: Fri Jun 27, 2008 1:07 pm    Post subject: Reply with quote

thank you, finally everything works Smile
Back to top
View user's profile Send private message
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