OGLplus (0.45.0) a C++ wrapper for OpenGL

oglplus::UniformBlockTpl< Initializer > Class Template Reference

Base class for shader uniform block operations functionality. More...

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

Inherits Initializer.

Public Member Functions

bool ReferencedBy (ShaderType shader_type)
 Returns true if this uniform block is referenced by shader_type. More...
 
GLuint DataSize (void)
 Returns the size of the uniform block. More...
 

Static Public Member Functions

static GLuint MaxIn (ShaderType shader_type)
 Return the maximum number of uniform blocks for a shader_type.
 

Detailed Description

template<class Initializer>
class oglplus::UniformBlockTpl< Initializer >

Base class for shader uniform block operations functionality.

Note
Do not use this class directly. Use UniformBlock or LazyUniformBlock instead.
See Also
UniformBlock
LazyUniformBlock

Requires OpenGL 3.1 or the GL_ARB_uniform_buffer_object extension.

Member Function Documentation

template<class Initializer>
GLuint oglplus::UniformBlockTpl< Initializer >::DataSize ( void  )

Returns the size of the uniform block.

Related OpenGL symbols:
glGetActiveUniformBlock
template<class Initializer>
bool oglplus::UniformBlockTpl< Initializer >::ReferencedBy ( ShaderType  shader_type)

Returns true if this uniform block is referenced by shader_type.

Related OpenGL symbols:
glGetActiveUniformBlock

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

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