Jump to content
  • Advertisement
Sign in to follow this  
samuraiboy

What is GLvoid?

This topic is 4624 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!