home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example1 / Shadow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.0 KB  |  38 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. #ifndef __SHADOW_H__
  12. #define __SHADOW_H__
  13.  
  14. #include <D3DX8.h>
  15. #include "D3DApp.h"
  16. #include "D3DUtil.h"
  17. #include "D3DFile.h"
  18. #include "D3DFont.h"
  19. #include "DXUtil.h"
  20.  
  21. //-----------------------------------------------------------------------------
  22. // Name: struct ShadowVolume
  23. // Desc: A shadow volume object
  24. //-----------------------------------------------------------------------------
  25. class ShadowVolume
  26. {
  27.     D3DXVECTOR3 m_pVertices[32000]; // Vertex data for rendering shadow volume
  28.     DWORD       m_dwNumVertices;
  29.  
  30. public:
  31.     VOID    Reset() { m_dwNumVertices = 0L; }
  32.     HRESULT BuildFromMesh( LPD3DXMESH pObject, D3DXVECTOR3 vLight );
  33.     HRESULT Render( LPDIRECT3DDEVICE8 pd3dDevice );
  34. };
  35.  
  36.  
  37. #endif
  38.