home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 12 / Example 12.4 / skybox.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-30  |  420 b   |  23 lines

  1. #ifndef RTS_SKYBOX
  2. #define RTS_SKYBOX
  3.  
  4. #include <windows.h>
  5. #include <d3dx9.h>
  6. #include <vector>
  7. #include "debug.h"
  8.  
  9. class SKYBOX
  10. {
  11.     public:
  12.         SKYBOX(IDirect3DDevice9 *Dev, char fileName[], float size);
  13.         ~SKYBOX();
  14.         void Render(D3DXVECTOR3 cameraPos);
  15.  
  16.     private:
  17.         IDirect3DDevice9 *m_pDevice;
  18.         std::vector<IDirect3DTexture9*> m_textures;
  19.         ID3DXMesh *m_pMesh;
  20.         D3DMATERIAL9 m_white;
  21. };
  22.  
  23. #endif