OGLplus (0.52.0) a C++ wrapper for OpenGL

Shader variable access

Classes

class  oglplus::FragDataSlot
 Type for the fragment data output slot (implementation-dependent limited) number. More...
 
class  oglplus::ProgVarGetSetOps< OpsTag, tag::Uniform, T >
 Encapsulates uniform value setting functionality. More...
 
class  oglplus::UniformSubroutines
 Encapsulates the uniform subroutine setting operations. More...
 
class  oglplus::ProgVarGetSetOps< OpsTag, tag::VertexAttrib, T >
 Encapsulates vertex attribute value set functionality. More...
 
class  oglplus::VertexAttribSlot
 Type for the vertex attribute slot (implementation-dependent limited) number. More...
 

Typedefs

typedef ProgVar
< tag::ImplicitSel,
tag::FragData,
tag::NoTypecheck, void > 
oglplus::FragData
 Encapsulates frag data operations. More...
 
typedef ProgVar
< tag::ImplicitSel,
tag::UniformBlock,
tag::NoTypecheck, void > 
oglplus::UniformBlock
 Encapsulates uniform block operations. More...
 

Functions

 oglplus::OGLPLUS_DECLARE_PROG_VAR (VertexAttrib, tag::ImplicitSel, tag::VertexAttrib, tag::NoTypecheck) class VertexArrayAttrib
 Encapsulates vertex array attribute functionality. More...
 

Detailed Description

Classes in this group are used for access to the format and values of shading language program variables, like uniforms and vertex attributes or vertex attribute arrays.

Typedef Documentation

typedef ProgVar< tag::ImplicitSel, tag::FragData, tag::NoTypecheck, void> oglplus::FragData

Encapsulates frag data operations.

See Also
FragData
typedef ProgVar< tag::ImplicitSel, tag::UniformBlock, tag::NoTypecheck, void> oglplus::UniformBlock

Encapsulates uniform block operations.

See Also
Uniform

Requires OpenGL 3.1 or the GL_ARB_uniform_buffer_object extension.

Function Documentation

oglplus::OGLPLUS_DECLARE_PROG_VAR ( VertexAttrib  ,
tag::ImplicitSel  ,
tag::VertexAttrib  ,
tag::NoTypecheck   
)

Encapsulates vertex array attribute functionality.

References the vertex attribute array at location

Related OpenGL symbols:
glGetAttribLocation

References the vertex attribute array at location

Related OpenGL symbols:
glGetAttribLocation

References the vertex attrib array identifier of the program

Related OpenGL symbols:
glGetAttribLocation

Setup the properties of this vertex attribute array

Equivalent to

Pointer(valuer_per_vertex, data_type, false, 0, NULL)

if data_type is DataType::Float or to

LPointer(valuer_per_vertex, data_type, 0, NULL)

if data_type is DataType::Double or to

IPointer(valuer_per_vertex, data_type, 0, NULL)

otherwise.

Note
Consider using the templated version of Setup(), because it is more portable. For example instead of:
attr.Setup(3, DataType::Float);
use
attr.Setup<Vec3f>();
or
attr.Setup<GLfloat>(3);
See Also
Pointer
IPointer
LPointer
Related OpenGL symbols:
glVertexAttribPointer

Setup the properties of this vertex attribute array

See Also
Pointer
IPointer
LPointer
Related OpenGL symbols:
glVertexAttribPointer

Setup the properties of this vertex attribute array

Related OpenGL symbols:
glVertexAttribPointer

Setup the properties of this vertex attribute array

Related OpenGL symbols:
glVertexAttribPointer

Setup the properties of this vertex attribute array

Related OpenGL symbols:
glVertexAttribPointer

Setup the format of this vertex attribute array

Related OpenGL symbols:
glVertexAttribFormat

Setup the format of this vertex attribute array

Related OpenGL symbols:
glVertexAttribIFormat

Setup the format of this vertex attribute array

Related OpenGL symbols:
glVertexAttribLFormat

Enables this vertex attribute array

Related OpenGL symbols:
glEnableVertexArrayAttrib

Disables this vertex attribute array

Related OpenGL symbols:
glDisableVertexArrayAttrib

References oglplus::Double, and oglplus::Float.


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).