CF_StencilFunction¶
Category: graphics
GitHub: cute_graphics.h
Defines functions for stencil rendering.
Struct Members | Description |
---|---|
CF_CompareFunction compare |
Comparison type for the stencil test. See CF_CompareFunction. |
CF_StencilOp fail_op |
An operation to perform upon failing a stencil test. See CF_StencilOp. |
CF_StencilOp depth_fail_op |
An operation to perform upon failing a depth test. See CF_StencilOp. |
CF_StencilOp pass_op |
An operation to perform upon passing a stencil test. See CF_StencilOp. |
Remarks¶
The stencil buffer stores references values used for rendering with comparisons. Only comparisons that end up logically true pass the stencil test and end up getting drawn. For an overview of stencil testing learnopengl.com has an excellent article on the topic.
Related Pages¶
cf_material_set_render_state
CF_StencilParams
CF_RenderState