The Joe Engine
Joe's engine programming playground
JoeEngine::MeshComponent Class Reference

The Mesh Component class. More...

#include <MeshComponent.h>

Public Member Functions

 MeshComponent ()
 Default constructor. More...
 
 MeshComponent (int h, JE_MESH_BUFFER_TYPE t)
 Constructor. More...
 
 MeshComponent (int v, int i, JE_MESH_BUFFER_TYPE t)
 Constructor. More...
 
 ~MeshComponent ()
 Destructor (default). More...
 
int GetVertexHandle () const
 Vertex handle Getter. More...
 
int GetIndexHandle () const
 Index handle Getter. More...
 

Detailed Description

The Mesh Component class.

Contains the necessary mesh info to be attached to a particular entity. These handles are used to access mesh data managed by the MeshBufferManager class.

See also
JEMeshComponentManager, JEMeshBufferManager, JEVulkanRenderer

Constructor & Destructor Documentation

◆ MeshComponent() [1/3]

JoeEngine::MeshComponent::MeshComponent ( )
inline

Default constructor.

Constructs components with invalid vertex/index buffer handles and triangle type.

◆ MeshComponent() [2/3]

JoeEngine::MeshComponent::MeshComponent ( int  h,
JE_MESH_BUFFER_TYPE  t 
)
inline

Constructor.

Constructs component with specified vertex buffer handle and type. The index buffer will have the same value as the vertex buffer.

◆ MeshComponent() [3/3]

JoeEngine::MeshComponent::MeshComponent ( int  v,
int  i,
JE_MESH_BUFFER_TYPE  t 
)
inline

Constructor.

Constructs component with specified vertex / index buffer handles and type.

◆ ~MeshComponent()

JoeEngine::MeshComponent::~MeshComponent ( )
inline

Destructor (default).

Member Function Documentation

◆ GetIndexHandle()

int JoeEngine::MeshComponent::GetIndexHandle ( ) const
inline

Index handle Getter.

Returns the component's index buffer handle.

◆ GetVertexHandle()

int JoeEngine::MeshComponent::GetVertexHandle ( ) const
inline

Vertex handle Getter.

Returns the component's vertex buffer handle.


The documentation for this class was generated from the following file: