www.digitalmars.com         C & C++   DMDScript  

D - D and openGL

reply "anderson" <anderson firestar.com.au> writes:
Has anyone used openGL and D? Does D support C++ and C libs?
May 16 2002
parent reply "anderson" <anderson firestar.com.au> writes:
"anderson" <anderson firestar.com.au> wrote in message
news:abvma1$1ibo$1 digitaldaemon.com...
 Has anyone used openGL and D? Does D support C++ and C libs?

To answer part of my own question (been reading the material), D does support C libs, so openGL will probably work. Has anywone tried openGL with D?
May 16 2002
parent reply "Pavel Minayev" <evilone omen.ru> writes:
"anderson" <anderson firestar.com.au> wrote in message
news:abvpa5$1krs$1 digitaldaemon.com...

 To answer part of my own question (been reading the material), D does
 support C libs, so openGL will probably work. Has anywone tried openGL

 D?

You can download the OpenGL import module here: http://int19h.tamb.ru/files.html. It doesn't contain WGL functions, though, so you'll either have to declare them yourself, or use SDL (it's there as well) to initialize and set the video mode. SDL module comes with an OpenGL spinning cube sample.
May 16 2002
parent reply "anderson" <anderson firestar.com.au> writes:
Thanks alot,

PS - does it support the extention modules?

"Pavel Minayev" <evilone omen.ru> wrote in message
news:abvt6t$1nvo$1 digitaldaemon.com...
 "anderson" <anderson firestar.com.au> wrote in message
 news:abvpa5$1krs$1 digitaldaemon.com...

 To answer part of my own question (been reading the material), D does
 support C libs, so openGL will probably work. Has anywone tried openGL

 D?

You can download the OpenGL import module here: http://int19h.tamb.ru/files.html. It doesn't contain WGL functions, though, so you'll either have to declare them yourself, or use SDL (it's there as well) to initialize and set the video mode. SDL module comes with an OpenGL spinning cube sample.

May 16 2002
parent "Pavel Minayev" <evilone omen.ru> writes:
"anderson" <anderson firestar.com.au> wrote in message
news:ac00p5$1rbg$1 digitaldaemon.com...

 Thanks alot,

 PS - does it support the extention modules?

Depends on what you mean by that. =) It's a straight translation of Microsoft's gl.h and glu.h headers.
May 16 2002