logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_PIXELLAYOUT - A macro to retrieve the layout of an SDL_PixelFormat .

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_PIXELLAYOUT(3)

Description

       This is usually a value from the SDL_PackedLayout

       enumeration, or zero if a layout doesn't make sense for the format type.

Header File

       Defined in SDL3/SDL_pixels.h

Name

       SDL_PIXELLAYOUT - A macro to retrieve the layout of an SDL_PixelFormat .

Return Value

       Returns the layout of format .

Synopsis

#include"SDL3/SDL.h"#defineSDL_PIXELLAYOUT(format)(((format)>>16)&0x0F)

Thread Safety

       It is safe to call this macro from any thread.

See Also