Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cModelXLoader.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cModelXLoader_H
7 #define _INC_cModelXLoader_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cModelX.h"
13 
14 namespace Gray3D
15 {
17  {
18  // Token to read from the X file. binary or text format.
19  X_NAME = 1,
20 
21  };
22 
24  {
25  // Temporary state info for loading a model.
26  public:
27  cIUnkPtr<ID3DDevice> m_pd3dDevice; // why do i need a real device to compile/load ?
28  public:
29  cModelXLoader(const FILECHAR_t* pszSrcPath, ID3DDevice* pDev)
30  : cModelX(pszSrcPath)
31  , m_pd3dDevice(pDev)
32  {
33  }
34 
35 #ifdef USE_DXX
36  STDMETHOD(CreateMeshContainer)(THIS_
37  const char* pszName,
38  const _D3DXMESHDATA* pMeshData,
39  const _D3DXMATERIAL* pMaterials,
40  const _D3DXEFFECTINSTANCE* pEffectInstances,
41  DWORD dwNumMaterials,
42  const DWORD* pAdjacency,
43  ID3DXSkinInfo* /* pSkinInfo*/,
44  _D3DXMESHCONTAINER** ppNewMeshCont);
45 
46  HRESULT GRAYCALL Compiler(const FILECHAR_t* pszSrcPath, const FILECHAR_t* pszDestPath, ID3DDevice* pDev, bool bText);
47 #endif // USE_DXX
48  };
49 
50 };
51 
52 #endif // _INC_cModelXLoader_H
#define GRAY3D_LINK
Definition: Gray3D.h:15
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define THIS_
Definition: UseDX.h:345
Definition: cModelXLoader.h:24
cModelXLoader(const FILECHAR_t *pszSrcPath, ID3DDevice *pDev)
Definition: cModelXLoader.h:29
cIUnkPtr< ID3DDevice > m_pd3dDevice
Definition: cModelXLoader.h:27
Definition: cModelX.h:236
Definition: cIUnkPtr.h:32
Definition: IUnknown.h:68
Definition: Gray3D.cpp:12
X_TOK_TYPE
Definition: cModelXLoader.h:17
@ X_NAME
Definition: cModelXLoader.h:19
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
Definition: UseDXX.h:67
Definition: UseDXX.h:53
Definition: UseDXX.h:92
Definition: UseDXX.h:80