OGLplus (0.52.0) a C++ wrapper for OpenGL

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

Buffer binding operations. More...

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

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

Public Types

typedef BufferTarget Target
 Buffer bind targets.
 
typedef BufferIndexedTarget IndexedTarget
 Buffer indexed bind targets.
 

Static Public Member Functions

static BufferName Binding (Target target)
 Returns the current Buffer bound to specified target. More...
 
static void Bind (Target target, BufferName buffer)
 Binds the specified buffer to the specified target. More...
 
static BufferName Binding (IndexedTarget target, GLuint idx)
 Returns the current Buffer bound to specified indexed target. More...
 
static void BindBase (IndexedTarget target, GLuint index, BufferName buffer)
 Bind the specified buffer to the specified indexed target. More...
 
static void BindRange (IndexedTarget target, GLuint index, BufferName buffer, BufferSize offset, BufferSize size)
 Bind a range the specified buffer to the specified indexed target. More...
 
static void BindBase (BufferIndexedTarget target, GLuint first, const Sequence< BufferName > &buffers)
 Sequentially binds buffers to target starting at first index. More...
 

Detailed Description

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

Buffer binding operations.

Member Function Documentation

static void oglplus::ObjBindingOps< tag::Buffer >::Bind ( Target  target,
BufferName  buffer 
)
static

Binds the specified buffer to the specified target.

Related OpenGL symbols:
glBindBuffer

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Buffer >::BindBase ( IndexedTarget  target,
GLuint  index,
BufferName  buffer 
)
static

Bind the specified buffer to the specified indexed target.

Exceptions
Error

References oglplus::GetGLName().

static void oglplus::ObjBindingOps< tag::Buffer >::BindBase ( BufferIndexedTarget  target,
GLuint  first,
const Sequence< BufferName > &  buffers 
)
static

Sequentially binds buffers to target starting at first index.

Related OpenGL symbols:
glBindBase Requires OpenGL 4.4 or the GL_ARB_multi_bind extension.

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

static BufferName oglplus::ObjBindingOps< tag::Buffer >::Binding ( Target  target)
static

Returns the current Buffer bound to specified target.

Related OpenGL symbols:
glGetIntegerv
static BufferName oglplus::ObjBindingOps< tag::Buffer >::Binding ( IndexedTarget  target,
GLuint  idx 
)
static

Returns the current Buffer bound to specified indexed target.

Related OpenGL symbols:
glGetIntegerv
static void oglplus::ObjBindingOps< tag::Buffer >::BindRange ( IndexedTarget  target,
GLuint  index,
BufferName  buffer,
BufferSize  offset,
BufferSize  size 
)
static

Bind a range the specified buffer to the specified indexed target.

Exceptions
Error

References oglplus::BufferSize::Get(), and oglplus::GetGLName().


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