Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [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. More...

#include <VertexAttribInfo.hpp>

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

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 VertexAttribInfo (unsigned int location, bool normalize, bool pure_integer, ArrayAbstract *data)
 VertexAttribInfo ()
ArrayAbstractdata () 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()
bool pureInteger () const
 If set to true glVertexAttribIPointer() will be used instead of glVertexAttribPointer().
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()
void setPureInteger (bool pure_integer)
 If set to true glVertexAttribIPointer() will be used instead of glVertexAttribPointer().

Protected Attributes

ref< ArrayAbstractmData
unsigned int mAttribIndex
bool mNormalize
bool mPureInteger

Detailed Description

Implements a generic OpenGL Shading Language vertex attribute to be used with a Geometry.


Constructor & Destructor Documentation

vl::VertexAttribInfo::VertexAttribInfo ( unsigned int  location,
bool  normalize,
bool  pure_integer,
ArrayAbstract data 
) [inline]
vl::VertexAttribInfo::VertexAttribInfo (  ) [inline]

Member Function Documentation

virtual const char* vl::VertexAttribInfo::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Object.

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

The GPU buffer that stores the data.

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

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

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

The 'normalized' parameter as used with glVertexAttribPointer()

See also:
bool vl::VertexAttribInfo::pureInteger (  ) const [inline]

If set to true glVertexAttribIPointer() will be used instead of glVertexAttribPointer().

This feature requires GL_EXT_gpu_shader4.

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

The GPU buffer that stores the data.

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

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

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

The 'normalized' parameter as used with glVertexAttribPointer()

See also:
void vl::VertexAttribInfo::setPureInteger ( bool  pure_integer ) [inline]

If set to true glVertexAttribIPointer() will be used instead of glVertexAttribPointer().

This feature requires GL_EXT_gpu_shader4.

See also:

Member Data Documentation

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

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

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 10:33:54.
Permission is granted to use this page to write and publish articles regarding Visualization Library.