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

MeshBase(u32 vertexCount, u32 indexCount, DrawOperationType drawOp = DOT_TRIANGLE_LIST)

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

MeshBase(u32 vertexCount, u32 indexCount, const Vector<SubMesh> &subMeshes)

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

const MeshProperties &GetProperties() const

Returns properties that contain information about the mesh.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Protected

Methods

CreateRenderProxySyncPacket

RenderProxySyncPacket *CreateRenderProxySyncPacket(FrameAllocator &allocator, u32 flags) override

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()

*********************************************************************