12 #ifndef SAMPLER_H_6014714286 13 #define SAMPLER_H_6014714286 15 #include <Carna/Carna.h> 62 (
unsigned int wrapModeS
63 ,
unsigned int wrapModeT
64 ,
unsigned int wrapModeR
65 ,
unsigned int minFilter
66 ,
unsigned int magFilter );
76 const unsigned int id;
81 void bind(
int unit )
const;
87 void setWrapModeS(
unsigned int wrapMode );
93 void setWrapModeT(
unsigned int wrapMode );
99 void setWrapModeR(
unsigned int wrapMode );
104 void setMinFilter(
unsigned int minFilter );
109 void setMagFilter(
unsigned int magFilter );
119 #endif // SAMPLER_H_6014714286 const unsigned int id
Holds the ID of the maintained OpenGL sampler object.
static const unsigned int FILTER_LINEAR
Represents GL_LINEAR.
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 WRAP_MODE_CLAMP
Represents GL_CLAMP_TO_EDGE.
Maintains an OpenGL texture sampler object. This class realizes the RAII-idiom.
static const unsigned int FILTER_NEAREST
Represents GL_NEAREST.
#define NON_COPYABLE
Features class it is placed in as non-copyable.