engine/include/resources/texture.hpp

30 lines
358 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#pragma once
2022-09-02 23:02:09 +00:00
#include "export.h"
2022-09-02 11:06:59 +00:00
#include "resource.hpp"
#include <glad/glad.h>
namespace resources {
2022-09-03 04:56:51 +00:00
class ENGINE_API Texture : public Resource {
2022-09-02 11:06:59 +00:00
private:
static GLuint s_binded_texture;
GLuint m_texture;
public:
Texture(const std::filesystem::path& resPath);
~Texture() override;
void bindTexture() const;
static void invalidate();
};
}