Archived

This topic is now archived and is closed to further replies.

Lode

newbie opengl question

Recommended Posts

This question is probably very newbie, but why is for example in NeHe''s tutorials GLVoid in the parameters of a function? e.g. int DrawGLScene(GLvoid) Not only the function works if I remove the GLVoid from it, but also I HAVE to remove the GLVoid if I want other parameters, so where is it good for?

Share this post


Link to post
Share on other sites
GLvoid (like void) simply means that function does not take any parameter - if you use void (or GLvoid, whatever), function mustn't take any parameter. You don't have to write GLvoid if you don't want to.

Instead of "GL*type*" you can easily use just "*type*" like this:

GLfloat - float

[edited by - Wingman on July 28, 2002 5:56:12 AM]

Share this post


Link to post
Share on other sites
who wants cross-plattform compability??
we all know that it''s Microsoft Windows which is the only plattform we need for games..

goodbye linux and MacOS.. burn in hell!... bye bye..
sorry.. couldn''t resist.....

Share this post


Link to post
Share on other sites