Classes

GraphicsAssets/Meshes

Brief descriptions

Detailed information

SkinnedMeshLod

engine/core/modules/graphics_assets/include/graphics_assets/skinned_mesh_asset.h

struct SkinnedMeshLod

Public Members

Sbuffer *m_positionsBuffer
Sbuffer *m_normalsBuffer
Sbuffer *m_tangentsBuffer
Sbuffer *m_texcoordsBuffer
Sbuffer *m_boneWeightsBuffer
Sbuffer *m_boneIndicesBuffer
Sbuffer *m_indexBuffer
uint32_t m_indexCount
uint32_t m_vertexCount
nau::math::BBox3 m_localBBox
ReloadableAssetView::Ptr m_material

StaticMeshDescriptor

engine/core/modules/graphics_assets/include/graphics_assets/static_meshes/static_mesh.h

struct StaticMeshDescriptor

Public Members

StaticMeshAssetRef staticMeshRef

MaterialSlot

engine/core/modules/graphics_assets/include/graphics_assets/static_meshes/static_mesh.h

struct MaterialSlot

Public Members

uint32_t m_startIndex
uint32_t m_endIndex
ReloadableAssetView::Ptr m_material

StaticMeshLod

engine/core/modules/graphics_assets/include/graphics_assets/static_meshes/static_mesh.h

struct StaticMeshLod

Public Members

Sbuffer *m_positionsBuffer
Sbuffer *m_normalsBuffer
Sbuffer *m_tangentsBuffer
Sbuffer *m_texCoordsBuffer
Sbuffer *m_indexBuffer
uint32_t m_indexCount
uint32_t m_vertexCount
nau::math::BBox3 m_localBBox
eastl::vector<MaterialSlot> m_materialSlots

SkinnedMesh

engine/core/modules/graphics_assets/include/graphics_assets/skinned_mesh_asset.h

class SkinnedMesh : public virtual IRefCounted

Public Types

using Ptr = nau::Ptr<SkinnedMesh>

Public Functions

virtual ~SkinnedMesh() = default
SkinnedMesh() = default
const nau::SkinnedMeshLod &getLod(uint32_t lodInd) const
uint32_t getLodsCount() const
inline const nau::math::BSphere3 &getLod0BSphere() const

Public Static Functions

static async::Task<nau::Ptr<SkinnedMesh>> createFromMeshAccessor(IMeshAssetAccessor &meshAccessor)

Protected Attributes

nau::math::BSphere3 m_localBSphere
eastl::vector<SkinnedMeshLod> lods
eastl::vector<float> m_lodsScreenSpaceError
float cullDistance

Private Functions

NAU_CLASS_(nau::SkinnedMesh, IRefCounted)

SkinnedMeshAssetView

engine/core/modules/graphics_assets/include/graphics_assets/skinned_mesh_asset.h

class SkinnedMeshAssetView : public nau::IAssetView

Public Functions

inline nau::SkinnedMesh::Ptr getMesh()

Public Static Functions

static async::Task<nau::Ptr<SkinnedMeshAssetView>> createFromAssetAccessor(nau::Ptr<> accessor)

Private Members

nau::SkinnedMesh::Ptr m_skinnedMesh

StaticMeshAssetView

engine/core/modules/graphics_assets/include/graphics_assets/static_mesh_asset.h

class StaticMeshAssetView : public nau::IAssetView

Public Functions

Sbuffer *getPositionsBuffer() const
Sbuffer *getNormalsBuffer() const
Sbuffer *getTangentsBuffer() const
Sbuffer *getTexcoordsBuffer() const
Sbuffer *getIndexBuffer() const
unsigned getIndexCount() const
unsigned getVertexCount() const
void enumerateMeshTriangles(Functor<void(const nau::math::vec3&, const nau::math::vec3&, const nau::math::vec3&)> sink) const
inline nau::StaticMesh::Ptr getMesh()

Public Static Functions

static async::Task<nau::Ptr<StaticMeshAssetView>> createFromAssetAccessor(nau::Ptr<> accessor)

Protected Attributes

nau::StaticMesh::Ptr m_mesh

StaticMesh

engine/core/modules/graphics_assets/include/graphics_assets/static_meshes/static_mesh.h

class StaticMesh : public virtual IRefCounted

Public Types

using Ptr = nau::Ptr<StaticMesh>

Public Functions

virtual ~StaticMesh() = default
StaticMesh()
const nau::StaticMeshLod &getLod(uint32_t lodInd) const
uint32_t getLodsCount() const
inline const nau::math::BSphere3 &getLod0BSphere() const

Public Static Functions

static async::Task<nau::Ptr<StaticMesh>> createFromStaticMeshAccessor(IMeshAssetAccessor &accessor)
static bool createFromGeneratedData()

Protected Attributes

StaticMeshDescriptor m_meshDescriptor
nau::math::BSphere3 m_localBSphere
eastl::vector<StaticMeshLod> lods
eastl::vector<float> m_lodsScreenSpaceError
float cullDistance

Private Functions

NAU_CLASS_(nau::StaticMesh, IRefCounted)