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::IndexedVertexBuffer< T > Class Template Reference

#include <types.hpp>

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

Public Types

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

Public Member Functions

 IndexedVertexBuffer (GLenum shape)
 
 ~IndexedVertexBuffer ()
 
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
 
const std::vector< int > & getIndices () const
 
void addVertices (const std::vector< T > &verts, const std::vector< int > &ids)
 
- 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::IndexedVertexBuffer< T >

Definition at line 506 of file types.hpp.

Member Typedef Documentation

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

Definition at line 514 of file types.hpp.

Constructor & Destructor Documentation

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

Definition at line 515 of file types.hpp.

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

Definition at line 516 of file types.hpp.

Member Function Documentation

template<typename T>
void gl3::IndexedVertexBuffer< T >::addVertices ( const std::vector< T > &  verts,
const std::vector< int > &  ids 
)
inline

Definition at line 535 of file types.hpp.

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

Definition at line 528 of file types.hpp.

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

Clears the data stored in the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 517 of file types.hpp.

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

Gets the number of vertices contained in the buffer.

Implements gl3::IVertexBuffer.

Definition at line 523 of file types.hpp.

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

Definition at line 529 of file types.hpp.

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

Implements gl3::IVertexBuffer.

Definition at line 531 of file types.hpp.

template<typename T>
const std::vector<int>& gl3::IndexedVertexBuffer< T >::getIndices ( ) const
inlinevirtual

Implements gl3::IIndexedBuffer.

Definition at line 533 of file types.hpp.

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

Gets the primitive type contained by the vertex buffer.

Implements gl3::IVertexBuffer.

Definition at line 525 of file types.hpp.

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

Gets the stride between vertices.

Implements gl3::IVertexBuffer.

Definition at line 526 of file types.hpp.


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