LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
LibCarna::base::VertexBuffer< VertexType > Class Template Reference

Specializes VertexBufferBase for particular VertexType. More...

#include <VertexBuffer.hpp>

+ Inheritance diagram for LibCarna::base::VertexBuffer< VertexType >:
+ Collaboration diagram for LibCarna::base::VertexBuffer< VertexType >:

Public Types

typedef VertexType Vertex
 Holds the vertex type maintained by this vertex buffer object.
 

Public Member Functions

void copy (const Vertex *verticesPtr, const std::size_t verticesCount)
 Copies verticesCount vertices referenced by verticesPtr to the maintained vertex buffer object.
 
- Public Member Functions inherited from LibCarna::base::VertexBufferBase
 VertexBufferBase ()
 Creates GL_ARRAY_BUFFER object.
 
- Public Member Functions inherited from LibCarna::base::BaseBuffer
virtual ~BaseBuffer ()
 Deletes the maintained OpenGL buffer object.
 
std::size_t size () const
 Tells the previously set size of the maintained buffer object.
 
void bind () const
 Invokes glBindBuffer to bind the maintained buffer object to target.
 
bool isValid () const
 Tells whether the buffer object was marked as valid.
 

Additional Inherited Members

- Public Attributes inherited from LibCarna::base::BaseBuffer
const unsigned int target
 Holds where the maintained buffer object is to be bound to by glBindBuffer.
 
const unsigned int id
 Holds the ID of the maintained OpenGL buffer object.
 
- Protected Member Functions inherited from LibCarna::base::VertexBufferBase
void copy (const void *bufferPtr, std::size_t bufferSize, std::size_t verticesCount)
 Copies verticesCount vertices referenced by bufferPtr to the maintained vertex buffer object.
 
- Protected Member Functions inherited from LibCarna::base::BaseBuffer
 BaseBuffer (unsigned int target)
 Acquires new OpenGL buffer object.
 
void setSize (std::size_t size)
 Sets the size of the maintained buffer object.
 
- Protected Attributes inherited from LibCarna::base::BaseBuffer
bool valid
 Flag that indicates whether the maintained OpenGL buffer object is valid.
 

Detailed Description

template<typename VertexType>
class LibCarna::base::VertexBuffer< VertexType >

Specializes VertexBufferBase for particular VertexType.

Author
Leonid Kostrykin

Definition at line 77 of file VertexBuffer.hpp.

Member Typedef Documentation

◆ Vertex

Holds the vertex type maintained by this vertex buffer object.

Definition at line 85 of file VertexBuffer.hpp.

Member Function Documentation

◆ copy()

template<typename VertexType >
void LibCarna::base::VertexBuffer< VertexType >::copy ( const Vertex verticesPtr,
const std::size_t  verticesCount 
)

Copies verticesCount vertices referenced by verticesPtr to the maintained vertex buffer object.

Definition at line 97 of file VertexBuffer.hpp.


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