• Advertisement
Sign in to follow this  

Choosing the right library for a 2D engine

This topic is 3325 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 want to write a portable 2D engine that will have alpha blending and sprite scaling. It would also have to handle large background images. I considered using SDL, but I got the impression it wouldn't be fast enough (especially with alpha blending). Would OpenGL be a better alternative?

Share this post


Link to post
Share on other sites
Advertisement
I could Suggest XNA its good for 2d and 3d alike :p and its pritty darn easy to use to plus its DirectX so you know performance is a go.

I know portabalilt is important i belive there is a few things that you can port Xna onto say Xbox 360 and cell phones pritty much anything that has accces to the .net frame work oh and there is Zunu

Edit:
Anyways if you really want to portantable then go with OpenGL its good althout i found its 2d coords system is abit shotty.

:p

You asked thats my answer.

Regards jouei.

Share this post


Link to post
Share on other sites
Why don't you just use SDL with OpenGL? I don't see how that could possibly be too slow for a 2D Engine.

Share this post


Link to post
Share on other sites
If I used SDL without hardware acceleration (as far as I know, it does not provide any), alpha-blended blits would be very slow. I settled on OpenGL, but background scrolling would probably be a mess, since backgrounds are typically too large to be loaded as textures...

Share this post


Link to post
Share on other sites
Then I would suggest SFML. I've never used it myself, however others have stated that it uses Direct X or OpenGL along with being hardware accelerated. You can read the features below.

"Modern effects available and hardware-accelerated : alpha-blending, rotations, shaders, ..."

http://www.sfml-dev.org/features.php

Here is the site:

http://www.sfml-dev.org/

Share this post


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

  • Advertisement