Created texture class

This commit is contained in:
k
2025-01-12 23:12:29 -05:00
parent e0a695c7b1
commit 16d9959ace
3 changed files with 54 additions and 27 deletions

15
headers/texture.hpp Normal file
View File

@@ -0,0 +1,15 @@
#ifndef TEXTURE_H
#define TEXTURE_H
#include <glad/glad.h>
class Texture {
public:
Texture(GLenum type, const char *path);
~Texture();
void bind(GLenum texture);
private:
unsigned int ID;
GLenum type;
};
#endif