Move cube face target mapping to renderer gl

This commit is contained in:
2026-06-01 18:09:12 +02:00
parent 4212387b70
commit 7d80afce2f
6 changed files with 71 additions and 17 deletions

View File

@@ -9,12 +9,12 @@
std::map<uint16_t, Texture2D> TextureManager::m_textures;
std::array<int, 6> TextureCube::m_faces_map {
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, // front
GL_TEXTURE_CUBE_MAP_NEGATIVE_X, // right
GL_TEXTURE_CUBE_MAP_POSITIVE_Z, // back
GL_TEXTURE_CUBE_MAP_POSITIVE_X, // left
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, // top
GL_TEXTURE_CUBE_MAP_POSITIVE_Y, // bottom
static_cast<int>(pp::renderer::gl::cube_face_texture_target(0U)),
static_cast<int>(pp::renderer::gl::cube_face_texture_target(1U)),
static_cast<int>(pp::renderer::gl::cube_face_texture_target(2U)),
static_cast<int>(pp::renderer::gl::cube_face_texture_target(3U)),
static_cast<int>(pp::renderer::gl::cube_face_texture_target(4U)),
static_cast<int>(pp::renderer::gl::cube_face_texture_target(5U)),
};
TextureCube::TextureCube(TextureCube&& other) noexcept