Jump to content
  • Advertisement
Sign in to follow this  
mrhodes

OpenGL Best way to setup OpenGL

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

I'm not certain that portability is the big advantage for OpenGL that it's often made out to be. In a well-structured application the rendering API specific code is going to be a very very small part of the overall code (in the most extreme case you might even have only one draw function that everything goes through), and will likely be utterly dwarfed by other OS-specific code such as windowing system, input, sound, networking, etc. And don't forget the number of vendor-specific hacks that are *still* often required to get even by-spec OpenGL code working properly. But this is me wandering way off topic now.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by mhagain
I'm not certain that portability is the big advantage for OpenGL that it's often made out to be. In a well-structured application the rendering API specific code is going to be a very very small part of the overall code (in the most extreme case you might even have only one draw function that everything goes through)
This isn't entirely true. Unless you have gone whole-hog and implemented your own shader language and compiler, along with a complete content pipeline, graphics portability is a *very* big deal.

Consider the need to reimplement your entire shader library, re-export/compress all your textures, *and* implement all your drawing/state-management functions in the new API.

Then consider that quite apart from their respective APIs, The iPhone, XBox 360 and Wii have completely different graphics *capabilities* from each other, and you have yourself a considerable amount of work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!