LWJGL Forum

Programming => OpenGL => Topic started by: brain56 on January 19, 2012, 09:42:37

Title: GLenum in LWJGL? Where?
Post by: brain56 on January 19, 2012, 09:42:37
OK, this is either a dumb or an invalid question.    ;D

I found a tutorial regarding frame buffers here http://www.swiftless.com/tutorials/opengl/framebuffer.html (http://www.swiftless.com/tutorials/opengl/framebuffer.html).

In the tutorial, there is a mention of a class called GLenum, which is supposedly for error-checking. My concern now is that I can't find the package to which it belongs (See? Dumb.). I've Googled it and everything and saw results of import lines concerning the class but they appear to be in a package that isn't included in the standard LWJGL distribution.  ???

I need help, thank you.  ;D
Title: Re: GLenum in LWJGL? Where?
Post by: spasi on January 19, 2012, 13:33:55
GLenum is just a typedef to unsigned int. In LWJGL it's simply an int. So wherever you see a GLenum/GLsizei/GLuint in C code, replace it with an int in the Java version.