Skip to main content

types Namespace

Definition

namespace helios::engine::rendering::common::types { ... }

Classes Index

structRenderPassContext

Groups the target handles used for a render pass. More...

structVertex

Represents a standard vertex with position, normal, and texture coordinates. More...

Enumerations Index

enum classClearFlags { ... }

Defines bitmask flags for clearing render buffers before drawing. More...

Enumerations

ClearFlags

enum class helios::engine::rendering::common::types::ClearFlags
strong

Defines bitmask flags for clearing render buffers before drawing.

Enumeration values
NoneNo buffers are cleared (= 0)
ColorThe color buffer is cleared (= 1 << 0)
DepthThe depth buffer is cleared (= 1 << 1)
StencilThe 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);
See Also

https://registry.khronos.org/OpenGL-Refpages/gl4/html/glClear.xhtml

Definition at line 27 of file ClearFlags.ixx.

27 enum class ClearFlags {
31 None = 0,
32
36 Color = 1 << 0,
37
41 Depth = 1 << 1,
42
46 Stencil = 1 << 2,
47 };

The documentation for this namespace was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.