19 static std::shared_ptr<Fling::Model>
Create(
Guid t_ID);
41 bool CmdRender(
const VkCommandBuffer& t_CmdBuf)
const;
std::vector< UINT32 > m_Indices
Definition: Model.h:46
~Model()
Definition: Model.cpp:21
Buffer * m_IndexBuffer
Definition: Model.h:49
Base class that represents a loaded resource in the engine.
Definition: Resource.h:11
std::vector< Vertex > m_Verts
Definition: Model.h:45
void LoadModel()
Load this model from Tiny Obj loader.
Definition: Model.cpp:28
FORCEINLINE Buffer * GetVertexBuffer() const
Definition: Model.h:29
Model(Guid t_ID)
Construct a new model object.
Definition: Model.cpp:15
static VkIndexType GetIndexType()
Definition: Model.h:38
A model represents a 3D model (.obj files for now) with vertices and indecies.
Definition: Model.h:15
FORCEINLINE const std::vector< Vertex > & GetVerts() const
Definition: Model.h:32
entt::hashed_string Guid
Definition: FlingTypes.h:21
FORCEINLINE Buffer * GetIndexBuffer() const
Definition: Model.h:30
FORCEINLINE const std::vector< UINT32 > & GetIndices() const
Definition: Model.h:33
bool CmdRender(const VkCommandBuffer &t_CmdBuf) const
Definition: Model.cpp:92
FORCEINLINE UINT32 GetVertexCount() const
Definition: Model.h:36
FORCEINLINE UINT32 GetIndexCount() const
Definition: Model.h:35
A Buffer represents a Vulkan buffer with a size, buffer pointer, and buffer memory.
Definition: Buffer.h:11
uint32_t UINT32
Definition: FlingTypes.h:10
Buffer * m_VertexBuffer
Definition: Model.h:48
static std::shared_ptr< Fling::Model > Create(Guid t_ID)
Definition: Model.cpp:10