Jump to content
  • Advertisement
Sign in to follow this  
coden4fun

SDL + DirectX SDL + OpenGL

This topic is 3938 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 would like to know What the advantages of using SDL + DirectX are compared to using SDL + OpenGL I'm pretty sure I couldn't use Dx + OpenGL with SDL, for the rendering, etc... Or if I could I definitely don't see the point in doing so. I'm making a game engine (yes, I know it must be useful ease the process of actually making a game, and can make games many games more easily than just using a game library, API, etc..) I'm as of right now am only wanting to make a game engine to see if I can learn the process of making a game engine, and the specific game engine that I would like to make is one that could make any top down, or 2d scroll adventure game. which includes; -Spinning -Zooming -Animation -AI -Physics -Extremely good rendering and everything in real-time. -Input keyboard/mouse, xbox360 Controller(which means I must use XInput) & Wiimote if possilbe using the WiiYourself library -Networking -GUI System This is, but not excluding anything else I may come up with that could be beneficial and more complete for any type of game that I have in mind in the 2d world. I love Nintendo games I like some of the great innovative games Nintendo makes, and would like to try and make a game engine that could make games not exactly like the games you'd see on the NintendoDS, but come very close to it. If that makes sense.

Share this post


Link to post
Share on other sites
Advertisement
DirectX (in a graphics context) and OpenGL are just 2 ways of accessing the same functionality - the only real advantages of one over the other is in terms of your personal familiarity and the availability of documentation. So there are no universal benefits to one over the other really.

I wouldn't recommend writing a game engine until you've written a game.

Share this post


Link to post
Share on other sites
You can't use OpenGL and Direct3D at the same time, but the combination of SDL + OpenGL or SDL + Direct3D work. If you would decide to use SDL + OpenGL you still can use other DirectX components e.g. sound (I'm not sure about the input stuff as SDL has its own input management). The advantage of OpenGL over DirectX is that OpenGL is cross platform and IMO it is easier to learn.

Share this post


Link to post
Share on other sites
as they said ^ there is no real difference with what you can do with directx(graphics) and opengl. you can use sdl to initiate either api.

the thing about game engines is you want to make then api independent as much as possible. if you do this you can wrap either api in your engine and run the game code with either.

what you want to do is decide on one of the two 3d api's and learn as much as you can about it. then incorporate it into you engine design. if you design is modular enough you can always incorporate the other api later down the road.

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!