VOXELFORMAT: allow non-const access to the palette

master
Martin Gerhardy 2022-05-21 17:56:15 +02:00
parent 311b3b3a73
commit 3a100a8afb
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ public:
return _palette;
}
inline voxel::Palette &palette() {
return _palette;
}
/**
* @brief Find the closed index in the currently in-use palette for the given color
* @param color Normalized color value [0.0-1.0]