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

The mode each view asked for. A view that never asked is Shaded, which is why a frame with nothing set costs a hash lookup per collect and nothing else. More...

#include <ViewShading.hpp>

Public Member Functions

void set (u32 view, ShadingMode mode)
ShadingMode get (u32 view) const
usize count () const
 Views holding a non-default mode, for a criterion that checks nothing leaked.
void setWeights (u32 view, Entity entity, u32 joint)
 Colour entity in view by how much joint moves each vertex; an invalid entity stops.
WeightTarget weights (u32 view) const

Detailed Description

The mode each view asked for. A view that never asked is Shaded, which is why a frame with nothing set costs a hash lookup per collect and nothing else.

Definition at line 64 of file ViewShading.hpp.

Member Function Documentation

◆ count()

usize esengine::ViewShading::count ( ) const
inline

Views holding a non-default mode, for a criterion that checks nothing leaked.

Definition at line 77 of file ViewShading.hpp.

◆ get()

ShadingMode esengine::ViewShading::get ( u32 view) const
inline

Definition at line 71 of file ViewShading.hpp.

References esengine::Shaded.

◆ set()

void esengine::ViewShading::set ( u32 view,
ShadingMode mode )
inline

Definition at line 66 of file ViewShading.hpp.

References esengine::Shaded.

◆ setWeights()

void esengine::ViewShading::setWeights ( u32 view,
Entity entity,
u32 joint )
inline

Colour entity in view by how much joint moves each vertex; an invalid entity stops.

Definition at line 80 of file ViewShading.hpp.

References esengine::INVALID_ENTITY.

◆ weights()

WeightTarget esengine::ViewShading::weights ( u32 view) const
inline

Definition at line 85 of file ViewShading.hpp.


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