Created texture class
This commit is contained in:
parent
e0a695c7b1
commit
16d9959ace
3 changed files with 54 additions and 27 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue