NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::Mesh Class Reference

#include <Mesh.h>

Public Member Functions

 Mesh (const std::vector< MeshVertex > &vertices, const std::vector< std::uint32_t > &indices)
const std::shared_ptr< VertexArray > & GetVertexArray () const
const std::vector< Submesh > & GetSubmeshes () const
void SetSubmeshes (std::vector< Submesh > submeshes)
bool HasSkinning () const
void SetHasSkinning (bool value)

Static Public Member Functions

static std::shared_ptr< Mesh > CreateCube ()
static std::shared_ptr< Mesh > LoadOBJ (const std::filesystem::path &path)
static std::shared_ptr< Mesh > LoadModel (const std::filesystem::path &path)

Detailed Description

Definition at line 37 of file Mesh.h.

Constructor & Destructor Documentation

◆ Mesh()

NoJob::Mesh::Mesh ( const std::vector< MeshVertex > & vertices,
const std::vector< std::uint32_t > & indices )

Member Function Documentation

◆ CreateCube()

std::shared_ptr< Mesh > NoJob::Mesh::CreateCube ( )
static

Definition at line 167 of file Mesh.cpp.

Referenced by main().

◆ GetSubmeshes()

const std::vector< Submesh > & NoJob::Mesh::GetSubmeshes ( ) const
inline

Definition at line 52 of file Mesh.h.

◆ GetVertexArray()

const std::shared_ptr< VertexArray > & NoJob::Mesh::GetVertexArray ( ) const
inline

Definition at line 43 of file Mesh.h.

◆ HasSkinning()

bool NoJob::Mesh::HasSkinning ( ) const
inline

Definition at line 54 of file Mesh.h.

◆ LoadModel()

std::shared_ptr< Mesh > NoJob::Mesh::LoadModel ( const std::filesystem::path & path)
static

◆ LoadOBJ()

std::shared_ptr< Mesh > NoJob::Mesh::LoadOBJ ( const std::filesystem::path & path)
static

◆ SetHasSkinning()

void NoJob::Mesh::SetHasSkinning ( bool value)
inline

Definition at line 55 of file Mesh.h.

◆ SetSubmeshes()

void NoJob::Mesh::SetSubmeshes ( std::vector< Submesh > submeshes)
inline

Definition at line 53 of file Mesh.h.


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