types Namespace
Definition
namespace helios::engine::rendering::common::types { ... }
Classes Index
| struct | RenderPassContext |
|
Groups the target handles used for a render pass. More... | |
| struct | Vertex |
|
Represents a standard vertex with position, normal, and texture coordinates. More... | |
Enumerations Index
| enum class | ClearFlags { ... } |
|
Defines bitmask flags for clearing render buffers before drawing. More... | |
Enumerations
ClearFlags
| strong |
Defines bitmask flags for clearing render buffers before drawing.
- Enumeration values
-
None No buffers are cleared (= 0) Color The color buffer is cleared (= 1 << 0) Depth The depth buffer is cleared (= 1 << 1) Stencil The stencil buffer is cleared (= 1 << 2)
These flags can be combined using bitwise OR operations to specify which buffers (color, depth, stencil) should be cleared before rendering.
Example usage:
// Clear both color and depth buffers
int clearFlags = std::to_underlying(ClearFlags::Color) | std::to_underlying(ClearFlags::Depth);
viewport.setClearFlags(clearFlags);
Definition at line 27 of file ClearFlags.ixx.
The documentation for this namespace was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.