![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
#include <duckcpp/core/engine/IDynamicMeshBuffer.hpp>
Public Member Functions | |
virtual IVertexBuffer & | getVertexBuffer () const =0 |
virtual IIndexBuffer & | getIndexBuffer () const =0 |
virtual void | setVertexBuffer (IVertexBuffer *vertexBuffer)=0 |
virtual void | setIndexBuffer (IIndexBuffer *indexBuffer)=0 |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Vertex () const override |
get the current hardware mapping hint | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const override |
get the current hardware mapping hint | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) override |
set the hardware mapping hint, for driver | |
virtual void | setDirty (E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) override |
flags the mesh as changed, reloads hardware buffers | |
virtual dcpp::uint32_kt | getChangedID_Vertex () const override |
Get the currently used ID for identification of changes. | |
virtual dcpp::uint32_kt | getChangedID_Index () const override |
Get the currently used ID for identification of changes. | |
virtual dcpp::video::E_VERTEX_TYPE | getVertexType () const override |
Get type of vertex data which is stored in this meshbuffer. | |
virtual const void * | getVertices () const override |
Get access to vertex data. The data is an array of vertices. | |
virtual void * | getVertices () override |
Get access to vertex data. The data is an array of vertices. | |
virtual dcpp::uint32_kt | getVertexCount () const override |
Get amount of vertices in meshbuffer. | |
virtual dcpp::video::E_INDEX_TYPE | getIndexType () const override |
Get type of index data which is stored in this meshbuffer. | |
virtual const dcpp::uint16_kt * | getIndices () const override |
Get access to indices. | |
virtual dcpp::uint16_kt * | getIndices () override |
Get access to indices. | |
virtual dcpp::uint32_kt | getIndexCount () const override |
Get amount of indices in this meshbuffer. | |
virtual const dcpp::nub::vector3df & | getPosition (dcpp::uint32_kt i) const override |
returns position of vertex i | |
virtual dcpp::nub::vector3df & | getPosition (dcpp::uint32_kt i) override |
returns position of vertex i | |
virtual const dcpp::nub::vector2df & | getTCoords (dcpp::uint32_kt i) const override |
returns texture coords of vertex i | |
virtual dcpp::nub::vector2df & | getTCoords (dcpp::uint32_kt i) override |
returns texture coords of vertex i | |
virtual const dcpp::nub::vector3df & | getNormal (dcpp::uint32_kt i) const override |
returns normal of vertex i | |
virtual dcpp::nub::vector3df & | getNormal (dcpp::uint32_kt i) override |
returns normal of vertex i | |
virtual dcpp::video::SColor & | getColor (dcpp::uint32_kt i) override |
returns color of vertex i | |
virtual const dcpp::video::SColor & | getColor (dcpp::uint32_kt i) const override |
returns color of vertex i | |
![]() | |
virtual dcpp::video::SMaterial & | getMaterial ()=0 |
Get the material of this meshbuffer. | |
virtual const dcpp::video::SMaterial & | getMaterial () const =0 |
Get the material of this meshbuffer. | |
virtual const dcpp::nub::aabbox3df & | getBoundingBox () const =0 |
Get the axis aligned bounding box of this meshbuffer. | |
virtual void | setBoundingBox (const dcpp::nub::aabbox3df &box)=0 |
Set axis aligned bounding box. | |
virtual void | recalculateBoundingBox ()=0 |
Recalculates the bounding box. Should be called if the mesh changed. | |
virtual void | append (const void *const vertices, dcpp::uint32_kt numVertices, const dcpp::uint16_kt *const indices, dcpp::uint32_kt numIndices)=0 |
Append the vertices and indices to the current buffer. | |
virtual void | append (const IMeshBuffer *const other)=0 |
virtual void | setPrimitiveType (E_PRIMITIVE_TYPE type)=0 |
Describe what kind of primitive geometry is used by the meshbuffer. | |
virtual E_PRIMITIVE_TYPE | getPrimitiveType () const =0 |
Get the kind of primitive geometry which is used by the meshbuffer. | |
virtual dcpp::uint32_kt | getPrimitiveCount () const |
Calculate how many geometric primitives are used by this meshbuffer. | |
virtual EMESH_BUFFER_TYPE | getType () const |
Returns type of the class implementing the IMeshBuffer. | |
virtual IMeshBuffer * | createClone (int cloneFlags=ECF_VERTICES|ECF_INDICES) const =0 |
Create a new object with a copy of the meshbuffer. | |
![]() | |
IReferenceCounted () | |
Constructor. | |
virtual | ~IReferenceCounted () |
Destructor. | |
void | grab () const |
Grabs the object. Increments the reference counter by one. | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. | |
dcpp::int32_kt | getReferenceCount () const |
Get the reference count. | |
const dcpp::char_kt * | getDebugName () const |
Returns the debug name of the object. | |
Additional Inherited Members | |
![]() | |
enum | ECloneFlags { ECF_VERTICES = 1 , ECF_INDICES = 2 } |
Bitflags with options for cloning. More... | |
![]() | |
void | setDebugName (const dcpp::char_kt *newName) |
Sets the debug name of the object. | |
a dynamic meshBuffer
|
inlineoverridevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns color of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns color of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
get the current hardware mapping hint
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
get the current hardware mapping hint
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get amount of indices in this meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get type of index data which is stored in this meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
returns normal of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns normal of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns position of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns position of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns texture coords of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns texture coords of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get amount of vertices in meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get type of vertex data which is stored in this meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get access to vertex data. The data is an array of vertices.
Which vertex type is used can be determined by getVertexType().
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get access to vertex data. The data is an array of vertices.
Which vertex type is used can be determined by getVertexType().
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
flags the mesh as changed, reloads hardware buffers
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
set the hardware mapping hint, for driver
Implements dcpp::scene::IMeshBuffer.