mlallocmeshhierarchy.h
来自「这是一个混合动画的实例代码」· C头文件 代码 · 共 47 行
H
47 行
///////////////////////////////////////////////////////////////////////////////
//
// File: mlAllocMeshHierarchy.h
//
// Author: Frank Luna (C) All Rights Reserved
//
// System: Athlon 1800+ XP, 512 DDR, Radeon 9500 Pro, Windows XP, MSVC++ 7.0
//
// Desc: Implements the ID3DXAllocateHierarchy interface.
// In order to create and destroy an animation hierarchy using the
// D3DXLoadMeshHierarchyFromX and D3DXFrameDestroy functions, we must
// implement the ID3DXAllocateHierarchy interface. In doing so we define how
// meshes and frames are created and destroyed, thereby giving us some
// flexibility in the construction and destruction process.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef __mlAllocMeshHierarchyH__
#define __mlAllocMeshHierarchyH__
#include <d3dx9.h>
class AllocMeshHierarchy : public ID3DXAllocateHierarchy
{
public:
HRESULT STDMETHODCALLTYPE CreateFrame(
THIS_ PCSTR Name,
D3DXFRAME** ppNewFrame);
HRESULT STDMETHODCALLTYPE CreateMeshContainer(
PCSTR Name,
const D3DXMESHDATA* pMeshData,
const D3DXMATERIAL* pMaterials,
const D3DXEFFECTINSTANCE* pEffectInstances,
DWORD NumMaterials,
const DWORD *pAdjacency,
ID3DXSkinInfo* pSkinInfo,
D3DXMESHCONTAINER** ppNewMeshContainer);
HRESULT STDMETHODCALLTYPE DestroyFrame(
THIS_ D3DXFRAME* pFrameToFree);
HRESULT STDMETHODCALLTYPE DestroyMeshContainer(
THIS_ D3DXMESHCONTAINER* pMeshContainerBase);
};
#endif // __mlAllocMeshHierarchyH__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?