arsa
2.7
|
Implementation of the IMeshBuffer interface with shared vertex list. More...
#include <SSharedMeshBuffer.h>
Public Member Functions | |
SSharedMeshBuffer () | |
constructor More... | |
SSharedMeshBuffer (core::array< video::S3DVertex > *vertices) | |
constructor More... | |
virtual const video::SMaterial & | getMaterial () const _IRR_OVERRIDE_ |
returns the material of this meshbuffer More... | |
virtual video::SMaterial & | getMaterial () _IRR_OVERRIDE_ |
returns the material of this meshbuffer More... | |
virtual const void * | getVertices () const _IRR_OVERRIDE_ |
returns pointer to vertices More... | |
virtual void * | getVertices () _IRR_OVERRIDE_ |
returns pointer to vertices More... | |
virtual u32 | getVertexCount () const _IRR_OVERRIDE_ |
returns amount of vertices More... | |
virtual const u16 * | getIndices () const _IRR_OVERRIDE_ |
returns pointer to indices More... | |
virtual u16 * | getIndices () _IRR_OVERRIDE_ |
returns pointer to indices More... | |
virtual u32 | getIndexCount () const _IRR_OVERRIDE_ |
returns amount of indices More... | |
virtual video::E_INDEX_TYPE | getIndexType () const _IRR_OVERRIDE_ |
Get type of index data which is stored in this meshbuffer. More... | |
virtual const core::aabbox3d< f32 > & | getBoundingBox () const _IRR_OVERRIDE_ |
returns an axis aligned bounding box More... | |
virtual void | setBoundingBox (const core::aabbox3df &box) _IRR_OVERRIDE_ |
set user axis aligned bounding box More... | |
virtual video::E_VERTEX_TYPE | getVertexType () const _IRR_OVERRIDE_ |
returns which type of vertex data is stored. More... | |
virtual void | recalculateBoundingBox () _IRR_OVERRIDE_ |
recalculates the bounding box. should be called if the mesh changed. More... | |
virtual const core::vector3df & | getPosition (u32 i) const _IRR_OVERRIDE_ |
returns position of vertex i More... | |
virtual core::vector3df & | getPosition (u32 i) _IRR_OVERRIDE_ |
returns position of vertex i More... | |
virtual const core::vector3df & | getNormal (u32 i) const _IRR_OVERRIDE_ |
returns normal of vertex i More... | |
virtual core::vector3df & | getNormal (u32 i) _IRR_OVERRIDE_ |
returns normal of vertex i More... | |
virtual const core::vector2df & | getTCoords (u32 i) const _IRR_OVERRIDE_ |
returns texture coord of vertex i More... | |
virtual core::vector2df & | getTCoords (u32 i) _IRR_OVERRIDE_ |
returns texture coord of vertex i More... | |
virtual void | append (const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices) _IRR_OVERRIDE_ |
append the vertices and indices to the current buffer More... | |
virtual void | append (const IMeshBuffer *const other) _IRR_OVERRIDE_ |
append the meshbuffer to the current buffer More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Vertex () const _IRR_OVERRIDE_ |
get the current hardware mapping hint More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const _IRR_OVERRIDE_ |
get the current hardware mapping hint More... | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
set the hardware mapping hint, for driver More... | |
virtual void | setPrimitiveType (E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ |
Describe what kind of primitive geometry is used by the meshbuffer. More... | |
virtual E_PRIMITIVE_TYPE | getPrimitiveType () const _IRR_OVERRIDE_ |
Get the kind of primitive geometry which is used by the meshbuffer. More... | |
virtual void | setDirty (E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
flags the mesh as changed, reloads hardware buffers More... | |
virtual u32 | getChangedID_Vertex () const _IRR_OVERRIDE_ |
Get the currently used ID for identification of changes. More... | |
virtual u32 | getChangedID_Index () const _IRR_OVERRIDE_ |
Get the currently used ID for identification of changes. More... | |
Public Member Functions inherited from irr::scene::IMeshBuffer | |
virtual u32 | getPrimitiveCount () const |
Calculate how many geometric primitives are used by this meshbuffer. More... | |
Public Member Functions inherited from irr::IReferenceCounted | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
Public Attributes | |
video::SMaterial | Material |
Material of this meshBuffer. More... | |
core::array< video::S3DVertex > * | Vertices |
Shared Array of vertices. More... | |
core::array< u16 > | Indices |
Array of indices. More... | |
u32 | ChangedID_Vertex |
ID used for hardware buffer management. More... | |
u32 | ChangedID_Index |
ID used for hardware buffer management. More... | |
core::aabbox3df | BoundingBox |
Bounding box. More... | |
E_HARDWARE_MAPPING | MappingHintVertex |
hardware mapping hint More... | |
E_HARDWARE_MAPPING | MappingHintIndex |
E_PRIMITIVE_TYPE | PrimitiveType |
Primitive type used for rendering (triangles, lines, ...) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
Implementation of the IMeshBuffer interface with shared vertex list.
Definition at line 16 of file SSharedMeshBuffer.h.
|
inline |
constructor
Definition at line 19 of file SSharedMeshBuffer.h.
|
inline |
constructor
Definition at line 31 of file SSharedMeshBuffer.h.
|
inlinevirtual |
append the vertices and indices to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 175 of file SSharedMeshBuffer.h.
|
inlinevirtual |
append the meshbuffer to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 177 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns an axis aligned bounding box
Implements irr::scene::IMeshBuffer.
Definition at line 102 of file SSharedMeshBuffer.h.
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
Definition at line 227 of file SSharedMeshBuffer.h.
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
Definition at line 223 of file SSharedMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 186 of file SSharedMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 180 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns amount of indices
Implements irr::scene::IMeshBuffer.
Definition at line 90 of file SSharedMeshBuffer.h.
|
inlinevirtual |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 96 of file SSharedMeshBuffer.h.
returns pointer to indices
Implements irr::scene::IMeshBuffer.
Definition at line 78 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns pointer to indices
Implements irr::scene::IMeshBuffer.
Definition at line 84 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns the material of this meshbuffer
Implements irr::scene::IMeshBuffer.
Definition at line 39 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns the material of this meshbuffer
Implements irr::scene::IMeshBuffer.
Definition at line 45 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 147 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 154 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 133 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 140 of file SSharedMeshBuffer.h.
|
inlinevirtual |
Get the kind of primitive geometry which is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 207 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 161 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 168 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns amount of vertices
Implements irr::scene::IMeshBuffer.
Definition at line 69 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns which type of vertex data is stored.
Implements irr::scene::IMeshBuffer.
Definition at line 114 of file SSharedMeshBuffer.h.
returns pointer to vertices
Implements irr::scene::IMeshBuffer.
Definition at line 51 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns pointer to vertices
Implements irr::scene::IMeshBuffer.
Definition at line 60 of file SSharedMeshBuffer.h.
|
inlinevirtual |
recalculates the bounding box. should be called if the mesh changed.
Implements irr::scene::IMeshBuffer.
Definition at line 120 of file SSharedMeshBuffer.h.
|
inlinevirtual |
set user axis aligned bounding box
Implements irr::scene::IMeshBuffer.
Definition at line 108 of file SSharedMeshBuffer.h.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 213 of file SSharedMeshBuffer.h.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 192 of file SSharedMeshBuffer.h.
|
inlinevirtual |
Describe what kind of primitive geometry is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 201 of file SSharedMeshBuffer.h.
core::aabbox3df irr::scene::SSharedMeshBuffer::BoundingBox |
Bounding box.
Definition at line 245 of file SSharedMeshBuffer.h.
u32 irr::scene::SSharedMeshBuffer::ChangedID_Index |
ID used for hardware buffer management.
Definition at line 242 of file SSharedMeshBuffer.h.
u32 irr::scene::SSharedMeshBuffer::ChangedID_Vertex |
ID used for hardware buffer management.
Definition at line 239 of file SSharedMeshBuffer.h.
core::array<u16> irr::scene::SSharedMeshBuffer::Indices |
Array of indices.
Definition at line 236 of file SSharedMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::SSharedMeshBuffer::MappingHintIndex |
Definition at line 249 of file SSharedMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::SSharedMeshBuffer::MappingHintVertex |
hardware mapping hint
Definition at line 248 of file SSharedMeshBuffer.h.
video::SMaterial irr::scene::SSharedMeshBuffer::Material |
Material of this meshBuffer.
Definition at line 230 of file SSharedMeshBuffer.h.
E_PRIMITIVE_TYPE irr::scene::SSharedMeshBuffer::PrimitiveType |
Primitive type used for rendering (triangles, lines, ...)
Definition at line 252 of file SSharedMeshBuffer.h.
core::array<video::S3DVertex>* irr::scene::SSharedMeshBuffer::Vertices |
Shared Array of vertices.
Definition at line 233 of file SSharedMeshBuffer.h.