BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
Texture.h
1#ifndef TEXTURE_H
2#define TEXTURE_H
3
4#include <glad/glad.h>
5#include "../shaders/Shader.h"
6#include "stb_image.h"
7
12{
13public:
17 GLuint ID;
18
22 GLenum type;
23
27 GLuint unit;
28
37 Texture(const char* image, GLenum texType, GLuint slot, GLenum format, GLenum pixelType);
38
45 void texUnit(Shader* shader, const char* uniform, GLuint unit);
46
50 void bind();
51
55 void unbind();
56
60 void cleanup();
61};
62
63#endif // TEXTURE_H
Definition Shader.h:21
Definition Texture.h:12
Texture(const char *image, GLenum texType, GLuint slot, GLenum format, GLenum pixelType)
Definition Texture.cpp:3
void bind()
Definition Texture.cpp:35
GLenum type
Definition Texture.h:22
void unbind()
Definition Texture.cpp:41
GLuint unit
Definition Texture.h:27
void texUnit(Shader *shader, const char *uniform, GLuint unit)
Definition Texture.cpp:28
GLuint ID
Definition Texture.h:17
void cleanup()
Definition Texture.cpp:46