Sign in to follow this  
the_giraffe

Choosing the right library for a 2D engine

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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this