![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Rendering types and utilities: clear flags, pixel formats, and related APIs. More...
Enumerations | |
| enum class | ClearFlags : uint8_t { None = 0x00 , Target = 0x01 , Depth = 0x02 , Stencil = 0x04 , All = Target | Depth | Stencil } |
| Bit flags specifying which framebuffer attachments to clear. More... | |
| enum class | PixelFormat : uint8_t { A8R8G8B8 , X8R8G8B8 , A4R4G4B4 , R5G6B5 , A8 , S3TC1 , S3TC5 , PVRTC2 , PVRTC4 , D16Lockable , D32 , D15S1 , D24S8 , D24X8 , D24X4S4 , D16 , Unknown } |
| Pixel or surface format for colour, compression, or depth/stencil. More... | |
Functions | |
| CStringView | pixelFormatName (PixelFormat format) noexcept |
| Returns the canonical string name for a pixel format. | |
| PixelFormat | pixelFormatFromName (CStringView name) noexcept |
| Parses a format name and returns the corresponding toy::render::PixelFormat. | |
Variables | |
| static constexpr array< CStringView, std::to_underlying(PixelFormat::Unknown)> | _formatNames |
Rendering types and utilities: clear flags, pixel formats, and related APIs.
|
strong |
Bit flags specifying which framebuffer attachments to clear.
Values can be combined with operator|, operator&, and operator^ for bitwise operations.
|
strong |
Pixel or surface format for colour, compression, or depth/stencil.
Covers common formats: 32-bit ARGB/XRGB, 16-bit, alpha-only, block-compressed (S3TC, PVRTC), and depth/stencil. Exact interpretation is backend-dependent.
|
nodiscardnoexcept |
Parses a format name and returns the corresponding toy::render::PixelFormat.
| name | The format name (case-sensitive). Empty or unknown names yield toy::render::PixelFormat::Unknown. |
|
nodiscardnoexcept |
Returns the canonical string name for a pixel format.
| format | The format to name. |
|
staticconstexpr |