DXFileData.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1999 DXGuide. All Rights Reserved.
- // File: DXFileData.h
- #ifndef _DXFILEDATA__H
- #define _DXFILEDATA__H
- #include <dxfile.h>
- class CD3DFileFrame;
- class CD3DFileMesh;
- class CD3DXFile;
- class CDXFileData
- {
- friend class CD3DXFile;
- protected:
- CDXFileData(void);
- virtual ~CDXFileData();
- public:
- bool Create(LPDIRECTXFILEOBJECT lpDirectXFileObject);
- bool Create(LPDIRECTXFILEDATAREFERENCE lpDirectXFileDataReference);
- bool Create(LPDIRECTXFILEENUMOBJECT lpDirectXFileEnumObject);
- public:
- bool ParseFrame(CD3DFileFrame* pParentFrame,
- CD3DXFile* pD3DXFile);
- bool ParseMaterial(CD3DFileMesh* pMesh);
- bool ParseMeshMaterialList(CD3DFileMesh* pMesh);
- bool ParseMesh(CD3DFileFrame* pParentFrame,
- CD3DXFile* pD3DXFile);
- public:
- HRESULT GetId(const LPGUID pGuid);
- HRESULT GetName(LPSTR pstrNameBuf, LPDWORD pdwBufLen);
- HRESULT GetName(CString& strName);
- HRESULT GetData(LPCSTR szMember, DWORD* pcbSize,
- void** ppvData);
- HRESULT GetNextObject(LPDIRECTXFILEOBJECT* ppChildObj);
- HRESULT GetType(const GUID** ppguid);
- protected:
- LPDIRECTXFILEDATA m_lpDXFileData;
- public:
- #ifdef _DEBUG
- static ULONG m_ulDXFileDataCounter;
- #endif // _DEBUG
- };
- #endif // _DXFILEDATA__H