c-project/include/texture.h

19 lines
243 B
C
Raw Normal View History

2024-05-15 11:56:11 +02:00
#pragma once
#include <string>
#include <glad/glad.h>
class Texture
{
public:
Texture() = default;
Texture(std::string path) { load(path); };
void bind(int slot);
void load(std::string path);
void clear();
private:
GLuint id = 0;
};