FMeshBatch¶
-
namespace
marengine -
class
FMeshBatch: public IMeshBatch¶ Subclassed by FMeshBatchStatic
Public Functions
-
void
reset() override¶
-
const FVertexArray &
getVertices() const final¶
-
const FIndicesArray &
getIndices() const final¶
-
const FTransformsArray &
getTransforms() const final¶
-
void
passVBO(int32 index) final¶
-
void
passIBO(int32 index) final¶
-
void
passTransformSSBO(int32 index) final¶
-
int32
getVBO() const final¶
-
int32
getIBO() const final¶
-
int32
getTransformSSBO() const final¶
-
void
passMeshStorage(FMeshStorage *pMeshStorage) final¶
-
void
passMaterialStorage(FMaterialStorage *pMaterialStorage) final¶
Protected Attributes
-
FVertexArray
p_vertices¶
-
FIndicesArray
p_indices¶
-
FTransformsArray
p_transforms¶
-
FMeshStorage *
p_pMeshStorage= {nullptr}¶
-
FMaterialStorage *
p_pMaterialStorage= {nullptr}¶
-
int32
p_vbo= {-1}¶
-
int32
p_ibo= {-1}¶
-
int32
p_transformSSBO= {-1}¶
-
void
-
class
FMeshBatchFactory: public IMeshBatchFactory¶ Public Functions
-
FMeshBatchStaticColor *
emplaceStaticColor() final¶
-
FMeshBatchStaticTex2D *
emplaceStaticTex2D() final¶
-
template<typename
TMeshBatchStorage>
FMeshBatchStatic *emplaceStatic(TMeshBatchStorage *pMeshBatchStorage)¶
-
FMeshBatchStorage *
getStorage() const¶
-
void
passMeshStorage(FMeshStorage *pMeshStorage)¶
-
void
passMaterialStorage(FMaterialStorage *pMaterialStorage)¶
Private Members
-
FMeshBatchStorage
m_storage¶
-
FMeshStorage *
m_pMeshStorage= {nullptr}¶
-
FMaterialStorage *
m_pMaterialStorage= {nullptr}¶
-
FMeshBatchStaticColor *
-
class
FMeshBatchStatic: public FMeshBatch¶ Subclassed by FMeshBatchStaticColor, FMeshBatchStaticTex2D
Public Functions
-
void
reset() override¶
Protected Functions
-
void
submitRenderable(CRenderable &cRenderable)¶
-
void
submitVertices(CRenderable &cRenderable, const FVertexArray &vertices)¶
-
void
submitIndices(CRenderable &cRenderable, const FIndicesArray &indices)¶
-
void
submitTransform(const CTransform &transformComponent)¶
-
void
-
class
FMeshBatchStaticColor: public FMeshBatchStatic¶ Public Functions
-
void
reset() override¶
-
const FColorsArray &
getColors() const¶
-
int32
getColorSSBO() const¶
-
void
passColorSSBO(int32 id)¶
-
EBatchType
getType() const final¶
Private Functions
-
void
submitColor(const maths::vec4 &color)¶
-
void
-
class
FMeshBatchStaticTex2D: public FMeshBatchStatic¶ Public Functions
-
void
reset() override¶
-
EBatchType
getType() const final¶
-
const std::vector<int32> &
getTextureIndexes() const¶
Private Functions
-
void
submitTexture(FMaterialTex2D *pTexture2D)¶
Private Members
-
std::vector<int32>
m_textureIndexes¶
-
void
-
class
FMeshBatchStorage: public IMeshBatchStorage¶ Public Functions
-
FMeshBatchStorageStaticColor *
getStorageStaticColor() const final¶
-
FMeshBatchStorageStaticTex2D *
getStorageStaticTex2D() const final¶
-
FMeshBatch *
retrieve(const CRenderable &cRenderable) const¶
-
void
reset() final¶
Private Members
-
FMeshBatchStorageStaticColor
m_storageStaticColor¶
-
FMeshBatchStorageStaticTex2D
m_storageStaticTex2D¶
Friends
- friend class FMeshBatchFactory
-
FMeshBatchStorageStaticColor *
-
class
FMeshBatchStorageStaticColor¶ Public Functions
-
FMeshBatchStaticColor *
get(int32 index) const¶
-
uint32
getCount() const¶
-
bool
isEmpty() const¶
-
auto
getArray() -> decltype(&m_meshBatches) const¶
Private Members
-
std::vector<FMeshBatchStaticColor>
m_meshBatches¶
-
FMeshBatchStaticColor *
-
class
FMeshBatchStorageStaticTex2D¶ Public Functions
-
FMeshBatchStaticTex2D *
get(int32 index) const¶
-
uint32
getCount() const¶
-
bool
isEmpty() const¶
-
auto
getArray() -> decltype(&m_meshBatches) const¶
Private Members
-
std::vector<FMeshBatchStaticTex2D>
m_meshBatches¶
-
FMeshBatchStaticTex2D *
-
class