6 ms·
It's true that OpenGL doesn't have built-in support for things like concave shapes, but you can always do tessellation and feed GL triangles. (Some tessellation
by witten 17y ago
It's true that OpenGL doesn't have built-in support for things like concave shapes, but you can always do tessellation and feed GL triangles. (Some tessellation options were mentioned in the article.)
I've found that for my particular uses, the hardware acceleration you get with GL makes it worth it for 2D, even if it's perhaps not otherwise as well-suited for that as SDL.
- daeken 17y agoYou know, this makes me think. Are there any good 2D libraries for OpenGL? I've seen a few, but they all seemed very special-purpose or were either poorly designed or just didn't work. It'd be interesting to have a nice library like SDL, but sitting on top of real hardware acceleration.
- Jach 17y agoJust wait for SDL 1.3 to mature. From the wikipedia article: "SDL 1.3 is a major update to the SDL 1.2 codebase. It replaces several parts of the 1.2 API with more general support for multiple input and output options. Some feature additions include multiple window support, multiple input device support (many mice, many keyboards, etc.), hardware-accelerated 2D graphics, and better Unicode support."
- ronaldj 17y agoCocos2d is a 2d library that sits on top of OpenGL ES for the iPhone, it's rather nice.
- greyfade 17y agoCairo comes to mind. It has an OpenGL backend that works very well. Qt also has a GL drawing engine, which turned out to be a good move on Trolltech's part.