Jump to content
  • Advertisement

Archived

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

Lode

newbie opengl question

This topic is 5982 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

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
Advertisement
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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!