GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | List of all members
gl3::VertexBuffer< T > Class Template Reference

#include <types.hpp>

Inheritance diagram for gl3::VertexBuffer< T >:
[legend]
Collaboration diagram for gl3::VertexBuffer< T >:
[legend]

Public Types

typedef std::vector< T >
::const_iterator 
ConstIterator
 

Public Member Functions

 VertexBuffer (GLenum shape)
 
 ~VertexBuffer ()
 
virtual void clear ()
 Clears the data stored in the vertex buffer. More...
 
virtual size_t count () const
 Gets the number of vertices contained in the buffer. More...
 
virtual GLenum getShape () const
 Gets the primitive type contained by the vertex buffer. More...
 
virtual size_t getStride () const
 Gets the stride between vertices. More...
 
ConstIterator begin () const
 
ConstIterator end () const
 
virtual const void * getData () const
 
void addVertex (const T &vertex)
 Add a vertex to the buffer. More...
 
void addVertices (const std::vector< T > &verts)
 Add vertices to a buffer. More...
 
- Public Member Functions inherited from gl3::IVertexBuffer
 IVertexBuffer ()
 
virtual ~IVertexBuffer ()
 
int getHandle () const
 
void setHandle (int dev_hnd)
 

Detailed Description

template<typename T>
class gl3::VertexBuffer< T >

Definition at line 463 of file types.hpp.

Member Typedef Documentation

template<typename T>
typedef std::vector<T>::const_iterator gl3::VertexBuffer< T >::ConstIterator

Definition at line 470 of file types.hpp.

Constructor & Destructor Documentation

template<typename T>
gl3::VertexBuffer< T >::VertexBuffer ( GLenum  shape)
inline

Definition at line 472 of file types.hpp.

template<typename T>
gl3::VertexBuffer< T >::~VertexBuffer ( )
inline

Definition at line 473 of file types.hpp.

Member Function Documentation

template<typename T>
void gl3::VertexBuffer< T >::addVertex ( const T &  vertex)
inline

Add a vertex to the buffer.

Definition at line 487 of file types.hpp.

template<typename T>
void gl3::VertexBuffer< T >::addVertices ( const std::vector< T > &  verts)
inline

Add vertices to a buffer.

Definition at line 493 of file types.hpp.

template<typename T>
ConstIterator gl3::VertexBuffer< T >::begin ( ) const
inline

Definition at line 481 of file types.hpp.

template<typename T>
virtual void gl3::VertexBuffer< T >::clear ( )
inlinevirtual

Clears the data stored in the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 475 of file types.hpp.

template<typename T>
virtual size_t gl3::VertexBuffer< T >::count ( ) const
inlinevirtual

Gets the number of vertices contained in the buffer.

Implements gl3::IVertexBuffer.

Definition at line 476 of file types.hpp.

template<typename T>
ConstIterator gl3::VertexBuffer< T >::end ( ) const
inline

Definition at line 482 of file types.hpp.

template<typename T>
virtual const void* gl3::VertexBuffer< T >::getData ( ) const
inlinevirtual

Implements gl3::IVertexBuffer.

Definition at line 484 of file types.hpp.

template<typename T>
virtual GLenum gl3::VertexBuffer< T >::getShape ( ) const
inlinevirtual

Gets the primitive type contained by the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 478 of file types.hpp.

template<typename T>
virtual size_t gl3::VertexBuffer< T >::getStride ( ) const
inlinevirtual

Gets the stride between vertices.

Implements gl3::IVertexBuffer.

Definition at line 479 of file types.hpp.


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