Skip to content

raisin::Material::TextureSlotInfo ​

struct · #include <rayrai/Material.hpp>

Static per-slot metadata for the TextureSlot enum.

Bundles the data that would otherwise live as parallel tables in Material.cpp: human-facing name, whether the slot carries sRGB color (so loaders pick the right internal format), and whether the slot is tracked in textureUvTransforms[] so callers can iterate slots without a hardcoded list.

Public attributes ​

name ​

cpp
const char *name

Same as textureSlotName().

isSrgb ​

cpp
bool isSrgb

Color data that should be uploaded as sRGB.

hasUvTransform ​

cpp
bool hasUvTransform

Slot has an entry in textureUvTransforms.

RaiSim — physics for robotics and AI.