/*! \mainpage
SDL_gpu is a C code library for making hardware-accelerated 2D graphics easy.
SDL_gpu is licensed under the terms of the MIT License.
See LICENSE.txt for details of the usage license granted to you for this code.
A good way to use this documentation is to start on the Modules page.
\section features FEATURES * High performance (it automatically collects and submits batches instead of separate draw commands for each sprite and redundant state changes) * Shader API * Arbitrary geometry rendering (triangles) * Can be integrated with explicit OpenGL calls (mixed 2D and 3D) * Full blend state control * Built-in primitive shapes (points, lines, tris, rects, ellipses, polygons, even arcs) * Uses a style familiar to SDL 1.2 users * Compatible with either SDL 1.2 or 2.0 * Loads BMP, TGA, and PNG files via stb-image * Rotates and scales about the center of images, making reasoning about the resulting corner coordinates more obvious (adjustable via anchor settings) \section help_out HELP OUT SDL_gpu is free and open source! You can help either by contributing a pull request, filling out a bug report, sending an email, or give me a chance to put more time into it by donating: Donate to SDL_gpu development Anything you can do to help is really appreciated! \section latest_source LATEST SOURCESDL_gpu is hosted on Github (https://github.com/grimfang4/sdl-gpu). You can check out the latest version of the source code with Git:
git clone https://github.com/grimfang4/sdl-gpu.git sdl-gpu\section dependencies DEPENDENCIES
SDL 1.2 or SDL 2.0 (www.libsdl.org)
A rendering backend
Currently implemented: OpenGL 1.1, OpenGL 2.0, OpenGL 3.0, OpenGL 4.0, OpenGL ES 1.1, OpenGL ES 2.0, OpenGL ES 3.0
SDL_gpu uses CMake (www.cmake.org) to coordinate the library build process. CMake is available as a GUI program or on the command line.
For Linux/UNIX systems, run CMake in the base directory:
cmake -G "Unix Makefiles" make sudo make install
For Linux/UNIX systems, changing the default installation directory can be done like so:
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr
For Windows systems, you can use cmake-gui and select appropriate options in there (warning: cmake-gui is messy!).
\section including_linking INCLUDING / LINKINGAdd the include for SDL_gpu.h to your sources. Link to SDL2_gpu (libSDL2_gpu.a) or SDL_gpu (if you use the old SDL 1.2).
\section documentation FULL DOCUMENTATIONDocumentation is automatically generated with Doxygen (http://sourceforge.net/projects/doxygen).
Pre-generated documentation can be found on the Github.io page:
https://grimfang4.github.io/sdl-gpu/
And at DinoMage Games:
http://dinomage.com/reference/SDL_gpu/