ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
pixel_format.cpp File Reference

Definitions for pixelFormatName() and pixelFormatFromName() declared in render/pixel_format.hpp. More...

#include "render.hpp"
Include dependency graph for pixel_format.cpp:

Namespaces

namespace  toy
 Root namespace containing all engine modules.
namespace  toy::render
 Rendering types and utilities: clear flags, pixel formats, and related APIs.

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.

Variables

static constexpr array< CStringView, std::to_underlying(PixelFormat::Unknown)> toy::render::_formatNames

Detailed Description

Definitions for pixelFormatName() and pixelFormatFromName() declared in render/pixel_format.hpp.