IMeshBatch

namespace marengine

Enums

enum EBatchType

Values:

enumerator NONE
enumerator MESH_STATIC_COLOR
enumerator MESH_STATIC_TEX2D
class IMeshBatch : public FRenderResource

Subclassed by FMeshBatch

Public Functions

void reset() = 0
const FVertexArray &getVertices() const = 0
const FIndicesArray &getIndices() const = 0
const FTransformsArray &getTransforms() const = 0
void updateVertices(const Entity &entity) = 0
void updateIndices(const Entity &entity) = 0
void updateTransform(const Entity &entity) = 0
bool shouldBeBatched(const Entity &entity) const = 0
bool canBeBatched(const Entity &entity) const = 0
void submitToBatch(const Entity &entity) = 0
void passVBO(int32 index) = 0
void passIBO(int32 index) = 0
void passTransformSSBO(int32 index) = 0
int32 getVBO() const = 0
int32 getIBO() const = 0
int32 getTransformSSBO() const = 0
void passMeshStorage(FMeshStorage *pMeshStorage) = 0
void passMaterialStorage(FMaterialStorage *pMaterialStorage) = 0
EBatchType getType() const = 0
class IMeshBatchFactory : public FRenderResourceFactory

Subclassed by FMeshBatchFactory

Public Functions

FMeshBatchStaticColor *emplaceStaticColor() = 0
FMeshBatchStaticTex2D *emplaceStaticTex2D() = 0
class IMeshBatchStorage : public IRenderResourceStorage

Subclassed by FMeshBatchStorage

Public Functions

FMeshBatchStorageStaticColor *getStorageStaticColor() const = 0
FMeshBatchStorageStaticTex2D *getStorageStaticTex2D() const = 0