Sign in to follow this  
samuraiboy

What is GLvoid?

Recommended Posts

samuraiboy    122
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?

Share this post


Link to post
Share on other sites
smitty1276    560
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this