Function SDL_PIXELFLAG

pub const fn SDL_PIXELFLAG(format: SDL_PixelFormat) -> i32
Available on crate feature dep_sdl3 only.
Expand description

A macro to retrieve the flags of an SDL_PixelFormat.

This macro is generally not needed directly by an app, which should use specific tests, like SDL_ISPIXELFORMAT_FOURCC, instead.

§Parameters

§Return value

Returns the flags of format.

§Thread safety

It is safe to call this macro from any thread.

§Availability

This macro is available since SDL 3.2.0.