|
Euphoria
|
A helper class to change both the opengl state and the cache. More...
Public Member Functions | |
| StateChanger (OpenglStates *s) | |
| StateChanger & | cull_face (bool new_state) |
| StateChanger & | blending (bool new_state) |
| StateChanger & | depth_test (bool new_state) |
| StateChanger & | depth_mask (bool new_state) |
| StateChanger & | depth_func (Compare new_state) |
| StateChanger & | stencil_test (bool new_state) |
| StateChanger & | stencil_mask (u32 new_state) |
| Set a bitmask that is ANDed with the stencil value about to be written to the buffer. | |
| StateChanger & | stencil_func (Compare func, i32 ref, u32 mask) |
| StateChanger & | render_mode (RenderMode new_state) |
| StateChanger & | stencil_op (StencilAction stencil_fail, StencilAction depth_fail, StencilAction pass) |
| StateChanger & | cull_face_mode (CullFace new_state) |
| StateChanger & | blend_mode (Blend src, Blend dst) |
| StateChanger & | activate_texture (int new_texture) |
| StateChanger & | bind_texture_2d (int slot, unsigned int texture) |
| StateChanger & | bind_texture_cubemap (int slot, unsigned int texture) |
Public Attributes | |
| OpenglStates * | states |
A helper class to change both the opengl state and the cache.
Definition at line 22 of file statechanger.h.
|
explicit |
| StateChanger & eu::render::StateChanger::activate_texture | ( | int | new_texture | ) |
| StateChanger & eu::render::StateChanger::bind_texture_2d | ( | int | slot, |
| unsigned int | texture | ||
| ) |
| StateChanger & eu::render::StateChanger::bind_texture_cubemap | ( | int | slot, |
| unsigned int | texture | ||
| ) |
| StateChanger & eu::render::StateChanger::blend_mode | ( | Blend | src, |
| Blend | dst | ||
| ) |
| StateChanger & eu::render::StateChanger::blending | ( | bool | new_state | ) |
| StateChanger & eu::render::StateChanger::cull_face | ( | bool | new_state | ) |
| StateChanger & eu::render::StateChanger::cull_face_mode | ( | CullFace | new_state | ) |
| StateChanger & eu::render::StateChanger::depth_func | ( | Compare | new_state | ) |
| StateChanger & eu::render::StateChanger::depth_mask | ( | bool | new_state | ) |
| StateChanger & eu::render::StateChanger::depth_test | ( | bool | new_state | ) |
| StateChanger & eu::render::StateChanger::render_mode | ( | RenderMode | new_state | ) |
| StateChanger & eu::render::StateChanger::stencil_func | ( | Compare | func, |
| i32 | ref, | ||
| u32 | mask | ||
| ) |
| func | the stencil test function that determines whether a fragment passes or is discarded. This test function is applied to the stored stencil value and the ref value. |
| ref | the reference value for the stencil test. The stencil buffer's content is compared to this value. |
| mask | the mask that is ANDed with both the reference value and the stored stencil value before the test compares them. |
| StateChanger & eu::render::StateChanger::stencil_mask | ( | u32 | new_state | ) |
Set a bitmask that is ANDed with the stencil value about to be written to the buffer.
| StateChanger & eu::render::StateChanger::stencil_op | ( | StencilAction | stencil_fail, |
| StencilAction | depth_fail, | ||
| StencilAction | pass | ||
| ) |
| stencil_fail | action to take if the stencil test fails. |
| depth_fail | action to take if the stencil test passes, but the depth test fails. |
| pass | action to take if both the stencil and the depth test pass. |
| StateChanger & eu::render::StateChanger::stencil_test | ( | bool | new_state | ) |
| OpenglStates* eu::render::StateChanger::states |
Definition at line 24 of file statechanger.h.