Sign in to follow this  

best 2d lib ceGUI compatible

This topic is 3459 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

Hi we would like to move to an alternate 2d libs that supports ceGUI. so far we can use: 1- irrlicht (+ceGui) 2- ogre (+ceGui) 3- sdl (+ceGui) the game is 2d only, and uses : a. zoom in/out of the main scene (this is a image in background that can be zoomed in/out) b. on this main scene we have overlays elements (lets say at zorder n) c. we have static overlays (z order is highest and not zoomable) d. and whe can play animated gif. e. blitting functions at some point in future we will have to add collision such as player 1 move from a to b, if there is some walls between he will not pass over. my question is really which of irr, ogre or sdl shall we use ? the main points here are : - the features we are looking for (describe above, from a- to e-). we have limited time and want to minimize the effort moving to the new engine. - limited ressources used (not as important as feature) - performance for sure thanks a lot

Share this post


Link to post
Share on other sites
SDL is not a good choice if you need zooming, as it does not support stretching of surfaces. There is an add-on library called SDL_gfx that supports this, but it isn't great.

Either Irrlicht or Ogre could handle all of your requirements, but are really not designed for 2D rendering specifically. My question is why are you choosing the gui library before a rendering library?

Share this post


Link to post
Share on other sites
That's why I suggested SDL and OpenGL rather than SDL by itself. Don't use SDL.gfx's Rotozoom for realtime scaling, either precompute or just use SDL to set up an OpenGL context and let OpenGL do the zooming. If you want a better reference on how to do that in OpenGL, look at hxRender's Source Code (scroll down for a download link).

Share this post


Link to post
Share on other sites
hello thanks for reply.

to answer to simian "why choose gui before rendering" is because the game has little 2d features (just zoom, animated sprites and overlay), whereas GUI is very important.

Really implementing the 2d features shall be easy, whereas gui work gonna be much harder. At the moment we use MFC, but this is not game oriented (no transparence, control skins etc).


For the ogre/irr ok they are 3d oriented, but both implements 2d lib (ogre/irr magics) that seems to have the wrapper for the feature we need.

so really i dont know if

- we should go with sdl/opengl, knowing that we will need to devellop the requested features (not in sdl neither in any lib -or maybe hxRender ? ), (for ex adding overlay objects at different z, is there a sdl lib / wrapper to allow this easily ?

or
- try irr+irr magic 2d or ogre+ogre magic 2d? whats your thoughts ?

Share this post


Link to post
Share on other sites

This topic is 3459 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.

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