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?
What is GLvoid?
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 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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement