15#ifndef SAMPLER_H_6014714286
16#define SAMPLER_H_6014714286
79 const unsigned int id;
84 void bind(
int unit )
const;
Contains forward-declarations.
Represents an association.
Maintains an OpenGL texture sampler object. This class realizes the RAII-idiom.
static const unsigned int FILTER_NEAREST
Represents GL_NEAREST.
void setMinFilter(unsigned int minFilter)
Configures sampling for when texel maps onto less than one pixel.
void setWrapModeS(unsigned int wrapMode)
Configures sampling for with .
void bind(int unit) const
Binds the maintained OpenGL sampler objec to texture unit.
void setWrapModeR(unsigned int wrapMode)
Configures sampling for with .
static const unsigned int WRAP_MODE_CLAMP
Represents GL_CLAMP_TO_EDGE.
void setMagFilter(unsigned int magFilter)
Configures sampling for when texel maps onto more than one pixel.
void setWrapModeT(unsigned int wrapMode)
Configures sampling for with .
Sampler(unsigned int wrapModeS, unsigned int wrapModeT, unsigned int wrapModeR, unsigned int minFilter, unsigned int magFilter)
Creates new OpenGL sampler object.
~Sampler()
Deletes the maintained OpenGL sampler object.
static const unsigned int WRAP_MODE_MIRRORED_REPEAT
Represents GL_MIRRORED_REPEAT.
static const unsigned int WRAP_MODE_REPEAT
Represents GL_REPEAT.
static const unsigned int FILTER_LINEAR
Represents GL_LINEAR.
const unsigned int id
Holds the ID of the maintained OpenGL sampler object.
Defines LibCarna::base::noncopyable and NON_COPYABLE.
#define NON_COPYABLE
Marks the class that it is placed in as non-copyable.