mirror of
https://github.com/nothings/stb
synced 2025-02-07 13:54:09 +03:00
don't require manual synchronization of STBR_MAX_COLORSPACES/MAX_TYPES
This commit is contained in:
parent
392585130c
commit
42556fec82
@ -89,23 +89,21 @@ typedef enum
|
|||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
STBR_COLORSPACE_LINEAR = 1,
|
STBR_COLORSPACE_LINEAR,
|
||||||
STBR_COLORSPACE_SRGB = 2,
|
STBR_COLORSPACE_SRGB,
|
||||||
// If you add here, update STBR_MAX_COLORSPACES
|
|
||||||
} stbr_colorspace;
|
|
||||||
|
|
||||||
#define STBR_MAX_COLORSPACES 2
|
STBR_MAX_COLORSPACES,
|
||||||
|
} stbr_colorspace;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
STBR_TYPE_UINT8 = 1,
|
STBR_TYPE_UINT8 ,
|
||||||
STBR_TYPE_UINT16 = 2,
|
STBR_TYPE_UINT16,
|
||||||
STBR_TYPE_UINT32 = 3,
|
STBR_TYPE_UINT32,
|
||||||
STBR_TYPE_FLOAT = 4,
|
STBR_TYPE_FLOAT ,
|
||||||
// If you add here, update STBR_MAX_TYPES and stbr__type_size
|
|
||||||
} stbr_type;
|
|
||||||
|
|
||||||
#define STBR_MAX_TYPES 4
|
STBR_MAX_TYPES
|
||||||
|
} stbr_type;
|
||||||
|
|
||||||
typedef unsigned char stbr_uint8;
|
typedef unsigned char stbr_uint8;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user