Added SkinningManager

Former-commit-id: ca3648dc16f5b1654cb8e3f5480d04f7fd22a3bc
This commit is contained in:
Lynix
2014-06-21 16:23:38 +02:00
parent 774df28d87
commit 6c1852299d
4 changed files with 286 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
// Copyright (C) 2014 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_SKINNINGMANAGER_HPP
#define NAZARA_SKINNINGMANAGER_HPP
#include <Nazara/Prerequesites.hpp>
class NzSkeleton;
class NzSkeletalMesh;
class NzVertexBuffer;
class NAZARA_API NzSkinningManager
{
friend class NzGraphics;
public:
using SkinFunction = void (*)(const NzSkeletalMesh* mesh, const NzSkeleton* skeleton, NzVertexBuffer* buffer);
NzSkinningManager() = delete;
~NzSkinningManager() = delete;
static NzVertexBuffer* GetBuffer(const NzSkeletalMesh* mesh, const NzSkeleton* skeleton);
static void Skin();
private:
static bool Initialize();
static void Uninitialize();
static SkinFunction s_skinFunc;
};
#endif // NAZARA_SKINNINGMANAGER_HPP