12 std::array<TexID, static_cast<size_t>(FaceTag::Count)> m_textures{};
15 TexID forTag(FaceTag tag)
const {
return m_textures[
static_cast<size_t>(tag)]; }
18 if (tag == FaceTag::All) {
19 for (
int i = 0; i < static_cast<size_t>(FaceTag::Count); i++)
20 m_textures[i] = texture;
24 if (tag == FaceTag::Side) {
25 for (
auto face : IterateXZFaces)
26 m_textures[
static_cast<size_t>(face)] = texture;
29 m_textures[
static_cast<size_t>(tag)] = texture;