Jump to content
  • Advertisement

Archived

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

sourge

quick question

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

Advertisement
im new to game programming and have a quick question. how do you add OpenGl, linux and other ports. its kind of hard to explain but what im trying to say is that how can you link all these together for certain comps. and other options for different comps.

Share this post


Link to post
Share on other sites
You know, usually when questions go unanswered, it is because of one of several reasons:

1) No one who read it knows the answer, or
2) No one who read it understands what you are asking.
3) The question asked requires an extremely lengthy reply.

It is NOT (as you have obviously assumed) because people are just being jerks.

In this case, I think it's probably a combination of the last 2.

I'll try to briefly address your question. To port a game to another platform usually is not a trivial matter, which is why it doesn't happen with every game. Rather than getting into details about how to make this easier, I'll just say that it is going to be virtually impossible to make a game of any degree of complexity that will compile with any compiler on any platform. You would need several different versions of the code and supporting files.

Adding support for more than one API (eg. DirectX and OpenGL), is not as hard. You just need to write wrapper functions or classes that hide the API-specific details and call the appropriate functions based on which API the user has selected.

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!