Voxeloop  0.1.0
Musical Loop Generation in Voxel World
Texture Class Reference

#include <Texture.hpp>

Collaboration diagram for Texture:
Collaboration graph

Public Member Functions

 Texture (const char *image, GLenum texType, GLenum slot, GLenum format, GLenum pixelType)
 
void texUint (Shader *shader, const char *uniform, GLuint uint)
 
void bind ()
 
void unbind ()
 
void remove ()
 

Public Attributes

GLuint ID
 
GLenum type
 

Constructor & Destructor Documentation

◆ Texture()

Texture::Texture ( const char *  image,
GLenum  texType,
GLenum  slot,
GLenum  format,
GLenum  pixelType 
)

Set texture parameters

Member Function Documentation

◆ bind()

void Texture::bind ( )

◆ remove()

void Texture::remove ( )

◆ texUint()

void Texture::texUint ( Shader shader,
const char *  uniform,
GLuint  uint 
)

◆ unbind()

void Texture::unbind ( )

Member Data Documentation

◆ ID

GLuint Texture::ID

◆ type

GLenum Texture::type

The documentation for this class was generated from the following files: