SDL_Color - A structure that represents a color as RGBA components.
Contents
Availability
This struct is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_Color(3type)
Description
The bits of this structure can be directly reinterpreted as an integer-packed color which uses the
SDL_PIXELFORMAT_RGBA32
format ( SDL_PIXELFORMAT_ABGR8888
on little-endian systems and SDL_PIXELFORMAT_RGBA8888
on big-endian systems).
Header File
Defined in SDL3/SDL_pixels.h
Name
SDL_Color - A structure that represents a color as RGBA components.
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_Color{Uint8r;Uint8g;Uint8b;Uint8a;}SDL_Color;