34 #ifndef MESH_VERTEXBUFFERLEAF_H
35 #define MESH_VERTEXBUFFERLEAF_H
38 #include "vertexBufferBase.h"
48 : _globalData( data ), _vertexStart( 0 ),
49 _indexStart( 0 ), _indexLength( 0 ) {}
53 virtual Index getNumberOfVertices()
const {
return _indexLength; }
56 virtual void toStream( std::ostream& os );
59 virtual void setupTree(
VertexData& data,
const Index start,
60 const Index length,
const Axis axis,
63 virtual const BoundingSphere& updateBoundingSphere();
64 virtual void updateRange();
77 ShortIndex _vertexLength;
85 #endif // MESH_VERTEXBUFFERLEAF_H
Holds the final kd-tree data, sorted and reindexed.
co::Object to distribute a model, holds a VertexBufferBase node.