![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Pixel format enumeration for render targets and textures. More...
Go to the source code of this file.
Namespaces | |
| namespace | toy |
| Root namespace containing all engine modules. | |
| namespace | toy::render |
| Rendering types and utilities: clear flags, pixel formats, and related APIs. | |
Enumerations | |
| enum class | toy::render::PixelFormat : uint8_t { toy::render::A8R8G8B8 , toy::render::X8R8G8B8 , toy::render::A4R4G4B4 , toy::render::R5G6B5 , toy::render::A8 , toy::render::S3TC1 , toy::render::S3TC5 , toy::render::PVRTC2 , toy::render::PVRTC4 , toy::render::D16Lockable , toy::render::D32 , toy::render::D15S1 , toy::render::D24S8 , toy::render::D24X8 , toy::render::D24X4S4 , toy::render::D16 , toy::render::Unknown } |
| Pixel or surface format for colour, compression, or depth/stencil. More... | |
Functions | |
| CStringView | toy::render::pixelFormatName (PixelFormat format) noexcept |
| Returns the canonical string name for a pixel format. | |
| PixelFormat | toy::render::pixelFormatFromName (CStringView name) noexcept |
| Parses a format name and returns the corresponding toy::render::PixelFormat. | |
Pixel format enumeration for render targets and textures.
Defines toy::render::PixelFormat: colour, compressed, and depth/stencil formats used by the rendering API. Used when creating surfaces or specifying buffer layout.