Jump to content
  • Advertisement

Archived

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

Lode

newbie opengl question

This topic is 5896 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!