![]() |
Skylicht Engine
|
Implementation of the IMeshBuffer interface. More...
#include <C:/Projects/skylicht-engine/Projects/Irrlicht/Include/CMeshBuffer.h>
Public Member Functions | |
| CMeshBuffer (video::IVertexDescriptor *vertexDescriptor, video::E_INDEX_TYPE type=video::EIT_16BIT) | |
| Constructor. | |
| CMeshBuffer (const CMeshBuffer &meshBuffer) | |
| virtual | ~CMeshBuffer () |
| Destructor. | |
| virtual video::IVertexDescriptor * | getVertexDescriptor () const |
| virtual bool | setVertexDescriptor (video::IVertexDescriptor *vertexDescriptor) |
| virtual bool | addVertexBuffer (IVertexBuffer *vertexBuffer) |
| virtual IVertexBuffer * | getVertexBuffer (u32 id=0) const |
| virtual u32 | getVertexBufferCount () const |
| virtual void | removeVertexBuffer (u32 id) |
| virtual bool | setVertexBuffer (IVertexBuffer *vertexBuffer, u32 id=0) |
| virtual IIndexBuffer * | getIndexBuffer () const |
| virtual bool | setIndexBuffer (IIndexBuffer *indexBuffer) |
| virtual const video::SMaterial & | getMaterial () const |
| Get material of this meshbuffer. | |
| virtual video::SMaterial & | getMaterial () |
| Get material of this meshbuffer. | |
| virtual video::E_VERTEX_TYPE | getVertexType () const |
| virtual const core::aabbox3d< f32 > & | getBoundingBox () const |
| Get the axis aligned bounding box. | |
| virtual core::aabbox3d< f32 > & | getBoundingBox () |
| Get the axis aligned bounding box. | |
| virtual void | boundingBoxNeedsRecalculated () |
| Call this after changing the positions of any vertex. | |
| virtual void | recalculateBoundingBox () |
| Recalculate the bounding box. | |
| virtual void | append (IVertexBuffer *vertexBuffer, u32 vertexBufferID, IIndexBuffer *indexBuffer) |
| Append the vertices and indices to the current buffer. | |
| virtual void | append (IMeshBuffer *meshBuffer) |
| Append the meshbuffer to the current buffer. | |
| virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Vertex (u32 id=0) const |
| get the current hardware mapping hint | |
| virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const |
| get the current hardware mapping hint | |
| virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING pMappingHint, E_BUFFER_TYPE type=EBT_VERTEX_AND_INDEX, u32 id=0) |
| set the hardware mapping hint, for driver | |
| virtual void | setDirty (E_BUFFER_TYPE type=EBT_VERTEX_AND_INDEX, u32 id=0) |
| flags the mesh as changed, reloads hardware buffers | |
| virtual u32 | getChangedID_Vertex (u32 id=0) const |
| Get the currently used ID for identification of changes. | |
| virtual u32 | getChangedID_Index () const |
| Get the currently used ID for identification of changes. | |
| virtual core::matrix4 & | getTransformation () |
| virtual void | setUseForHardwareInstancing (bool b) |
| virtual bool | useForHardwareInstancing () |
| Public Member Functions inherited from irr::scene::IMeshBuffer | |
| IMeshBuffer (video::IVertexDescriptor *vertexDescriptor) | |
| bool | isVertexBufferCompatible () const |
| Inform if stored vertex buffers have the same vertex descriptors. | |
| u32 | getPrimitiveCount () const |
| Get primitive count. | |
| E_PRIMITIVE_TYPE | getPrimitiveType () const |
| Get primitive type. | |
| void | setPrimitiveType (E_PRIMITIVE_TYPE primitiveType) |
| Set primitive type. | |
| Public Member Functions inherited from irr::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. | |
| s32 | getReferenceCount () const |
| Get the reference count. | |
| const c8 * | getDebugName () const |
| Returns the debug name of the object. | |
Additional Inherited Members | |
| Protected Member Functions inherited from irr::IReferenceCounted | |
| void | setDebugName (const c8 *newName) |
| Sets the debug name of the object. | |
| Protected Attributes inherited from irr::scene::IMeshBuffer | |
| video::IVertexDescriptor * | VertexDescriptor |
| Vertex descriptor. | |
| bool | VertexBufferCompatible |
| core::array< scene::IVertexBuffer * > | VertexBuffer |
| Vertex buffer array. | |
| scene::IIndexBuffer * | IndexBuffer |
| Index buffer. | |
| E_PRIMITIVE_TYPE | PrimitiveType |
| video::SMaterial | Material |
| Material. | |
| bool | BoundingBoxNeedsRecalculated |
| core::aabbox3d< f32 > | BoundingBox |
| Bounding box. | |
| core::matrix4 | Transformation |
| bool | UseForHardwareInstancing |
Implementation of the IMeshBuffer interface.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Append the meshbuffer to the current buffer.
Only works for compatible types, i.e. either the same type or the main buffer is of standard type. Otherwise, behavior is undefined.
| other | Meshbuffer to be appended to this one. |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Append the vertices and indices to the current buffer.
Only works for compatible types, i.e. either the same type or the main buffer is of standard type. Otherwise, behavior is undefined.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Call this after changing the positions of any vertex.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Get the axis aligned bounding box.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Get the axis aligned bounding box.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Recalculate the bounding box.
should be called if the mesh changed.
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.
|
inlinevirtual |
Implements irr::scene::IMeshBuffer.