Jump to content
  • Advertisement

Archived

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

Mkk

OpenGL Question about OpenGL´s own data types

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

What´s the benefit of using OGL´s own data types rather than (for example) C´s?

Share this post


Link to post
Share on other sites
Advertisement
There is no difference at all:

GLfloat is the exact same as float, they are just type casted. The only benefit in using them would be if you port your OpenGL program to a system that, say, doesn''t use 32 bit integers (or a similar issue) and the typedef uses the appropriate datatype. In general it really doesn''t matter and I don''t personally use them, I use the standard C datatypes.

~Graham






----
while (your_engine >= my_engine)
{
my_engine++;
}

Share this post


Link to post
Share on other sites
Okay, thanks for the info.

[edited by - Mkk on November 9, 2003 12:23:24 AM]

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!