mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 13:01:19 +00:00
28 lines
326 B
C++
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();
|
|
};
|
|
|
|
}
|