OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ObjCommonOps< tag::Sampler > Class Template Reference

Common sampler operations. More...

#include </home/chochlik/devel/oglplus/include/oglplus/sampler.hpp>

Inheritance diagram for oglplus::ObjCommonOps< tag::Sampler >:
Collaboration diagram for oglplus::ObjCommonOps< tag::Sampler >:

Public Types

typedef TextureUnitSelector Target
 Sampler bind targets.
 

Public Member Functions

void Bind (Target target) const
 Binds this sampler to the specified target (texture unit) More...
 

Static Public Member Functions

static SamplerName Binding (Target target)
 Returns the current Sampler bound to specified target (tex. unit) More...
 
static void Bind (Target target, SamplerName sampler)
 Binds the specified sampler to the specified target (tex. unit) More...
 
static void Bind (GLuint first, const Sequence< SamplerName > &samplers)
 Sequentially bind samplers to texture units starting with first. More...
 

Detailed Description

template<>
class oglplus::ObjCommonOps< tag::Sampler >

Common sampler operations.

Note
Do not use this class directly, use Sampler or NoSampler instead.

Member Function Documentation

static void oglplus::ObjBindingOps< tag::Sampler >::Bind ( Target  target,
SamplerName  sampler 
)
staticinherited

Binds the specified sampler to the specified target (tex. unit)

Related OpenGL symbols:
glBindSampler

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Sampler >::Bind ( GLuint  first,
const Sequence< SamplerName > &  samplers 
)
staticinherited

Sequentially bind samplers to texture units starting with first.

Exceptions
Error
Related OpenGL symbols:
glBindSamplers Requires OpenGL 4.4 or the GL_ARB_multi_bind extension.

References oglplus::GetGLNames(), and oglplus::Sequence< ObjName >::size().

void oglplus::ObjCommonOps< tag::Sampler >::Bind ( Target  target) const

Binds this sampler to the specified target (texture unit)

Related OpenGL symbols:
glBindSampler
static SamplerName oglplus::ObjBindingOps< tag::Sampler >::Binding ( Target  target)
staticinherited

Returns the current Sampler bound to specified target (tex. unit)

Related OpenGL symbols:
glGetIntegerv

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/sampler.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).