c++11: music.{h,cpp}
[Tsunagari.git] / doc / sdl-usage
blobfc58cf7c7c371a3f2ddd1ca365cf639321013c99
1 As one may notice, Tsunagari powers graphical video games. To achieve smooth
2 frame rates, graphics are accelerated with OpenGL.
4 Rather than manipulate OpenGL directly, the Gosu library (libgosu.org) is
5 employed. Gosu provides a simple interface for simple graphical manipulation. It
6 was originally selected to work with as it was quick to get an application up
7 and running.
9 As Tsunagari has developed, it has started to run into limitations in Gosu. For
10 instance, Gosu is unnecessarily slow when reading a large image that contains a
11 two-dimensional array of subimages, a format used for tilesets. It also does not
12 support a large number of platforms; Android is not supported at all.
14 While trying to work around these limitations, at some point we ended up
15 spending too much time patching and adding to Gosu and less working on our
16 engine. Eventually we realized that the best course of action would likely be to
17 abandon Gosu entirely in favor of a more developed alternative.
19 SDL is a polished library used by numerous projects, especially games. It
20 supports every platform for which support could conceivably exist, and while
21 slightly less "pretty" to work with, it does not suffer the same technological
22 limitations as Gosu. Moving forward, we have decided to use SDL instead of Gosu.
24 Switching game libraries will be a lengthy and involved task, and will not be
25 completed for some time.