Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Implements a generic OpenGL Shading Language vertex attribute to be used with a Geometry, see also http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribPointer.xml. More...
#include <VertexAttribInfo.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| VertexAttribInfo (unsigned int location, ArrayAbstract *data, bool normalize=true, EVertexAttribBehavior data_behav=VAB_NORMAL) | |
| VertexAttribInfo () | |
| ArrayAbstract * | data () const |
| The GPU buffer that stores the data. | |
| unsigned int | attribIndex () const |
| The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray(). | |
| bool | normalize () const |
| The 'normalized' parameter as used with glVertexAttribPointer() | |
| void | setDataBehavior (EVertexAttribBehavior behavior) |
| How the data is interpreted by the OpenGL, see EVertexAttribBehavior. | |
| EVertexAttribBehavior | dataBehavior () const |
| How the data is interpreted by the OpenGL, see EVertexAttribBehavior. | |
| void | setData (ArrayAbstract *data) |
| The GPU buffer that stores the data. | |
| void | setAttribIndex (unsigned int index) |
| The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray(). | |
| void | setNormalize (bool normalize) |
| The 'normalized' parameter as used with glVertexAttribPointer() | |
Protected Attributes | |
| ref< ArrayAbstract > | mData |
| unsigned int | mAttribIndex |
| EVertexAttribBehavior | mDataBehavior |
| bool | mNormalize |
Implements a generic OpenGL Shading Language vertex attribute to be used with a Geometry, see also http://www.opengl.org/sdk/docs/man/xhtml/glVertexAttribPointer.xml.
Definition at line 47 of file VertexAttribInfo.hpp.
| vl::VertexAttribInfo::VertexAttribInfo | ( | unsigned int | location, |
| ArrayAbstract * | data, | ||
| bool | normalize = true, |
||
| EVertexAttribBehavior | data_behav = VAB_NORMAL |
||
| ) | [inline] |
Definition at line 52 of file VertexAttribInfo.hpp.
| vl::VertexAttribInfo::VertexAttribInfo | ( | ) | [inline] |
Definition at line 54 of file VertexAttribInfo.hpp.
| virtual const char* vl::VertexAttribInfo::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
Definition at line 50 of file VertexAttribInfo.hpp.
| ArrayAbstract* vl::VertexAttribInfo::data | ( | ) | const [inline] |
The GPU buffer that stores the data.
Definition at line 57 of file VertexAttribInfo.hpp.
References vl::ref< T >::get(), and mData.
Referenced by vl::OpenGLContext::bindVAS(), vl::Geometry::computeBounds_Implementation(), vl::Geometry::deleteVBOs(), setData(), vl::Geometry::updateVBOs(), and vl::Geometry::vertexAttrib().
| unsigned int vl::VertexAttribInfo::attribIndex | ( | ) | const [inline] |
The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().
Definition at line 63 of file VertexAttribInfo.hpp.
References mAttribIndex.
Referenced by vl::OpenGLContext::bindVAS(), vl::Geometry::eraseVertexAttrib(), vl::Geometry::setVertexAttribArray(), and vl::Geometry::vertexAttribInfo().
| bool vl::VertexAttribInfo::normalize | ( | ) | const [inline] |
The 'normalized' parameter as used with glVertexAttribPointer()
Definition at line 68 of file VertexAttribInfo.hpp.
References mNormalize.
Referenced by vl::OpenGLContext::bindVAS(), and setNormalize().
| void vl::VertexAttribInfo::setDataBehavior | ( | EVertexAttribBehavior | behavior ) | [inline] |
How the data is interpreted by the OpenGL, see EVertexAttribBehavior.
Definition at line 71 of file VertexAttribInfo.hpp.
References mDataBehavior.
| EVertexAttribBehavior vl::VertexAttribInfo::dataBehavior | ( | ) | const [inline] |
How the data is interpreted by the OpenGL, see EVertexAttribBehavior.
Definition at line 74 of file VertexAttribInfo.hpp.
References mDataBehavior.
Referenced by vl::OpenGLContext::bindVAS().
| void vl::VertexAttribInfo::setData | ( | ArrayAbstract * | data ) | [inline] |
The GPU buffer that stores the data.
Definition at line 77 of file VertexAttribInfo.hpp.
Referenced by vl::Geometry::regenerateVertices().
| void vl::VertexAttribInfo::setAttribIndex | ( | unsigned int | index ) | [inline] |
The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().
Definition at line 83 of file VertexAttribInfo.hpp.
References mAttribIndex.
| void vl::VertexAttribInfo::setNormalize | ( | bool | normalize ) | [inline] |
The 'normalized' parameter as used with glVertexAttribPointer()
Definition at line 88 of file VertexAttribInfo.hpp.
References mNormalize, and normalize().
ref<ArrayAbstract> vl::VertexAttribInfo::mData [protected] |
Definition at line 91 of file VertexAttribInfo.hpp.
unsigned int vl::VertexAttribInfo::mAttribIndex [protected] |
Definition at line 92 of file VertexAttribInfo.hpp.
Referenced by attribIndex(), and setAttribIndex().
Definition at line 93 of file VertexAttribInfo.hpp.
Referenced by dataBehavior(), and setDataBehavior().
bool vl::VertexAttribInfo::mNormalize [protected] |
Definition at line 94 of file VertexAttribInfo.hpp.
Referenced by normalize(), and setNormalize().