Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::VertexAttribInfo Class Reference

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>

Inheritance diagram for vl::VertexAttribInfo:
vl::Object

List of all members.

Public Member Functions

 VertexAttribInfo (unsigned int location, ArrayAbstract *data, bool normalize=true, EVertexAttribInterpretation data_behav=VAI_NORMAL)
 VertexAttribInfo ()
void setData (ArrayAbstract *data)
 The GPU buffer that stores the data.
const ArrayAbstractdata () const
 The GPU buffer that stores the data.
ArrayAbstractdata ()
 The GPU buffer that stores the data.
void setAttribLocation (unsigned int index)
 The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().
unsigned int attribLocation () const
 The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().
void setNormalize (bool normalize)
 The 'normalized' parameter as used with glVertexAttribPointer()
bool normalize () const
 The 'normalized' parameter as used with glVertexAttribPointer()
void setInterpretation (EVertexAttribInterpretation behavior)
 How the data is interpreted by the OpenGL, see EVertexAttribInterpretation.
EVertexAttribInterpretation interpretation () const
 How the data is interpreted by the OpenGL, see EVertexAttribInterpretation.

Protected Attributes

ref< ArrayAbstractmData
unsigned int mAttribLocation
EVertexAttribInterpretation mInterpretation
bool mNormalize

Detailed Description

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.


Constructor & Destructor Documentation

vl::VertexAttribInfo::VertexAttribInfo ( unsigned int  location,
ArrayAbstract data,
bool  normalize = true,
EVertexAttribInterpretation  data_behav = VAI_NORMAL 
) [inline]

Definition at line 52 of file VertexAttribInfo.hpp.

vl::VertexAttribInfo::VertexAttribInfo (  ) [inline]

Definition at line 54 of file VertexAttribInfo.hpp.


Member Function Documentation

void vl::VertexAttribInfo::setData ( ArrayAbstract data ) [inline]

The GPU buffer that stores the data.

Definition at line 57 of file VertexAttribInfo.hpp.

References data(), and mData.

Referenced by vl::Geometry::regenerateVertices().

const ArrayAbstract* vl::VertexAttribInfo::data (  ) const [inline]
ArrayAbstract* vl::VertexAttribInfo::data (  ) [inline]

The GPU buffer that stores the data.

Definition at line 63 of file VertexAttribInfo.hpp.

References vl::ref< T >::get(), and mData.

void vl::VertexAttribInfo::setAttribLocation ( unsigned int  index ) [inline]

The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().

See also:

Definition at line 69 of file VertexAttribInfo.hpp.

References mAttribLocation.

Referenced by vl::VLXClassWrapper_Geometry::importGeometry().

unsigned int vl::VertexAttribInfo::attribLocation (  ) const [inline]

The 'index' parameter of the vertex attribute as used with glVertexAttribPointer() and glEnableVertexAttribArray().

See also:

Definition at line 75 of file VertexAttribInfo.hpp.

References mAttribLocation.

Referenced by vl::OpenGLContext::bindVAS(), vl::Geometry::setVertexAttribArray(), and vl::Geometry::vertexAttribArray().

void vl::VertexAttribInfo::setNormalize ( bool  normalize ) [inline]

The 'normalized' parameter as used with glVertexAttribPointer()

See also:

Definition at line 80 of file VertexAttribInfo.hpp.

References mNormalize, and normalize().

bool vl::VertexAttribInfo::normalize (  ) const [inline]

The 'normalized' parameter as used with glVertexAttribPointer()

See also:

Definition at line 85 of file VertexAttribInfo.hpp.

References mNormalize.

Referenced by vl::OpenGLContext::bindVAS(), vl::VLXClassWrapper_VertexAttribInfo::exportVertexAttribInfo(), and setNormalize().

void vl::VertexAttribInfo::setInterpretation ( EVertexAttribInterpretation  behavior ) [inline]

How the data is interpreted by the OpenGL, see EVertexAttribInterpretation.

Definition at line 88 of file VertexAttribInfo.hpp.

References mInterpretation.

EVertexAttribInterpretation vl::VertexAttribInfo::interpretation (  ) const [inline]

How the data is interpreted by the OpenGL, see EVertexAttribInterpretation.

Definition at line 91 of file VertexAttribInfo.hpp.

References mInterpretation.

Referenced by vl::OpenGLContext::bindVAS(), and vl::VLXClassWrapper_VertexAttribInfo::exportVertexAttribInfo().


Member Data Documentation

Definition at line 94 of file VertexAttribInfo.hpp.

Referenced by data(), and setData().

unsigned int vl::VertexAttribInfo::mAttribLocation [protected]

Definition at line 95 of file VertexAttribInfo.hpp.

Referenced by attribLocation(), and setAttribLocation().

Definition at line 96 of file VertexAttribInfo.hpp.

Referenced by interpretation(), and setInterpretation().

Definition at line 97 of file VertexAttribInfo.hpp.

Referenced by normalize(), and setNormalize().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:12.
Permission is granted to use this page to write and publish articles regarding Visualization Library.