View previous topic :: View next topic |
Author |
Message |
ViolentAJ
Joined: 05 Feb 2009 Posts: 56
|
Posted: Thu Apr 23, 2009 2:31 am Post subject: Glut |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Thu Apr 23, 2009 6:42 am Post subject: |
|
|
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 |
|
|
ViolentAJ
Joined: 05 Feb 2009 Posts: 56
|
Posted: Thu Apr 23, 2009 9:36 am Post subject: |
|
|
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 |
|
|
|