arsa  2.7
Public Member Functions | Public Attributes | List of all members
irr::scene::CMeshBuffer< T > Class Template Reference

Template implementation of the IMeshBuffer interface. More...

#include <CMeshBuffer.h>

Inheritance diagram for irr::scene::CMeshBuffer< T >:
irr::scene::IMeshBuffer irr::IReferenceCounted

Public Member Functions

 CMeshBuffer ()
 Default constructor for empty meshbuffer. More...
 
virtual const video::SMaterialgetMaterial () const _IRR_OVERRIDE_
 Get material of this meshbuffer. More...
 
virtual video::SMaterialgetMaterial () _IRR_OVERRIDE_
 Get material of this meshbuffer. More...
 
virtual const voidgetVertices () const _IRR_OVERRIDE_
 Get pointer to vertices. More...
 
virtual voidgetVertices () _IRR_OVERRIDE_
 Get pointer to vertices. More...
 
virtual u32 getVertexCount () const _IRR_OVERRIDE_
 Get number of vertices. More...
 
virtual video::E_INDEX_TYPE getIndexType () const _IRR_OVERRIDE_
 Get type of index data which is stored in this meshbuffer. More...
 
virtual const u16getIndices () const _IRR_OVERRIDE_
 Get pointer to indices. More...
 
virtual u16getIndices () _IRR_OVERRIDE_
 Get pointer to indices. More...
 
virtual u32 getIndexCount () const _IRR_OVERRIDE_
 Get number of indices. More...
 
virtual const core::aabbox3d< f32 > & getBoundingBox () const _IRR_OVERRIDE_
 Get the axis aligned bounding box. More...
 
virtual void setBoundingBox (const core::aabbox3df &box) _IRR_OVERRIDE_
 Set the axis aligned bounding box. More...
 
virtual void recalculateBoundingBox () _IRR_OVERRIDE_
 Recalculate the bounding box. More...
 
virtual video::E_VERTEX_TYPE getVertexType () const _IRR_OVERRIDE_
 Get type of vertex data stored in this buffer. More...
 
virtual const core::vector3dfgetPosition (u32 i) const _IRR_OVERRIDE_
 returns position of vertex i More...
 
virtual core::vector3dfgetPosition (u32 i) _IRR_OVERRIDE_
 returns position of vertex i More...
 
virtual const core::vector3dfgetNormal (u32 i) const _IRR_OVERRIDE_
 returns normal of vertex i More...
 
virtual core::vector3dfgetNormal (u32 i) _IRR_OVERRIDE_
 returns normal of vertex i More...
 
virtual const core::vector2dfgetTCoords (u32 i) const _IRR_OVERRIDE_
 returns texture coord of vertex i More...
 
