OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ObjBindingOps< tag::Texture > Class Template Reference

Texture binding operations. More...

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

Inheritance diagram for oglplus::ObjBindingOps< tag::Texture >:

Public Types

typedef TextureTarget Target
 Texture bind targets.
 

Static Public Member Functions

static TextureName Binding (Target target)
 Returns the current Texture bound to specified target. More...
 
static void Bind (Target target, TextureName texture)
 Binds the specified texture to the specified target. More...
 
static void BindImage (ImageUnitSelector unit, TextureName texture, GLint level, bool layered, GLint layer, AccessSpecifier access, ImageUnitFormat format)
 Binds a level of texture to an image unit. More...
 
static void Bind (GLuint first, const Sequence< TextureName > &textures)
 Sequentially bind textures to texture units starting with first. More...
 
static void BindImage (GLuint first, const Sequence< TextureName > &textures)
 Sequentially bind textures to image units starting with first. More...
 

Detailed Description

template<>
class oglplus::ObjBindingOps< tag::Texture >

Texture binding operations.

Member Function Documentation

static void oglplus::ObjBindingOps< tag::Texture >::Bind ( Target  target,
TextureName  texture 
)
static

Binds the specified texture to the specified target.

Related OpenGL symbols:
glBindTexture

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Texture >::Bind ( GLuint  first,
const Sequence< TextureName > &  textures 
)
static

Sequentially bind textures to texture units starting with first.

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

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

static void oglplus::ObjBindingOps< tag::Texture >::BindImage ( ImageUnitSelector  unit,
TextureName  texture,
GLint  level,
bool  layered,
GLint  layer,
AccessSpecifier  access,
ImageUnitFormat  format 
)
static

Binds a level of texture to an image unit.

Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension.

Related OpenGL symbols:
glBindImageTexture

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Texture >::BindImage ( GLuint  first,
const Sequence< TextureName > &  textures 
)
static

Sequentially bind textures to image units starting with first.

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

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

static TextureName oglplus::ObjBindingOps< tag::Texture >::Binding ( Target  target)
static

Returns the current Texture bound to specified target.

Related OpenGL symbols:
glGetIntegerv

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/texture.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).