VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Attributes
makVrv::DtIndirectModelSubGeometry Class Reference

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
 
DtIndirectModelSubGeometryoperator= (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

DtDemyDe
 
std::string myName
 
std::vector< intmyIndices
 
std::vector
< DtIndirectBindlessVertexFormat
myVertices
 
std::vector< std::vector
< Vector2_32 > > 
myTextureCoordinates
 
VertexRange myVertexRange
 
IndexRange myIndexRange
 

Constructor & Destructor Documentation

makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry ( DtDe de)

constructor

makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry ( DtDe de,
const VertexRange vertexRange,
const IndexRange indexRange 
)

constructor

virtual makVrv::DtIndirectModelSubGeometry::~DtIndirectModelSubGeometry ( )
virtual

destructor

makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry ( const DtIndirectModelSubGeometry rhs)
delete

not allowed

makVrv::DtIndirectModelSubGeometry::DtIndirectModelSubGeometry ( )
delete

not allowed

Member Function Documentation

DtIndirectModelSubGeometry& makVrv::DtIndirectModelSubGeometry::operator= ( const DtIndirectModelSubGeometry rhs)
delete

not allowed

virtual void makVrv::DtIndirectModelSubGeometry::fillFrom ( const osg::Geometry *  srcGeometry,
const osg::Matrix &  matrix,
const DtIndirectGeometryTextures texturesForThisGeometry 
)
virtual

copy src geometry into internal buffers

virtual void makVrv::DtIndirectModelSubGeometry::copyData ( DtIndirectModelSubGeoProps subGeoSizes,
std::vector< uint8_t > &  vertexBuffer,
uint64_t  vertexBufferOffset,
std::vector< uint8_t > &  indexBuffer,
uint64_t  indexBufferOffset 
)
virtual

copy data and sizes into the provided destination

virtual int makVrv::DtIndirectModelSubGeometry::maxCoords ( void  ) const
virtual

The max texture coordinates unit/number of the texture coordinate sets.

virtual void makVrv::DtIndirectModelSubGeometry::setName ( const std::string &  name)
virtual

set the name (for debugging)

virtual const std::string& makVrv::DtIndirectModelSubGeometry::name ( void  ) const
virtual

get the name (for debugging)

virtual const std::vector<DtIndirectBindlessVertexFormat>& makVrv::DtIndirectModelSubGeometry::vertices ( void  ) const
virtual

access vertices

virtual const std::vector<int>& makVrv::DtIndirectModelSubGeometry::indices ( void  ) const
virtual

access indices

virtual const std::vector< std::vector<Vector2_32> >& makVrv::DtIndirectModelSubGeometry::textureCoordinates ( void  ) const
virtual

access texture coordinates

Member Data Documentation

DtDe& makVrv::DtIndirectModelSubGeometry::myDe
protected
std::string makVrv::DtIndirectModelSubGeometry::myName
protected
std::vector<int> makVrv::DtIndirectModelSubGeometry::myIndices
protected
std::vector<DtIndirectBindlessVertexFormat> makVrv::DtIndirectModelSubGeometry::myVertices
protected
std::vector< std::vector<Vector2_32> > makVrv::DtIndirectModelSubGeometry::myTextureCoordinates
protected
VertexRange makVrv::DtIndirectModelSubGeometry::myVertexRange
protected

The VertexRange that will be used for copy operations.

IndexRange makVrv::DtIndirectModelSubGeometry::myIndexRange
protected

The IndexRange that will be used for copy operations.


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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)