class
MeshBase
Inherits:
Resource
Base class all mesh implementations derive from.
Meshes hold geometry information, normally in the form of one or several index or vertex buffers. Different mesh implementations might choose to manage those buffers differently.
Public
Constructors
MeshBase
Constructs a new mesh with no sub-meshes.
- vertexCount
- Number of vertices in the mesh.
- indexCount
- Number of indices in the mesh.
- drawOp
- Determines how should the provided indices be interpreted by the pipeline. Default option is triangles, where three indices represent a single triangle.
MeshBase
Constructs a new mesh with one or multiple sub-meshes. (When using just one sub-mesh it is equivalent to using the other overload).
- vertexCount
- Number of vertices in the mesh.
- indexCount
- Number of indices in the mesh.
- subMeshes
- Defines how are indices separated into sub-meshes, and how are those sub-meshes rendered.
Methods
~MeshBase
virtual ~MeshBase() noexcept
GetProperties
Returns properties that contain information about the mesh.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
Protected
Methods
CreateRenderProxySyncPacket
Creates a data packet that will be used for syncing the core object with it's render proxy.
Caller must free the retrieved packet using the provided allocator when done using it.
Fields
mProperties
MeshProperties mProperties
Private
Constructors
MeshBase
MeshBase()
*********************************************************************