![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Implementation of the IMeshBuffer interface with shared vertex list. More...
#include <duckcpp/core/engine/SSharedMeshBuffer.hpp>


Public Member Functions | |
| SSharedMeshBuffer () | |
| constructor | |
| SSharedMeshBuffer (dcpp::nub::array< dcpp::video::S3DVertex > *vertices) | |
| constructor | |
| virtual const dcpp::video::SMaterial & | getMaterial () const override |
| returns the material of this meshbuffer | |
| virtual dcpp::video::SMaterial & | getMaterial () override |
| returns the material of this meshbuffer | |
| virtual const void * | getVertices () const override |
| returns pointer to vertices | |
| virtual void * | getVertices () override |
| returns pointer to vertices | |
| virtual dcpp::uint32_kt | getVertexCount () const override |
| returns amount of vertices | |
| virtual const dcpp::uint16_kt * | getIndices () const override |
| returns pointer to indices | |
| virtual dcpp::uint16_kt * | getIndices () override |
| returns pointer to indices | |
| virtual dcpp::uint32_kt | getIndexCount () const override |
| returns amount of indices | |
| virtual dcpp::video::E_INDEX_TYPE | getIndexType () const override |
| Get type of index data which is stored in this meshbuffer. | |
| virtual const dcpp::nub::aabbox3df & | getBoundingBox () const override |
| returns an axis aligned bounding box | |
| virtual void | setBoundingBox (const dcpp::nub::aabbox3df &box) override |
| set user axis aligned bounding box | |
| virtual dcpp::video::E_VERTEX_TYPE | getVertexType () const override |
| returns which type of vertex data is stored. | |
| virtual void | recalculateBoundingBox () override |
| recalculates the bounding box. should be called if the mesh changed. | |
| 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::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 const dcpp::nub::vector2df & | getTCoords (dcpp::uint32_kt i) const override |
| returns texture coord of vertex i | |
| virtual dcpp::nub::vector2df & | getTCoords (dcpp::uint32_kt i) override |
| returns texture coord 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 void | append (const void *const vertices, dcpp::uint32_kt numVertices, const dcpp::uint16_kt *const indices, dcpp::uint32_kt numIndices) override |
| append the vertices and indices to the current buffer | |
| virtual void | append (const IMeshBuffer *const other) override |
| append the meshbuffer to the current buffer | |
| 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 | setPrimitiveType (E_PRIMITIVE_TYPE type) override |
| Describe what kind of primitive geometry is used by the meshbuffer. | |
| virtual E_PRIMITIVE_TYPE | getPrimitiveType () const override |
| Get the kind of primitive geometry which is used by the meshbuffer. | |
| 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 EMESH_BUFFER_TYPE | getType () const override |
| Returns type of the class implementing the IMeshBuffer. | |
| virtual IMeshBuffer * | createClone (int cloneFlags) const override |
| Create copy of the meshbuffer. | |
Public Member Functions inherited from dcpp::scene::IMeshBuffer | |
| virtual dcpp::uint32_kt | getPrimitiveCount () const |
| Calculate how many geometric primitives are used by this meshbuffer. | |
Public Member Functions inherited from dcpp::IReferenceCounted | |
| 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. | |
Public Attributes | |
| dcpp::video::SMaterial | Material |
| Material of this meshBuffer. | |
| dcpp::nub::array< dcpp::video::S3DVertex > * | Vertices |
| Shared Array of vertices. | |
| dcpp::nub::array< dcpp::uint16_kt > | Indices |
| Array of indices. | |
| dcpp::uint32_kt | ChangedID_Vertex |
| ID used for hardware buffer management. | |
| dcpp::uint32_kt | ChangedID_Index |
| ID used for hardware buffer management. | |
| dcpp::nub::aabbox3df | BoundingBox |
| Bounding box. | |
| E_HARDWARE_MAPPING | MappingHintVertex |
| hardware mapping hint | |
| E_HARDWARE_MAPPING | MappingHintIndex |
| E_PRIMITIVE_TYPE | PrimitiveType |
| Primitive type used for rendering (triangles, lines, ...) | |
Additional Inherited Members | |
Public Types inherited from dcpp::scene::IMeshBuffer | |
| enum | ECloneFlags { ECF_VERTICES = 1 , ECF_INDICES = 2 } |
| Bitflags with options for cloning. More... | |
Protected Member Functions inherited from dcpp::IReferenceCounted | |
| void | setDebugName (const dcpp::char_kt *newName) |
| Sets the debug name of the object. | |
Implementation of the IMeshBuffer interface with shared vertex list.
|
inlineoverridevirtual |
append the meshbuffer to the current buffer
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
append the vertices and indices to the current buffer
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Create copy of the meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns an axis aligned bounding box
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 |
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 |
returns amount of indices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Get type of index data which is stored in this meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns pointer to indices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns pointer to indices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns the material of this meshbuffer
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns the material of this meshbuffer
Implements dcpp::scene::IMeshBuffer.
|
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 |
Get the kind of primitive geometry which is used by the meshbuffer.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns texture coord of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns texture coord of vertex i
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
Returns type of the class implementing the IMeshBuffer.
Reimplemented from dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns amount of vertices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns which type of vertex data is stored.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns pointer to vertices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
returns pointer to vertices
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
recalculates the bounding box. should be called if the mesh changed.
Implements dcpp::scene::IMeshBuffer.
|
inlineoverridevirtual |
set user axis aligned bounding box
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.
|
inlineoverridevirtual |
Describe what kind of primitive geometry is used by the meshbuffer.
Implements dcpp::scene::IMeshBuffer.