Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::SkinningManager Class Reference

Graphics class that represents the management of skinning. More...

Public Types

using SkinFunction = void(*)(const SkeletalMesh *mesh, const Skeleton *skeleton, VertexBuffer *buffer)
 

Static Public Member Functions

static VertexBuffer * GetBuffer (const SkeletalMesh *mesh, const Skeleton *skeleton)
 Gets the vertex buffer from a skeletal mesh with its skeleton. More...
 
static void Skin ()
 Skins the skeletal mesh.
 

Friends

class Graphics
 

Detailed Description

Graphics class that represents the management of skinning.

Member Function Documentation

◆ GetBuffer()

VertexBuffer * Nz::SkinningManager::GetBuffer ( const SkeletalMesh *  mesh,
const Skeleton *  skeleton 
)
static

Gets the vertex buffer from a skeletal mesh with its skeleton.

Returns
A pointer to the vertex buffer newly created
Parameters
meshSkeletal mesh to get vertex buffer from
skeletonSkeleton to consider for getting data
Remarks
Produces a NazaraError with NAZARA_GRAPHICS_SAFE defined if mesh is invalid
Produces a NazaraError with NAZARA_GRAPHICS_SAFE defined if skeleton is invalid

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