SDL 3.0
SDL_Color Struct Reference

#include <SDL_pixels.h>

Data Fields

Uint8 r
 
Uint8 g
 
Uint8 b
 
Uint8 a
 

Detailed Description

A structure that represents a color as RGBA components.

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).

Since
This struct is available since SDL 3.0.0.

Definition at line 694 of file SDL_pixels.h.

Field Documentation

◆ a

Uint8 SDL_Color::a

Definition at line 699 of file SDL_pixels.h.

◆ b

Uint8 SDL_Color::b

Definition at line 698 of file SDL_pixels.h.

◆ g

Uint8 SDL_Color::g

Definition at line 697 of file SDL_pixels.h.

◆ r

Uint8 SDL_Color::r

Definition at line 696 of file SDL_pixels.h.


The documentation for this struct was generated from the following file: