light/modules/renderer/public/gl/texture.hpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

26 lines
515 B
C++

#pragma once
#include <renderer/texture.hpp>
namespace lt {
class glTexture: public Texture
{
public:
glTexture(const Ref<Assets::TextureAsset> &asset);
~glTexture() override;
void bind(unsigned int slot = 0u) override;
auto get_texture() -> void * override;
private:
[[nodiscard]] auto map_num_components_to_format(uint32_t num_components) const -> int;
[[nodiscard]] auto map_num_components_to_internal_format(uint32_t num_components) const -> int;
uint32_t m_texture_id {};
};
} // namespace lt