[noob question] from directx to opengl


Tesqua

Still Fresh
Assuming you have the code of a game, is it possible to convert it from using directx to opengl?

The reason of this question is that i keep following saintsaga project (http://www.saintsaga.com/) for years, and I think that this fanmade game would be perfect for a "handcrafted" console.



PS: sorry if it's the wrong section
 
It's not that hard to do, if you've written proper wrappers for everything. However converting from DirectX would require a bit more than just OpenGL, you need stuff for input and audio as well. Today that's SDL, but SDL has many drawbacks unfortunately... :( I'd much rather see one could use OpenGL ES and OpenAL in addition to an input library. Oh well...
 
it all depends on how organized the code is. rendering is usually a quite small portion of the overall code, and if sectioned off properly most games (even pretty commercial ones) could probably be ported in a couple weeks.
 
Back
Top