Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ClipState Class Reference

#include <ClipState.hpp>

Classes

struct  Entry

Public Member Functions

void setScissor (u32 entity, i32 x, i32 y, i32 w, i32 h)
void setStencilMask (u32 entity, i32 refValue)
void setUIStencilMask (u32 entity, i32 depth)
void setUIStencilTest (u32 entity, i32 depth)
bool reserveSpriteStencilReferences (i32 count)
bool isStencilMask (Entity entity) const
void setStencilTest (u32 entity, i32 refValue)
void setStencilTestOutside (u32 entity, i32 refValue)
 Drawn only where the mask is NOT — the hole, rather than the window.
void applyTo (Entity entity, DrawCommand &cmd) const
bool hasEntry (u32 entity) const
const Entry * getEntry (u32 entity) const
bool isEmptyScissor (Entity entity) const
void clear ()
bool empty () const

Detailed Description

Definition at line 13 of file ClipState.hpp.

Member Function Documentation

◆ applyTo()

◆ clear()

void esengine::ClipState::clear ( )
inline

Definition at line 110 of file ClipState.hpp.

◆ empty()

bool esengine::ClipState::empty ( ) const
inline

Definition at line 111 of file ClipState.hpp.

◆ getEntry()

const Entry * esengine::ClipState::getEntry ( u32 entity) const
inline

Definition at line 98 of file ClipState.hpp.

Referenced by isEmptyScissor().

◆ hasEntry()

bool esengine::ClipState::hasEntry ( u32 entity) const
inline

Definition at line 94 of file ClipState.hpp.

◆ isEmptyScissor()

bool esengine::ClipState::isEmptyScissor ( Entity entity) const
inline

◆ isStencilMask()

bool esengine::ClipState::isStencilMask ( Entity entity) const
inline

Definition at line 62 of file ClipState.hpp.

References esengine::CMD_STATE_STENCIL_WRITE, and esengine::Entity::id().

◆ reserveSpriteStencilReferences()

bool esengine::ClipState::reserveSpriteStencilReferences ( i32 count)
inline

Definition at line 48 of file ClipState.hpp.

References esengine::CMD_STATE_SCISSOR, and esengine::CMD_STATE_UI_STENCIL.

◆ setScissor()

void esengine::ClipState::setScissor ( u32 entity,
i32 x,
i32 y,
i32 w,
i32 h )
inline

Definition at line 22 of file ClipState.hpp.

References esengine::CMD_STATE_SCISSOR.

◆ setStencilMask()

void esengine::ClipState::setStencilMask ( u32 entity,
i32 refValue )
inline

◆ setStencilTest()

void esengine::ClipState::setStencilTest ( u32 entity,
i32 refValue )
inline

◆ setStencilTestOutside()

void esengine::ClipState::setStencilTestOutside ( u32 entity,
i32 refValue )
inline

Drawn only where the mask is NOT — the hole, rather than the window.

Definition at line 76 of file ClipState.hpp.

References esengine::CMD_STATE_STENCIL_OUT, esengine::CMD_STATE_STENCIL_TEST, esengine::CMD_STATE_STENCIL_WRITE, and esengine::CMD_STATE_UI_STENCIL.

◆ setUIStencilMask()

void esengine::ClipState::setUIStencilMask ( u32 entity,
i32 depth )
inline

Definition at line 36 of file ClipState.hpp.

References esengine::CMD_STATE_UI_STENCIL, and setStencilMask().

◆ setUIStencilTest()

void esengine::ClipState::setUIStencilTest ( u32 entity,
i32 depth )
inline

Definition at line 42 of file ClipState.hpp.

References esengine::CMD_STATE_UI_STENCIL, and setStencilTest().


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/draw/ClipState.hpp