engine/include/resources/texture.hpp
2022-09-02 12:06:59 +01:00

28 lines
326 B
C++

#pragma once
#include "resource.hpp"
#include <glad/glad.h>
namespace resources {
class Texture : public Resource {
private:
static GLuint s_binded_texture;
GLuint m_texture;
public:
Texture(const std::filesystem::path& resPath);
~Texture() override;
void bindTexture() const;
static void invalidate();
};
}