mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-16 20:14:30 +08:00
Improved API consistency for flag data types
Flag data types are always unsigned and have the valid values following the typedef.
This commit is contained in:
@@ -71,12 +71,11 @@ extern "C" {
|
||||
/**
|
||||
* Flags used when creating a rendering context.
|
||||
*
|
||||
* \since This enum is available since SDL 3.0.0.
|
||||
* \since This datatype is available since SDL 3.0.0.
|
||||
*/
|
||||
typedef enum SDL_RendererFlags
|
||||
{
|
||||
SDL_RENDERER_PRESENTVSYNC = 0x00000004 /**< Present is synchronized with the refresh rate */
|
||||
} SDL_RendererFlags;
|
||||
typedef Uint32 SDL_RendererFlags;
|
||||
|
||||
#define SDL_RENDERER_PRESENTVSYNC 0x00000004u /**< Present is synchronized with the refresh rate */
|
||||
|
||||
/**
|
||||
* Information on the capabilities of a render driver or context.
|
||||
|
||||
Reference in New Issue
Block a user