virtual core::vector2dfgetTCoords (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 c8getDebugName () const
 Returns the debug name of the object. More...
 

Public Attributes

u32 ChangedID_Vertex
 
u32 ChangedID_Index
 
E_HARDWARE_MAPPING MappingHint_Vertex
 hardware mapping hint More...
 
E_HARDWARE_MAPPING MappingHint_Index
 
video::SMaterial Material
 Material for this meshbuffer. More...
 
core::array< T > Vertices
 Vertices of this buffer. More...
 
core::array< u16Indices
 Indices into the vertices of this buffer. More...
 
core::aabbox3d< f32BoundingBox
 Bounding box of this meshbuffer. More...
 
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...
 

Detailed Description

template<class T>
class irr::scene::CMeshBuffer< T >

Template implementation of the IMeshBuffer interface.

Definition at line 17 of file CMeshBuffer.h.

Constructor & Destructor Documentation

◆ CMeshBuffer()

template<class T >
irr::scene::CMeshBuffer< T >::CMeshBuffer ( )
inline

Default constructor for empty meshbuffer.

Definition at line 21 of file CMeshBuffer.h.

25  {
26  #ifdef _DEBUG
27  setDebugName("CMeshBuffer");
28  #endif
29  }
E_HARDWARE_MAPPING MappingHint_Vertex
hardware mapping hint
Definition: CMeshBuffer.h:293
Don't store on the hardware.
Explicitly set all vertices for each triangle.
E_HARDWARE_MAPPING MappingHint_Index
Definition: CMeshBuffer.h:294
void setDebugName(const c8 *newName)
Sets the debug name of the object.
E_PRIMITIVE_TYPE PrimitiveType
Primitive type used for rendering (triangles, lines, ...)
Definition: CMeshBuffer.h:305

Member Function Documentation

◆ append() [1/2]

template<class T >
virtual void irr::scene::CMeshBuffer< T >::append ( const void *const  vertices,
u32  numVertices,
const u16 *const  indices,
u32  numIndices 
)
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.

Definition at line 185 of file CMeshBuffer.h.

186  {
187  if (vertices == getVertices())
188  return;
189 
190  const u32 vertexCount = getVertexCount();
191  u32 i;
192 
193  Vertices.reallocate(vertexCount+numVertices);
194  for (i=0; i<numVertices; ++i)
195  {
196  Vertices.push_back(reinterpret_cast<const T*>(vertices)[i]);
197  BoundingBox.addInternalPoint(reinterpret_cast<const T*>(vertices)[i].Pos);
198  }
199 
200  Indices.reallocate(getIndexCount()+numIndices);
201  for (i=0; i<numIndices; ++i)
202  {
203  Indices.push_back(indices[i]+vertexCount);
204  }
205  }
void reallocate(u32 new_size, bool canShrink=true)
Reallocates the array, make it bigger or smaller.
Definition: irrArray.h:66
virtual u32 getIndexCount() const _IRR_OVERRIDE_
Get number of indices.
Definition: CMeshBuffer.h:96
core::array< u16 > Indices
Indices into the vertices of this buffer.
Definition: CMeshBuffer.h:301
GLuint GLuint GLsizei GLenum const GLvoid * indices
Definition: SDL_opengl.h:1571
void push_back(const T &element)
Adds an element at back of array.
Definition: irrArray.h:111
virtual u32 getVertexCount() const _IRR_OVERRIDE_
Get number of vertices.
Definition: CMeshBuffer.h:66
virtual const void * getVertices() const _IRR_OVERRIDE_
Get pointer to vertices.
Definition: CMeshBuffer.h:50
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
core::aabbox3d< f32 > BoundingBox
Bounding box of this meshbuffer.
Definition: CMeshBuffer.h:303
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
Definition: aabbox3d.h:74
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ append() [2/2]

template<class T >
virtual void irr::scene::CMeshBuffer< T >::append ( const IMeshBuffer *const  other)
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.

Parameters
otherMeshbuffer to be appended to this one.

Implements irr::scene::IMeshBuffer.

Definition at line 214 of file CMeshBuffer.h.

215  {
216  /*
217  if (this==other)
218  return;
219 
220  const u32 vertexCount = getVertexCount();
221  u32 i;
222 
223  Vertices.reallocate(vertexCount+other->getVertexCount());
224  for (i=0; i<other->getVertexCount(); ++i)
225  {
226  Vertices.push_back(reinterpret_cast<const T*>(other->getVertices())[i]);
227  }
228 
229  Indices.reallocate(getIndexCount()+other->getIndexCount());
230  for (i=0; i<other->getIndexCount(); ++i)
231  {
232  Indices.push_back(other->getIndices()[i]+vertexCount);
233  }
234  BoundingBox.addInternalBox(other->getBoundingBox());
235  */
236  }

◆ getBoundingBox()

template<class T >
virtual const core::aabbox3d<f32>& irr::scene::CMeshBuffer< T >::getBoundingBox ( ) const
inlinevirtual

Get the axis aligned bounding box.

Returns
Axis aligned bounding box of this buffer.

Implements irr::scene::IMeshBuffer.

Definition at line 104 of file CMeshBuffer.h.

105  {
106  return BoundingBox;
107  }
core::aabbox3d< f32 > BoundingBox
Bounding box of this meshbuffer.
Definition: CMeshBuffer.h:303

◆ getChangedID_Index()

template<class T >
virtual u32 irr::scene::CMeshBuffer< T >::getChangedID_Index ( ) const
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 287 of file CMeshBuffer.h.

287 {return ChangedID_Index;}

◆ getChangedID_Vertex()

template<class T >
virtual u32 irr::scene::CMeshBuffer< T >::getChangedID_Vertex ( ) const
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 283 of file CMeshBuffer.h.

◆ getHardwareMappingHint_Index()

template<class T >
virtual E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::getHardwareMappingHint_Index ( ) const
inlinevirtual

get the current hardware mapping hint

Implements irr::scene::IMeshBuffer.

Definition at line 246 of file CMeshBuffer.h.

247  {
248  return MappingHint_Index;
249  }
E_HARDWARE_MAPPING MappingHint_Index
Definition: CMeshBuffer.h:294

◆ getHardwareMappingHint_Vertex()

template<class T >
virtual E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::getHardwareMappingHint_Vertex ( ) const
inlinevirtual

get the current hardware mapping hint

Implements irr::scene::IMeshBuffer.

Definition at line 240 of file CMeshBuffer.h.

241  {
242  return MappingHint_Vertex;
243  }
E_HARDWARE_MAPPING MappingHint_Vertex
hardware mapping hint
Definition: CMeshBuffer.h:293

◆ getIndexCount()

template<class T >
virtual u32 irr::scene::CMeshBuffer< T >::getIndexCount ( ) const
inlinevirtual

Get number of indices.

Returns
Number of indices.

Implements irr::scene::IMeshBuffer.

Definition at line 96 of file CMeshBuffer.h.

97  {
98  return Indices.size();
99  }
core::array< u16 > Indices
Indices into the vertices of this buffer.
Definition: CMeshBuffer.h:301
u32 size() const
Get number of occupied elements of the array.
Definition: irrArray.h:364

◆ getIndexType()

template<class T >
virtual video::E_INDEX_TYPE irr::scene::CMeshBuffer< T >::getIndexType ( ) const
inlinevirtual

Get type of index data which is stored in this meshbuffer.

Returns
Index type of this buffer.

Implements irr::scene::IMeshBuffer.

Definition at line 73 of file CMeshBuffer.h.

74  {
75  return video::EIT_16BIT;
76  }

◆ getIndices() [1/2]

template<class T >
virtual const u16* irr::scene::CMeshBuffer< T >::getIndices ( ) const
inlinevirtual

Get pointer to indices.

Returns
Pointer to indices.

Implements irr::scene::IMeshBuffer.

Definition at line 80 of file CMeshBuffer.h.

81  {
82  return Indices.const_pointer();
83  }
core::array< u16 > Indices
Indices into the vertices of this buffer.
Definition: CMeshBuffer.h:301
const T * const_pointer() const
Gets a const pointer to the array.
Definition: irrArray.h:356

◆ getIndices() [2/2]

template<class T >
virtual u16* irr::scene::CMeshBuffer< T >::getIndices ( )
inlinevirtual

Get pointer to indices.

Returns
Pointer to indices.

Implements irr::scene::IMeshBuffer.

Definition at line 88 of file CMeshBuffer.h.

89  {
90  return Indices.pointer();
91  }
core::array< u16 > Indices
Indices into the vertices of this buffer.
Definition: CMeshBuffer.h:301
T * pointer()
Gets a pointer to the array.
Definition: irrArray.h:348

◆ getMaterial() [1/2]

template<class T >
virtual const video::SMaterial& irr::scene::CMeshBuffer< T >::getMaterial ( ) const
inlinevirtual

Get material of this meshbuffer.

Returns
Material of this buffer

Implements irr::scene::IMeshBuffer.

Definition at line 34 of file CMeshBuffer.h.

35  {
36  return Material;
37  }
video::SMaterial Material
Material for this meshbuffer.
Definition: CMeshBuffer.h:297

◆ getMaterial() [2/2]

template<class T >
virtual video::SMaterial& irr::scene::CMeshBuffer< T >::getMaterial ( )
inlinevirtual

Get material of this meshbuffer.

Returns
Material of this buffer

Implements irr::scene::IMeshBuffer.

Definition at line 42 of file CMeshBuffer.h.

43  {
44  return Material;
45  }
video::SMaterial Material
Material for this meshbuffer.
Definition: CMeshBuffer.h:297

◆ getNormal() [1/2]

template<class T >
virtual const core::vector3df& irr::scene::CMeshBuffer< T >::getNormal ( u32  i) const
inlinevirtual

returns normal of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 156 of file CMeshBuffer.h.

157  {
158  return Vertices[i].Normal;
159  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getNormal() [2/2]

template<class T >
virtual core::vector3df& irr::scene::CMeshBuffer< T >::getNormal ( u32  i)
inlinevirtual

returns normal of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 162 of file CMeshBuffer.h.

163  {
164  return Vertices[i].Normal;
165  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getPosition() [1/2]

template<class T >
virtual const core::vector3df& irr::scene::CMeshBuffer< T >::getPosition ( u32  i) const
inlinevirtual

returns position of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 144 of file CMeshBuffer.h.

145  {
146  return Vertices[i].Pos;
147  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getPosition() [2/2]

template<class T >
virtual core::vector3df& irr::scene::CMeshBuffer< T >::getPosition ( u32  i)
inlinevirtual

returns position of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 150 of file CMeshBuffer.h.

151  {
152  return Vertices[i].Pos;
153  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getPrimitiveType()

template<class T >
virtual E_PRIMITIVE_TYPE irr::scene::CMeshBuffer< T >::getPrimitiveType ( ) const
inlinevirtual

Get the kind of primitive geometry which is used by the meshbuffer.

Implements irr::scene::IMeshBuffer.

Definition at line 267 of file CMeshBuffer.h.

268  {
269  return PrimitiveType;
270  }
E_PRIMITIVE_TYPE PrimitiveType
Primitive type used for rendering (triangles, lines, ...)
Definition: CMeshBuffer.h:305

◆ getTCoords() [1/2]

template<class T >
virtual const core::vector2df& irr::scene::CMeshBuffer< T >::getTCoords ( u32  i) const
inlinevirtual

returns texture coord of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 168 of file CMeshBuffer.h.

169  {
170  return Vertices[i].TCoords;
171  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getTCoords() [2/2]

template<class T >
virtual core::vector2df& irr::scene::CMeshBuffer< T >::getTCoords ( u32  i)
inlinevirtual

returns texture coord of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 174 of file CMeshBuffer.h.

175  {
176  return Vertices[i].TCoords;
177  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getVertexCount()

template<class T >
virtual u32 irr::scene::CMeshBuffer< T >::getVertexCount ( ) const
inlinevirtual

Get number of vertices.

Returns
Number of vertices.

Implements irr::scene::IMeshBuffer.

Definition at line 66 of file CMeshBuffer.h.

67  {
68  return Vertices.size();
69  }
u32 size() const
Get number of occupied elements of the array.
Definition: irrArray.h:364
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getVertexType()

template<class T >
virtual video::E_VERTEX_TYPE irr::scene::CMeshBuffer< T >::getVertexType ( ) const
inlinevirtual

Get type of vertex data stored in this buffer.

Returns
Type of vertex data.

Implements irr::scene::IMeshBuffer.

Definition at line 138 of file CMeshBuffer.h.

139  {
140  return T::getType();
141  }

◆ getVertices() [1/2]

template<class T >
virtual const void* irr::scene::CMeshBuffer< T >::getVertices ( ) const
inlinevirtual

Get pointer to vertices.

Returns
Pointer to vertices.

Implements irr::scene::IMeshBuffer.

Definition at line 50 of file CMeshBuffer.h.

51  {
52  return Vertices.const_pointer();
53  }
const T * const_pointer() const
Gets a const pointer to the array.
Definition: irrArray.h:356
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ getVertices() [2/2]

template<class T >
virtual void* irr::scene::CMeshBuffer< T >::getVertices ( )
inlinevirtual

Get pointer to vertices.

Returns
Pointer to vertices.

Implements irr::scene::IMeshBuffer.

Definition at line 58 of file CMeshBuffer.h.

59  {
60  return Vertices.pointer();
61  }
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299
T * pointer()
Gets a pointer to the array.
Definition: irrArray.h:348

◆ recalculateBoundingBox()

template<class T >
virtual void irr::scene::CMeshBuffer< T >::recalculateBoundingBox ( )
inlinevirtual

Recalculate the bounding box.

should be called if the mesh changed.

Implements irr::scene::IMeshBuffer.

Definition at line 121 of file CMeshBuffer.h.

122  {
123  if (!Vertices.empty())
124  {
125  BoundingBox.reset(Vertices[0].Pos);
126  const irr::u32 vsize = Vertices.size();
127  for (u32 i=1; i<vsize; ++i)
129  }
130  else
131  BoundingBox.reset(0,0,0);
132 
133  }
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
Definition: aabbox3d.h:50
bool empty() const
Check if array is empty.
Definition: irrArray.h:381
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
u32 size() const
Get number of occupied elements of the array.
Definition: irrArray.h:364
core::aabbox3d< f32 > BoundingBox
Bounding box of this meshbuffer.
Definition: CMeshBuffer.h:303
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
Definition: aabbox3d.h:74
core::array< T > Vertices
Vertices of this buffer.
Definition: CMeshBuffer.h:299

◆ setBoundingBox()

template<class T >
virtual void irr::scene::CMeshBuffer< T >::setBoundingBox ( const core::aabbox3df box)
inlinevirtual

Set the axis aligned bounding box.

Parameters
boxNew axis aligned bounding box for this buffer. set user axis aligned bounding box

Implements irr::scene::IMeshBuffer.

Definition at line 113 of file CMeshBuffer.h.

114  {
115  BoundingBox = box;
116  }
core::aabbox3d< f32 > BoundingBox
Bounding box of this meshbuffer.
Definition: CMeshBuffer.h:303

◆ setDirty()

template<class T >
virtual void irr::scene::CMeshBuffer< T >::setDirty ( E_BUFFER_TYPE  Buffer = EBT_VERTEX_AND_INDEX)
inlinevirtual

flags the mesh as changed, reloads hardware buffers

Implements irr::scene::IMeshBuffer.

Definition at line 273 of file CMeshBuffer.h.

274  {
275  if (Buffer==EBT_VERTEX_AND_INDEX ||Buffer==EBT_VERTEX)
277  if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
278  ++ChangedID_Index;
279  }
Change the vertex mapping.
Change both vertex and index mapping to the same value.
Change the index mapping.

◆ setHardwareMappingHint()

template<class T >
virtual void irr::scene::CMeshBuffer< T >::setHardwareMappingHint ( E_HARDWARE_MAPPING  NewMappingHint,
E_BUFFER_TYPE  Buffer = EBT_VERTEX_AND_INDEX 
)
inlinevirtual

set the hardware mapping hint, for driver

Implements irr::scene::IMeshBuffer.

Definition at line 252 of file CMeshBuffer.h.

253  {
254  if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_VERTEX)
255  MappingHint_Vertex=NewMappingHint;
256  if (Buffer==EBT_VERTEX_AND_INDEX || Buffer==EBT_INDEX)
257  MappingHint_Index=NewMappingHint;
258  }
Change the vertex mapping.
E_HARDWARE_MAPPING MappingHint_Vertex
hardware mapping hint
Definition: CMeshBuffer.h:293
Change both vertex and index mapping to the same value.
E_HARDWARE_MAPPING MappingHint_Index
Definition: CMeshBuffer.h:294
Change the index mapping.

◆ setPrimitiveType()

template<class T >
virtual void irr::scene::CMeshBuffer< T >::setPrimitiveType ( E_PRIMITIVE_TYPE  type)
inlinevirtual

Describe what kind of primitive geometry is used by the meshbuffer.

Implements irr::scene::IMeshBuffer.

Definition at line 261 of file CMeshBuffer.h.

262  {
264  }
GLuint GLuint GLsizei GLenum type
Definition: SDL_opengl.h:1571
E_PRIMITIVE_TYPE PrimitiveType
Primitive type used for rendering (triangles, lines, ...)
Definition: CMeshBuffer.h:305

Member Data Documentation

◆ BoundingBox

template<class T >
core::aabbox3d<f32> irr::scene::CMeshBuffer< T >::BoundingBox

Bounding box of this meshbuffer.

Definition at line 303 of file CMeshBuffer.h.

◆ ChangedID_Index

template<class T >
u32 irr::scene::CMeshBuffer< T >::ChangedID_Index

Definition at line 290 of file CMeshBuffer.h.

◆ ChangedID_Vertex

template<class T >
u32 irr::scene::CMeshBuffer< T >::ChangedID_Vertex

Definition at line 289 of file CMeshBuffer.h.

◆ Indices

template<class T >
core::array<u16> irr::scene::CMeshBuffer< T >::Indices

Indices into the vertices of this buffer.

Definition at line 301 of file CMeshBuffer.h.

◆ MappingHint_Index

template<class T >
E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::MappingHint_Index

Definition at line 294 of file CMeshBuffer.h.

◆ MappingHint_Vertex

template<class T >
E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::MappingHint_Vertex

hardware mapping hint

Definition at line 293 of file CMeshBuffer.h.

◆ Material

template<class T >
video::SMaterial irr::scene::CMeshBuffer< T >::Material

Material for this meshbuffer.

Definition at line 297 of file CMeshBuffer.h.

◆ PrimitiveType

template<class T >
E_PRIMITIVE_TYPE irr::scene::CMeshBuffer< T >::PrimitiveType

Primitive type used for rendering (triangles, lines, ...)

Definition at line 305 of file CMeshBuffer.h.

◆ Vertices

template<class T >
core::array<T> irr::scene::CMeshBuffer< T >::Vertices

Vertices of this buffer.

Definition at line 299 of file CMeshBuffer.h.


The documentation for this class was generated from the following file: