![]() |
VR-Forces Developer's Guide
|
geometry that is part of a model. refers to one index buffer and a vertex+color+normal+uv buffer corresponding to the sub-geometry of a model. unlike the aggregated(old) indirect path, these sub-geometries are not aggregated into a single vertex+index buffer for the model. unlike the aggregated(old) indirect paths, the model is directly rendered with an augmented indirect command that specifies the address of the index+vertex buffer for this sub-geometry directly
Classes | |
| struct | IndexRange |
| struct | VertexRange |
Public Member Functions | |
| DtIndirectModelSubGeometry (DtDe &de) | |
| DtIndirectModelSubGeometry (DtDe &de, const VertexRange &vertexRange, const IndexRange &indexRange) | |
| virtual | ~DtIndirectModelSubGeometry () |
| DtIndirectModelSubGeometry (const DtIndirectModelSubGeometry &rhs)=delete | |
| DtIndirectModelSubGeometry & | operator= (const DtIndirectModelSubGeometry &rhs)=delete |
| DtIndirectModelSubGeometry ()=delete | |
| virtual void | fillFrom (const osg::Geometry *srcGeometry, const osg::Matrix &matrix, const DtIndirectGeometryTextures &texturesForThisGeometry) |
| virtual void | copyData (DtIndirectModelSubGeoProps &subGeoSizes, std::vector< uint8_t > &vertexBuffer, uint64_t vertexBufferOffset, std::vector< uint8_t > &indexBuffer, uint64_t indexBufferOffset) |
| virtual int | maxCoords (void) const |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name (void) const |
| virtual const std::vector < DtIndirectBindlessVertexFormat > & | vertices (void) const |
| virtual const std::vector< int > & | indices (void) const |
| virtual const std::vector < std::vector< Vector2_32 > > & | textureCoordinates (void) const |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myName |
| std::vector< int > | myIndices |
| std::vector < DtIndirectBindlessVertexFormat > | myVertices |
| std::vector< std::vector < Vector2_32 > > | myTextureCoordinates |
| VertexRange | myVertexRange |
| IndexRange | myIndexRange |
| makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry | ( | DtDe & | de | ) |
constructor
| makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry | ( | DtDe & | de, |
| const VertexRange & | vertexRange, | ||
| const IndexRange & | indexRange | ||
| ) |
constructor
|
virtual |
destructor
|
delete |
not allowed
|
delete |
not allowed
|
delete |
not allowed
|
virtual |
copy src geometry into internal buffers
|
virtual |
copy data and sizes into the provided destination
|
virtual |
The max texture coordinates unit/number of the texture coordinate sets.
|
virtual |
set the name (for debugging)
|
virtual |
get the name (for debugging)
|
virtual |
access vertices
|
virtual |
access indices
|
virtual |
access texture coordinates
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
The VertexRange that will be used for copy operations.
|
protected |
The IndexRange that will be used for copy operations.