Created texture class
This commit is contained in:
15
headers/texture.hpp
Normal file
15
headers/texture.hpp
Normal 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
|
||||
Reference in New Issue
Block a user