17 #define CPU_SIDE_COMPILATION 1
18 #include <../data/shaders/indirect/DrawElementsIndirectCommand.h>
21 #include <osg/ref_ptr>
88 virtual const std::string&
name(
void)
const;
std::vector< int > myIndices
Definition: DtIndirectModelSubGeometry.h:119
virtual const BindlessPtrNV & vertexBufferBindless(void) const
bindless vertex buffer
DtIndirectModelSubGeometry()=delete
not allowed
virtual const std::string & name(void) const
get the name (for debugging)
virtual void deleteIndirectBuffers(void)
internal. delete the indirect buffers
virtual void updateBuffersIfNecessary(bool &reloaded)
finalize and make bindless
std::vector< std::vector< Vector2_32 > > myTextureCoordinates
Definition: DtIndirectModelSubGeometry.h:129
BindlessPtrNV myVertexBufferBindless
Definition: DtIndirectModelSubGeometry.h:115
DtGlBuffer * myAdditionalCoordinatesBuffer
Definition: DtIndirectModelSubGeometry.h:111
virtual bool isLoaded() const
is loaded?
virtual void setName(const std::string &name)
set the name (for debugging)
DtIndirectModelSubGeometry & operator=(const DtIndirectModelSubGeometry &rhs)=delete
not allowed
virtual ~DtIndirectModelSubGeometry()
destructor
BindlessPtrNV myIndexBufferBindless
Definition: DtIndirectModelSubGeometry.h:117
bool myBuffersUpdated
Definition: DtIndirectModelSubGeometry.h:121
virtual void createIndirectBuffers(void)
internal. create the indirect buffers
virtual const BindlessPtrNV & indexBufferBindless(void) const
bindless index buffer
virtual void releaseGLObjects(osg::State *state)
release gl objects
DtGlBuffer * myVertexAndAttributesBuffer
Definition: DtIndirectModelSubGeometry.h:109
virtual const BindlessPtrNV & additionalBufferBindless(void) const
bindless additional attributes buffer
A generic OpenGL buffer. This can be: -> a vertex buffer -> an index buffer -> a shader storage buffe...
Definition: DtGlBuffer.h:29
DtDe & myDe
Definition: DtIndirectModelSubGeometry.h:123
std::vector< DtIndirectBindlessVertexFormat > myVertices
Definition: DtIndirectModelSubGeometry.h:127
virtual int maxCoords(void) const
The max texture coordinates unit/number of the texture coordinate sets.
geometry that is part of a model. refers to one index buffer and a vertex+color+normal+uv buffer corr...
Definition: DtIndirectModelSubGeometry.h:43
Contains DLL export macros.
BindlessPtrNV myAdditionalBufferBindless
Definition: DtIndirectModelSubGeometry.h:116
virtual void fillFrom(const osg::Geometry *srcGeometry, const osg::Matrix &matrix, DtIndirectGeometryTexturesRefPtr textureForThisGeometry)
copy src geometry into internal buffers
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual void unload()
unload the model info specifically, for bindless make gl buffers non-resident and add them to the del...
Contains the DtIndirectGeometryTextures class declaration.
virtual int numVertices(void) const
The num of vertices.
virtual int numIndices(void) const
The num of indices.
std::string myName
Definition: DtIndirectModelSubGeometry.h:125
DtGlBuffer * myIndexBuffer
Definition: DtIndirectModelSubGeometry.h:113