DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::ChromaKeySettings Struct Reference

Optional chroma-key transparency for a texture. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/TextureImporter.h>

Public Attributes

uint8_t b = 255
bool enabled = false
uint8_t g = 0
uint8_t r = 255

Detailed Description

Optional chroma-key transparency for a texture.

When enabled, pixels matching (r,g,b) are transparent at render time. The importer also bakes per-row spans of non-key columns so the blit can skip the per-pixel compare on opaque rows.

Member Data Documentation

◆ b

uint8_t DekiEditor::ChromaKeySettings::b = 255

◆ enabled

bool DekiEditor::ChromaKeySettings::enabled = false

◆ g

uint8_t DekiEditor::ChromaKeySettings::g = 0

◆ r

uint8_t DekiEditor::ChromaKeySettings::r = 255

The documentation for this struct was generated from the following file: