···27272828/*!
2929 * \defgroup Initialization Initialization
3030+ * SDL_gpu has a fairly simple initialization process. If you need nothing more than the default initialization, call:
3131+ * <pre>GPU_Target* screen = GPU_Init(width, height, GPU_DEFAULT_INIT_FLAGS);</pre>
3232+ * Then when you're done, clean up with:
3333+ * <pre>GPU_Quit();</pre>
3434+ *
3535+ * Other functions in the Initialization module control how initialization is performed.
3636+ *
3037 * \defgroup Logging Debugging, Logging, and Error Handling
3838+ * Use GPU_Log() for normal logging output (e.g. to replace printf). Other logging priorities are handled by GPU_LogWarning() and GPU_LogError().
3939+ *
4040+ * SDL_gpu stores an error stack that you can read and manipulate using GPU_PopErrorCode() and GPU_PushErrorCode(). If you set the debug level using GPU_SetDebugLevel(), you can have any errors automatically logged as they are generated.
4141+ *
3142 * \defgroup RendererSetup Renderer Setup
3243 * \defgroup RendererControls Renderer Controls
3344 * \defgroup ContextControls Context Controls
···635646636647// Debugging, logging, and error handling
637648649649+#define GPU_Log GPU_LogInfo
638650/*! \ingroup Logging
639651 * @{ */
640652···657669658670/*! Prints an error log message. */
659671void GPU_LogError(const char* format, ...);
660660-661661-#define GPU_Log GPU_LogInfo
662672663673/*! Pushes a new error code onto the error stack. If the stack is full, this function does nothing.
664674 * \param function The name of the function that pushed the error