engine/include/resources/texture.hpp

28 lines
326 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#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();
};
}