engine/include/resources/texture.hpp
2022-09-03 05:56:51 +01:00

30 lines
358 B
C++

#pragma once
#include "export.h"
#include "resource.hpp"
#include <glad/glad.h>
namespace resources {
class ENGINE_API 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();
};
}