3 ms·
Lately I started using SFML instead of SDL for C++ Game Development. However, I'll still use SDL on future projects I hope. It's a brilliant library, so compact
by munchor 13y ago
Lately I started using SFML instead of SDL for C++ Game Development. However, I'll still use SDL on future projects I hope. It's a brilliant library, so compact and portable that the games you write will be able to be compiled to a lot of platforms, even high school graphing calculators[1].
The SDL development still impresses me and 2.0.0 is a major milestone and multiple windows, new OpenGL, touch support, Android and iOS support are here to keep SDL alive with all the new frameworks and "engines". I hope it does well!
[1]: http://www.omnimaga.org/index.php?topic=12378.0 http://www.omnimaga.org/index.php?topic=12378.0
- angersock 13y agoThe network and scenegraph stuff that SFML comes with is quite nice--the choice of C++, though, makes other language bindings a bit more clunky.
- davexunit 13y agoYeah, imo SFML's biggest weakness is that it is written in C++ instead of C.
- winter_blue 13y agoI really like SFML, I've been using for a small game project of mine as well. The API is just nice and beautiful. I was wondering how SDL 2.0 stacks up against SFML? Does anyone know much about it? I'm only doing 2D game development, so SDL's "simple 2D rendering API that can use Direct3D, OpenGL, OpenGL ES, or software rendering behind the scenes" is perfect for my needs. However it needs to support two basic things: * Rotation (additional matrix transformation like scaling & shearing would be nice as as well) * Transparency (being able to apply a color filter not necessarily limited to the alpha channel, like an RGBA filter would be nicer) Does it support the above? (I'm guessing it does -- just want to be sure.) Also, I know Android/iOS support for SFML is in the pipeline, but the fact that it's not ready yet is another reason it might be good to switch to SDL 2.
- lifthrasiir 13y agoYes. SDL_RenderCopyEx and SDL_SetTextureAlphaMod is what you want.
- winter_blue 13y agoAh, thanks. SDL_RenderCopyEx seems like a very versatile function[1]. The 2D Accelerated Rendering doc[2] seems to cover all my basic 2D rendering needs. The wiki[3] is really nice, and I like the page listing APIs by category[4]. I think I'm going to switch to SDL, primarily for the Android/iOS support! [1] http://wiki.libsdl.org/moin.fcg/SDL_RenderCopyEx http://wiki.libsdl.org/moin.fcg/SDL_RenderCopyEx [2] http://wiki.libsdl.org/moin.fcg/CategoryRender http://wiki.libsdl.org/moin.fcg/CategoryRender [3] http://wiki.libsdl.org/moin.fcg/ http://wiki.libsdl.org/moin.fcg/ [4] http://wiki.libsdl.org/moin.fcg/APIByCategory http://wiki.libsdl.org/moin.fcg/APIByCategory
- damian2000 13y agoThere's a decent post on SO about it... http://stackoverflow.com/questions/2842198/which-is-better-sdl-or-sfml http://stackoverflow.com/questions/2842198/which-is-better-s...
- billforsternz 13y agoAnd naturally, it has been closed.