home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 4 / Example 4.11 / object.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-29  |  433 b   |  26 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <vector>
  5. #include "debug.h"
  6. #include "mesh.h"
  7.  
  8. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  9. void UnloadObjectResources();
  10.  
  11. #define OBJ_TREE 0
  12. #define OBJ_STONE 1
  13.  
  14. class OBJECT{
  15.     public:
  16.         OBJECT();
  17.         OBJECT(int t, D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca);
  18.         void Render();
  19.  
  20.     private:
  21.         MESHINSTANCE m_meshInstance;
  22.         int m_type;
  23. };
  24.  
  25.  
  26. #endif