rigComponent 0.1.1
RigKit pack API - rigComponent
Loading...
Searching...
No Matches
rigkit::ecs::CPalette Struct Reference

Portable indexed colour table. More...

#include <rigComponent/src/CPalette.h>

Public Member Functions

glm::vec4 shaded (int index, int darkerSteps) const
 Walk shadeNext darkerSteps times from index.

Static Public Member Functions

static CPalette default16 ()
 Default 16-slot palette with simple ramps toward black/grey.

Public Attributes

std::array< int, kCount > shadeNext {}
 Next darker palette index for shade ramps; -1 = stop.

Detailed Description

Portable indexed colour table.

Speaks rig.pixel.palette.

Contract field is colors (rgba[]). shadeNext is a host extension for shade ramps. Faces may index this via CMesh::facePalette. No GPU handles.


The documentation for this struct was generated from the following file:
  • packs/rigComponent/src/CPalette.h