Archived

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

Question about OpenGL

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

All these GLvoid, GLfloat and so on...are they really necessary? What''s the difference between GLfloat and float for example...i''ve tried both and can''t find any differences... Also, a function like this void foo(GLvoid)...is there any difference from void foo() ?

Share this post


Link to post
Share on other sites
Are the GLyada types necessary? No, but they are a good idea if you want portability. The GLyada types are guaranteed to be the same on any platform, whereas the basic types aren''t (e.g. int might be 16-bit on one platform and 32-bit on another).

Is void foo(GLvoid) different from void foo()? The first one is "more correct." But, otherwise, no.

Share this post


Link to post
Share on other sites
Ahh, thanks! I thought it was something like that...i better use regular float until i understand how to set up a GLWindow in Windows...don''t need any "GLyada" that confuses me more than the overall code already does, lol

Share this post


Link to post
Share on other sites