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

Glut

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
ViolentAJ



Joined: 05 Feb 2009
Posts: 56

PostPosted: Thu Apr 23, 2009 2:31 am    Post subject: Glut Reply with quote

I'd like to know how to import glut. Would it be import derelict.glut?

I want towork on this guy's tutorials. They actually make sense to me out of all of the tutorials that I've seen.

http://www.swiftless.com/tutorials/opengl/window.html

I wish that there were more D/Derelict-specific tutorials to show you exactly what to import and which things have been changed.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Thu Apr 23, 2009 5:20 am    Post subject: Reply with quote

GLUT is not available in Derelict, use SDL instead. Here are the documentation for Derelict: http://svn.dsource.org/projects/derelict/trunk/docs/index.html and here are some Derelict tutorials: http://dmedia.dprogramming.com/?n=Main.Tutorials All these links are available on the Derelict front page.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Apr 23, 2009 6:42 am    Post subject: Reply with quote

The Derelict documentation, while a bit outdated in some areas, is still accurate in telling you what to import for each package. As for tutorials, doob's link is D-specific. But really, there's very little difference between using SDL, or OpenGL, in C and using them in D. Just substitute the appropriate imports for the C includes, which when using Derelict you can find in the docs if you aren't sure, and make sure any strings you pass to the C side are zero terminated. Other than that, the C tutorials work perfectly well for the D side.

I know in another thread you had a problem, but it had nothing to do with D or Derelict. It was because of a typo you made (SDL_Image instead of SDL_Surface, IIRC). Stick with it, don't rush it, and you'll get your head around it all eventually.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ViolentAJ



Joined: 05 Feb 2009
Posts: 56

PostPosted: Thu Apr 23, 2009 9:36 am    Post subject: Reply with quote

I'll probably look into Arc if I can. I have looked over those tutorials (not the Arc part though, since I didn't want to dl another library; last time I tried installing Tango it ruined everything else).

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict 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