www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - GLU in DerelictOrg

reply "Spacen Jasset" <spacen mailrazer.com> writes:
Hello,

Can anyone tell me if the GLU functions, gluSpehere etc are 
availble in DerelictOrg or have they been removed. I can replace 
these with my own versions, but was hoping to do a quick port to 
DerelictOrg
Jul 21 2015
next sibling parent Rikki Cattermole <alphaglosined gmail.com> writes:
On 21/07/2015 11:08 p.m., Spacen Jasset wrote:
 Hello,

 Can anyone tell me if the GLU functions, gluSpehere etc are availble in
 DerelictOrg or have they been removed. I can replace these with my own
 versions, but was hoping to do a quick port to DerelictOrg
https://github.com/DerelictOrg?utf8=%E2%9C%93&query=+only%3Asources+glu
Jul 21 2015
prev sibling parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 21 July 2015 at 11:08:13 UTC, Spacen Jasset wrote:
 Hello,

 Can anyone tell me if the GLU functions, gluSpehere etc are 
 availble in DerelictOrg or have they been removed. I can 
 replace these with my own versions, but was hoping to do a 
 quick port to DerelictOrg
They are not available. See http://dblog.aldacron.net/2014/10/derelict-3-removed-from-dub-repository/ I'm not sure why they aren't part of the DerelictOrg. I'm sure it wouldn't be hard to take https://github.com/aldacron/Derelict3/tree/master/import/derelict/freeglut and make a dub package out of it yourself, maybe even add it to code.dlang.org as derelict_extras-freeglut
Jul 21 2015
parent reply "Spacen Jasset" <spacen mailrazer.com> writes:
On Tuesday, 21 July 2015 at 11:23:23 UTC, John Colvin wrote:
 On Tuesday, 21 July 2015 at 11:08:13 UTC, Spacen Jasset wrote:
 Hello,

 Can anyone tell me if the GLU functions, gluSpehere etc are 
 availble in DerelictOrg or have they been removed. I can 
 replace these with my own versions, but was hoping to do a 
 quick port to DerelictOrg
They are not available. See http://dblog.aldacron.net/2014/10/derelict-3-removed-from-dub-repository/ I'm not sure why they aren't part of the DerelictOrg. I'm sure it wouldn't be hard to take https://github.com/aldacron/Derelict3/tree/master/import/derelict/freeglut and make a dub package out of it yourself, maybe even add it to code.dlang.org as derelict_extras-freeglut
Thanks John, it looks really simple. I'll see if I can get round to making a proper package from it.
Jul 21 2015
parent reply "Spacen Jasset" <spacen mailrazer.com> writes:
It seems that Derelict3 contains GLUT whereas derelict2 containss 
GLU.

It appears I need GLU but I am somewhat confused as to what the 
diffrence is.
Jul 21 2015
parent reply "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 21 July 2015 at 12:26:30 UTC, Spacen Jasset wrote:
 It seems that Derelict3 contains GLUT whereas derelict2 
 containss GLU.

 It appears I need GLU but I am somewhat confused as to what the 
 diffrence is.
Whoops, yes you are right, my mistake. Isn't glu considered legacy these days? I think it's entirely OpenGL 2.x. For the maths stuff see http://code.dlang.org/packages/gl3n
Jul 21 2015
parent reply "Alex Parrill" <initrd.gz gmail.com> writes:
On Tuesday, 21 July 2015 at 14:51:47 UTC, John Colvin wrote:
 Isn't glu considered legacy these days? I think it's entirely 
 OpenGL 2.x. For the maths stuff see 
 http://code.dlang.org/packages/gl3n
Yep. It still uses immediate mode, GL matrix functions, and all sorts of other stuff removed in OpenGL 3.1+ core.
Jul 21 2015
parent reply "Spacen Jasset" <spacen mailrazer.com> writes:
On Tuesday, 21 July 2015 at 15:17:13 UTC, Alex Parrill wrote:
 On Tuesday, 21 July 2015 at 14:51:47 UTC, John Colvin wrote:
 Isn't glu considered legacy these days? I think it's entirely 
 OpenGL 2.x. For the maths stuff see 
 http://code.dlang.org/packages/gl3n
Yep. It still uses immediate mode, GL matrix functions, and all sorts of other stuff removed in OpenGL 3.1+ core.
Yes, thanks John. I will be using the legacy mode though :-) Not got around to the wizz bang stuff yet.
Jul 21 2015
parent reply "Mike Parker" <aldacron gmail.com> writes:
On Tuesday, 21 July 2015 at 16:34:35 UTC, Spacen Jasset wrote:
 On Tuesday, 21 July 2015 at 15:17:13 UTC, Alex Parrill wrote:
 On Tuesday, 21 July 2015 at 14:51:47 UTC, John Colvin wrote:
 Isn't glu considered legacy these days? I think it's entirely 
 OpenGL 2.x. For the maths stuff see 
 http://code.dlang.org/packages/gl3n
Yep. It still uses immediate mode, GL matrix functions, and all sorts of other stuff removed in OpenGL 3.1+ core.
Yes, thanks John. I will be using the legacy mode though :-) Not got around to the wizz bang stuff yet.
I intentionally did not port the Derelict3 GLU binding to DerelictOrg because it uses parts of the deprecated OGL API and is considered legacy these days. Initially, I didn't include support for the deprecated OGL API either, but there were enough requests for it that I finally added it. I have no intention of adding GLU, though. It's easily replaceable.
Jul 21 2015
parent reply "Spacen Jasset" <spacen mailrazer.com> writes:
On Wednesday, 22 July 2015 at 00:49:29 UTC, Mike Parker wrote:
 On Tuesday, 21 July 2015 at 16:34:35 UTC, Spacen Jasset wrote:
 On Tuesday, 21 July 2015 at 15:17:13 UTC, Alex Parrill wrote:
 On Tuesday, 21 July 2015 at 14:51:47 UTC, John Colvin wrote:
 Isn't glu considered legacy these days? I think it's 
 entirely OpenGL 2.x. For the maths stuff see 
 http://code.dlang.org/packages/gl3n
Yep. It still uses immediate mode, GL matrix functions, and all sorts of other stuff removed in OpenGL 3.1+ core.
Yes, thanks John. I will be using the legacy mode though :-) Not got around to the wizz bang stuff yet.
I intentionally did not port the Derelict3 GLU binding to DerelictOrg because it uses parts of the deprecated OGL API and is considered legacy these days. Initially, I didn't include support for the deprecated OGL API either, but there were enough requests for it that I finally added it. I have no intention of adding GLU, though. It's easily replaceable.
Thanks Mike, that's fair enough. I shall just implement the functions I need I think until such time as I end up using the newer OpenGL 3 stuff.
Jul 24 2015
parent "Alex Parrill" <initrd.gz gmail.com> writes:
On Friday, 24 July 2015 at 12:56:29 UTC, Spacen Jasset wrote:
 Thanks Mike, that's fair enough. I shall just implement the 
 functions I need I think until such time as I end up using the 
 newer OpenGL 3 stuff.
If you want, you can steal from Mesa's GLU implementation here: http://cgit.freedesktop.org/mesa/glu/
Jul 24 2015