![]() |
CUGL 3.0
Cornell University Game Library
|
Functions | |
void | clearBuffer (GLenum buffer) |
void | applyEffect (StencilEffect effect, std::shared_ptr< cugl::graphics::Shader > shader=nullptr) |
Platform independent stencil functions.
The functions in this apply a stencil affect to the given shader, wihout using direct OpenGL calls. They are designed this way as part of our ongoing transition to Vulkan.
void cugl::graphics::stencil::applyEffect | ( | StencilEffect | effect, |
std::shared_ptr< cugl::graphics::Shader > | shader = nullptr |
||
) |
Configures the settings to apply the given effect.
Note that the shader parameter is only relevant in Vulkan, as OpenGL stencil operations are applied globally.
effect | The stencil effect |
shader | The shader to apply the stencil operations to. |
void cugl::graphics::stencil::clearBuffer | ( | GLenum | buffer | ) |
Clears the stencil buffer specified
buffer | The stencil buffer (lower, upper, both) |