Choosing the right library for a 2D engine

Started by
4 comments, last by the_giraffe 15 years, 3 months ago
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?
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.
Why don't you just use SDL with OpenGL? I don't see how that could possibly be too slow for a 2D Engine.
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...
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/
I didn't know about it, thanks!

This topic is closed to new replies.

Advertisement