Inheritance Graph
graph BT
MeshVertexData
click MeshVertexData "classRendering_1_1MeshVertexData"
Description
VertexData-Class. Part of the Mesh implementation containing all vertex specific data of a mesh:
-
VertexDescription : Data format of the vertices.
-
The local storage for the vertex data (If the data is uploaded to the graphics card, the local copy may be freed.)
-
The vertex buffer id, if the data has been uploaded to graphics memory.
-
A bounding box enclosing all vertices.
Public Functions
Documentation
function
Rendering::MeshVertexData::MeshVertexData
Defined in Rendering/Mesh/MeshVertexData.h:50
function
Rendering::MeshVertexData::MeshVertexData
Copy all data fromother
.
Note: If the other data is only available in the graphics card memory, this may only be called from within the gl-thread.
Defined in Rendering/Mesh/MeshVertexData.h:54
function
Rendering::MeshVertexData::MeshVertexData
Defined in Rendering/Mesh/MeshVertexData.h:55
function
Rendering::MeshVertexData::~MeshVertexData
Defined in Rendering/Mesh/MeshVertexData.h:57
function
Rendering::MeshVertexData::operator=
Defined in Rendering/Mesh/MeshVertexData.h:59
function
Rendering::MeshVertexData::operator=
Defined in Rendering/Mesh/MeshVertexData.h:60
function
Rendering::MeshVertexData::getVertexDescription
Defined in Rendering/Mesh/MeshVertexData.h:62
function
Rendering::MeshVertexData::getVertexCount
Defined in Rendering/Mesh/MeshVertexData.h:63
function
Rendering::MeshVertexData::empty
Defined in Rendering/Mesh/MeshVertexData.h:64
function
Rendering::MeshVertexData::swap
Defined in Rendering/Mesh/MeshVertexData.h:65
function
Rendering::MeshVertexData::allocate
Set the local vertex data. The old data is freed.
Note: Sets dataChanged.
Defined in Rendering/Mesh/MeshVertexData.h:70
function
Rendering::MeshVertexData::releaseLocalData
Defined in Rendering/Mesh/MeshVertexData.h:71
function
Rendering::MeshVertexData::markAsChanged
Defined in Rendering/Mesh/MeshVertexData.h:72
function
Rendering::MeshVertexData::hasChanged
Defined in Rendering/Mesh/MeshVertexData.h:73
function
Rendering::MeshVertexData::hasLocalData
Defined in Rendering/Mesh/MeshVertexData.h:74
function
Rendering::MeshVertexData::data
|
|
|
|
const uint8_t * data( |
) const |
Defined in Rendering/Mesh/MeshVertexData.h:75
function
Rendering::MeshVertexData::data
Defined in Rendering/Mesh/MeshVertexData.h:76
function
Rendering::MeshVertexData::dataSize
Defined in Rendering/Mesh/MeshVertexData.h:77
function
Rendering::MeshVertexData::operator[]
|
|
|
|
|
|
const uint8_t * operator[]( |
uint32_t |
index ) const |
Defined in Rendering/Mesh/MeshVertexData.h:78
function
Rendering::MeshVertexData::operator[]
Defined in Rendering/Mesh/MeshVertexData.h:79
function
Rendering::MeshVertexData::updateBoundingBox
Defined in Rendering/Mesh/MeshVertexData.h:82
function
Rendering::MeshVertexData::getBoundingBox
Defined in Rendering/Mesh/MeshVertexData.h:83
function
Rendering::MeshVertexData::_setBoundingBox
Set a new bounding box.
Note: This function should not be used normally. It is needed in special situations when there is no vertex data but the bounding box is known.
Parameters
- box
- New bounding box.
Defined in Rendering/Mesh/MeshVertexData.h:90
function
Rendering::MeshVertexData::isUploaded
Defined in Rendering/Mesh/MeshVertexData.h:94
function
Rendering::MeshVertexData::bind
(internal)
Defined in Rendering/Mesh/MeshVertexData.h:97
function
Rendering::MeshVertexData::unbind
(internal)
Defined in Rendering/Mesh/MeshVertexData.h:99
function
Rendering::MeshVertexData::upload
Call* upload() *with default usage hint.
Defined in Rendering/Mesh/MeshVertexData.h:102
function
Rendering::MeshVertexData::upload
|
|
|
|
|
|
bool upload( |
uint32_t |
usageHint ) |
(internal) Create or update a VBO if hasChanged is set to true. hasChanged is set to false.
Defined in Rendering/Mesh/MeshVertexData.h:105
function
Rendering::MeshVertexData::download
(internal)
Defined in Rendering/Mesh/MeshVertexData.h:107
function
Rendering::MeshVertexData::downloadTo
|
|
|
|
|
|
void downloadTo( |
std::vector< uint8_t > & |
destination ) const |
Defined in Rendering/Mesh/MeshVertexData.h:108
function
Rendering::MeshVertexData::removeGlBuffer
(internal)
Defined in Rendering/Mesh/MeshVertexData.h:110
function
Rendering::MeshVertexData::drawArray
(internal) Draw the vertices using the VBO or a VertexArray. Used by MeshDataStrategy::doDisplay(..) if the mesh does not use indices.
Defined in Rendering/Mesh/MeshVertexData.h:114
function
Rendering::MeshVertexData::_swapBufferObject
Swap the internal BufferObject .
Note: The local data is not changed!
Note: the size of the new buffer must be equal to that of the old one.
Note: Use only if you know what you are doing!
Defined in Rendering/Mesh/MeshVertexData.h:120
function
Rendering::MeshVertexData::_getBufferObject
get the internal BufferObject .
Note: Use only if you know what you are doing!
Defined in Rendering/Mesh/MeshVertexData.h:124