Berserk
Public Member Functions | Friends | List of all members
SubMesh Class Referencefinal

Separate sufficient entity inside mesh object. More...

#include <Mesh.hpp>

Inheritance diagram for SubMesh:
Inheritance graph
[legend]
Collaboration diagram for SubMesh:
Collaboration graph
[legend]

Public Member Functions

BRK_API SubMesh ()=default
 
BRK_API ~SubMesh () override=default
 
BRK_API const StringNameGetName () const
 
BRK_API const Ref< RHIIndexBuffer > & GetIndexBuffer () const
 
BRK_API RHIPrimitivesType GetPrimitivesType () const
 
BRK_API RHIIndexType GetIndexType () const
 
BRK_API const AabbfGetAabb () const
 
BRK_API uint32 GetVerticesCount () const
 
BRK_API uint32 GetBaseVertex () const
 
BRK_API uint32 GetIndicesCount () const
 
BRK_API uint32 GetMaterialIndex () const
 
BRK_API bool IsIndexed () const
 
- Public Member Functions inherited from RefCnt
virtual ~RefCnt ()
 
bool IsUnique () const
 
std::int32_t GetRefs () const
 
std::int32_t AddRef () const
 
std::int32_t RelRef () const
 

Friends

class Mesh
 

Additional Inherited Members

- Protected Member Functions inherited from RefCnt
virtual void Destroy () const
 

Detailed Description

Separate sufficient entity inside mesh object.

Constructor & Destructor Documentation

◆ SubMesh()

BRK_API SubMesh::SubMesh ( )
default

◆ ~SubMesh()

BRK_API SubMesh::~SubMesh ( )
overridedefault

Member Function Documentation

◆ GetAabb()

BRK_API const Aabbf& SubMesh::GetAabb ( ) const
inline
Returns
Bounding box of sub-mesh

◆ GetBaseVertex()

BRK_API uint32 SubMesh::GetBaseVertex ( ) const
inline
Returns
Base vertex to draw [for vertex/index sub-mesh]

◆ GetIndexBuffer()

BRK_API const Ref<RHIIndexBuffer>& SubMesh::GetIndexBuffer ( ) const
inline
Returns
Index buffer of the sub-mesh

◆ GetIndexType()

BRK_API RHIIndexType SubMesh::GetIndexType ( ) const
inline
Returns
Type of indices if present

◆ GetIndicesCount()

BRK_API uint32 SubMesh::GetIndicesCount ( ) const
inline
Returns
Indices to draw [for index sub-mesh]

◆ GetMaterialIndex()

BRK_API uint32 SubMesh::GetMaterialIndex ( ) const
inline
Returns
Index of the material in the mesh

◆ GetName()

BRK_API const StringName& SubMesh::GetName ( ) const
inline
Returns
Name of the sub-mesh

◆ GetPrimitivesType()

BRK_API RHIPrimitivesType SubMesh::GetPrimitivesType ( ) const
inline
Returns
Type of primitives

◆ GetVerticesCount()

BRK_API uint32 SubMesh::GetVerticesCount ( ) const
inline
Returns
Number of vertices to draw [for vertex sub-mesh]

◆ IsIndexed()

BRK_API bool SubMesh::IsIndexed ( ) const
inline
Returns
True if sub-mesh is indexed and uses index buffer for rendering

Friends And Related Function Documentation

◆ Mesh

friend class Mesh
friend

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