···8181INCLUDING / LINKING
8282===================
83838484-Add the include for SDL_gpu.h to your sources. Link to SDL_gpu (libSDL_gpu.a) or SDL2_gpu (if you use SDL2).
8484+Add 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).
858586868787FULL DOCUMENTATION
+21-1
include/SDL_gpu.h
···726726/*! Sets the renderer ID order to use for initialization. If 'order' is NULL, it will restore the default order. */
727727DECLSPEC void SDLCALL GPU_SetRendererOrder(int order_size, GPU_RendererID* order);
728728729729-/*! Initializes SDL and SDL_gpu. Creates a window and goes through the renderer order to create a renderer context.
729729+/*! Initializes SDL's video subsystem (if necessary) and all of SDL_gpu's internal structures.
730730+ * Chooses a renderer and creates a window with the given dimensions and window creation flags.
731731+ * A pointer to the resulting window's render target is returned.
732732+ *
733733+ * \param w Desired window width in pixels
734734+ * \param h Desired window height in pixels
735735+ * \param SDL_flags The bit flags to pass to SDL when creating the window. Use GPU_DEFAULT_INIT_FLAGS if you don't care.
736736+ * \return On success, returns the new context target (i.e. render target backed by a window). On failure, returns NULL.
737737+ *
738738+ * Initializes these systems:
739739+ * The 'error queue': Stores error codes and description strings.
740740+ * The 'renderer registry': An array of information about the supported renderers on the current platform,
741741+ * such as the renderer name and id and its life cycle functions.
742742+ * The SDL library and its video subsystem: Calls SDL_Init() if SDL has not already been initialized.
743743+ * Use SDL_InitSubsystem() to initialize more parts of SDL.
744744+ * The current renderer: Walks through each renderer in the renderer registry and tries to initialize them until one succeeds.
745745+ *
746746+ * \see GPU_RendererID
747747+ * \see GPU_InitRenderer()
748748+ * \see GPU_InitRendererByID()
730749 * \see GPU_SetRendererOrder()
750750+ * \see GPU_PushErrorCode()
731751 */
732752DECLSPEC GPU_Target* SDLCALL GPU_Init(Uint16 w, Uint16 h, GPU_WindowFlagEnum SDL_flags);
733753
+36-5
src/mainpage.dox
···99<p>A good way to use this documentation is to start on the <a href="modules.html">Modules page</a>.</p>
101011111212+\section features FEATURES
1313+1414+* High performance (it automatically collects and submits batches instead of separate draw commands for each sprite and redundant state changes)
1515+* Shader API
1616+* Arbitrary geometry rendering (triangles)
1717+* Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
1818+* Full blend state control
1919+* Built-in primitive shapes (points, lines, tris, rects, ellipses, polygons, even arcs)
2020+* Uses a style familiar to SDL 1.2 users
2121+* Compatible with either SDL 1.2 or 2.0
2222+* Loads BMP, TGA, and PNG files via stb-image
2323+* Rotates and scales about the center of images, making reasoning about the resulting corner coordinates more obvious (adjustable via anchor settings)
2424+2525+\section help_out HELP OUT
2626+2727+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:
2828+2929+<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3WJCLJ3P4BV9A">Donate to SDL_gpu development
3030+</a>
3131+3232+Anything you can do to help is really appreciated!
3333+1234\section latest_source LATEST SOURCE
13351436<p>SDL_gpu is hosted on Github (https://github.com/grimfang4/sdl-gpu). You can check out the latest version of the source code with Git:<br>
···19412042<p>SDL 1.2 or SDL 2.0 (www.libsdl.org)<br>
2143A rendering backend<br>
2222- Currently implemented: OpenGL 1.1, OpenGL 2.0, OpenGL 3.0, OpenGL ES 1.1, OpenGL ES 2.0</p>
4444+ 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</p>
234524462547\section building BUILDING
26484949+You can see automated build status at the project page on Travis CI:
5050+5151+<a href="https://travis-ci.org/grimfang4/sdl-gpu.svg?branch=master">[Build Status]</a>
5252+5353+Automated builds will soon be available on the Github.io page.
5454+2755<p>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.</p>
28562957<p>For Linux/UNIX systems, run CMake in the base directory:<br>
···39674068\section including_linking INCLUDING / LINKING
41694242-<p>Add the include for SDL_gpu.h to your sources. Link to SDL_gpu (libSDL_gpu.a) or SDL2_gpu (if you use SDL2).</p>
7070+<p>Add 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).</p>
437144724545-\section documentation DOCUMENTATION
7373+\section documentation FULL DOCUMENTATION
46744747-<p>Documentation is automatically generated with Doxygen (http://sourceforge.net/projects/doxygen).<br>
4848-Pre-generated documentation is hosted by DinoMage Games:
7575+<p>Documentation is automatically generated with Doxygen (http://sourceforge.net/projects/doxygen).<br><br>
7676+7777+Pre-generated documentation can be found on the Github.io page:<br>
7878+https://grimfang4.github.io/sdl-gpu/<br>
7979+And at DinoMage Games:<br>
4980http://dinomage.com/reference/SDL_gpu/</p>
50815182*/