Voxeloop  0.1.0
Musical Loop Generation in Voxel World
Texture.hpp
Go to the documentation of this file.
1 #ifndef CORE_INCLUDE_TEXTURE_HPP
2 #define CORE_INCLUDE_TEXTURE_HPP
3 
4 #include "Shader.hpp"
5 
6 class Texture {
7 public:
8  GLuint ID;
9  GLenum type;
10  Texture(const char *image, GLenum texType, GLenum slot, GLenum format,
11  GLenum pixelType);
12 
13  void texUint(Shader *shader, const char *uniform, GLuint uint);
14  void bind();
15  void unbind();
16  void remove();
17 };
18 
19 #endif // CORE_INCLUDE_TEXTURE_HPP
Definition: Shader.hpp:10
Definition: Texture.hpp:6
void remove()
Definition: Texture.cpp:59
void bind()
Definition: Texture.cpp:55
void texUint(Shader *shader, const char *uniform, GLuint uint)
Definition: Texture.cpp:49
GLenum type
Definition: Texture.hpp:9
void unbind()
Definition: Texture.cpp:57
GLuint ID
Definition: Texture.hpp:8
Texture(const char *image, GLenum texType, GLenum slot, GLenum format, GLenum pixelType)
Definition: Texture.cpp:9