ENIGMA Forums

Contributing to ENIGMA => Proposals => Topic started by: RetroX on July 31, 2011, 01:07:35 PM

Title: Remove GLU dependency
Post by: RetroX on July 31, 2011, 01:07:35 PM
Currently, the only two functions from it that are used are gluLookAt (http://www.opengl.org/sdk/docs/man/xhtml/gluLookAt.xml) and gluPerspective (http://www.opengl.org/sdk/docs/man/xhtml/gluPerspective.xml).  I also see a line with gluBuild2DMipmaps (http://www.opengl.org/sdk/docs/man/xhtml/gluBuild2DMipmaps.xml) that is commented out, but it's really not necessary.


Both of these functions can be replicated with basic GL calls.  Currently, they are only used in GSd3d.h and GSd3d.cpp.
Title: Re: Remove GLU dependency
Post by: luiscubal on July 31, 2011, 01:22:06 PM
Wait, aren't these OpenGL 3D functions? I could understand the need for Ortho, but this...?
Unless it's for the D3D functions?
Title: Re: Remove GLU dependency
Post by: Josh @ Dreamland on July 31, 2011, 03:12:03 PM
I'd sooner just comment all the 3D functions for now until we finish the extensions system to accompany graphics. Fixing the two instances of GLU functions for now would be short-sighted at best.