globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.

Wraps OpenGL sampler objects. More...

#include <globjects/include/globjects/Sampler.h>

Inheritance diagram for globjects::Sampler:
globjects::Object globjects::Instantiator< Sampler >

Public Member Functions

 Sampler ()
 
virtual ~Sampler ()
 
virtual void accept (ObjectVisitor &visitor) override
 
void bind (gl::GLuint unit) const
 
void setParameter (gl::GLenum name, gl::GLenum value)
 
void setParameter (gl::GLenum name, gl::GLint value)
 
void setParameter (gl::GLenum name, gl::GLfloat value)
 
gl::GLint getParameteri (gl::GLenum pname) const
 
gl::GLfloat getParameterf (gl::GLenum pname) const
 
virtual gl::GLenum objectType () const override
 
- Public Member Functions inherited from globjects::Object
gl::GLuint id () const
 
std::string name () const
 
void setName (const std::string &name)
 
bool hasName () const
 
bool isDefault () const
 
void detach ()
 

Static Public Member Functions

static std::unique_ptr< SamplerfromId (gl::GLuint id)
 
static void unbind (gl::GLuint unit)
 
- Static Public Member Functions inherited from globjects::Object
static void hintNameImplementation (NameImplementation impl)
 
- Static Public Member Functions inherited from globjects::Instantiator< Sampler >
static std::unique_ptr< Samplercreate (Args &&...args)
 
static std::unique_ptr< SamplerfromId (gl::GLuint id, Args &&...args)
 

Protected Member Functions

 Sampler (std::unique_ptr< IDResource > &&resource)
 
- Protected Member Functions inherited from globjects::Object
 Object (std::unique_ptr< IDResource > &&resource)
 
virtual ~Object ()
 

Additional Inherited Members

- Public Types inherited from globjects::Object
enum  NameImplementation { NameImplementation::DebugKHR, NameImplementation::Legacy }
 
- Protected Attributes inherited from globjects::Object
std::unique_ptr< IDResourcem_resource
 
void * m_objectLabelState
 

Detailed Description

Wraps OpenGL sampler objects.

See also
http://www.opengl.org/wiki/Sampler_Object

Constructor & Destructor Documentation

globjects::Sampler::Sampler ( )
virtual globjects::Sampler::~Sampler ( )
virtual
globjects::Sampler::Sampler ( std::unique_ptr< IDResource > &&  resource)
protected

Member Function Documentation

static std::unique_ptr<Sampler> globjects::Sampler::fromId ( gl::GLuint  id)
static
virtual void globjects::Sampler::accept ( ObjectVisitor visitor)
overridevirtual

Implements globjects::Object.

void globjects::Sampler::bind ( gl::GLuint  unit) const
static void globjects::Sampler::unbind ( gl::GLuint  unit)
static
void globjects::Sampler::setParameter ( gl::GLenum  name,
gl::GLenum  value 
)
void globjects::Sampler::setParameter ( gl::GLenum  name,
gl::GLint  value 
)
void globjects::Sampler::setParameter ( gl::GLenum  name,
gl::GLfloat  value 
)
gl::GLint globjects::Sampler::getParameteri ( gl::GLenum  pname) const
gl::GLfloat globjects::Sampler::getParameterf ( gl::GLenum  pname) const
virtual gl::GLenum globjects::Sampler::objectType ( ) const
overridevirtual

Implements globjects::Object.


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