Merge remote-tracking branch 'origin/RenderTechnique-Update'

Former-commit-id: 85e5af81ed3381af19e87c6ca0ee14e79955e563
This commit is contained in:
Lynix
2014-06-24 12:56:10 +02:00
10 changed files with 451 additions and 184 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