What is GLvoid?

Started by
5 comments, last by evolutional 18 years, 5 months ago
I just got started into OpenGL graphics programming, but before I want to get any further than opening a window, I want to understand what I am looking at first. My first question is -- what does 'GLvoid' represent? In the first Nehe lesson for Windows programming it only shows up 4 times but gives no explantion for what it is.

GLvoid ReSizeGLScene(GLsizei width, GLsizei height)
...
int InitGL(GLvoid)
...
int DrawGLScene(GLvoid)
...
GLvoid KillGLWindow(GLvoid)
I did some google searches on it, but the closest thing I could find was InitGL(void); Can someone explain to me what GLvoid means?
Advertisement
It's just a typedef for void.
GLvoid is a typedef of void. I believe it's to ensure the correctness of type across platforms and compilers.
GLvoid is void...

Since GL is crossplatform, it provides the GLvoid, GLint, GLuint, etc types to ensure that the code will compile correctly to the right types regardless of the platform.

There are a lot of typedefs in a header somewhere setting your platform's types to the GL types.
What header is GLvoid found in?
Nevermind, found it in GL.h

Thanks for the quick responses :)
GL.h

This topic is closed to new replies.

Advertisement