/* -----------------------------------------------------------------;
 * $source   : c:/ $
 * $revision : 1.0 $
 * $author   : root@null.co.za $
 * $date     : 2004/12/18 15:03:00 $
 * $desc     : $
 * $log      : $
 *
 * -----------------------------------------------------------------;
 */

#if !defined(__E_D3D__)
#define	     __E_D3D__

//------------------------------------------------------------------;
//
//------------------------------------------------------------------;

struct c_d3d {

   public :

                          c_d3d         ();
      virtual            ~c_d3d         ();
      int                 m_d3d_init    ( void );

   // protected :

      LPDIRECT3D9                  l_d3d;
      LPDIRECT3DDEVICE9            l_d3d_device;
      LPDIRECT3DTEXTURE9           l_aniso_lookup;
      LPDIRECT3DVERTEXBUFFER9      l_vertex_buffer;
      LPDIRECT3DINDEXBUFFER9       l_index_buffer;
      LPDIRECT3DTEXTURE9           l_shade_texture;
      LPDIRECT3DTEXTURE9           l_edge_texture;   
      D3DXATTRIBUTERANGE          *l_attributes;
      unsigned long                l_num_sections;

      LPDIRECT3DVERTEXDECLARATION9 l_vertex_declare;
      LPDIRECT3DVERTEXSHADER9      l_vertex_shader;

      D3DXMATRIX                   l_mat_world;
      D3DXMATRIX                   l_mat_view;
      D3DXMATRIX                   l_mat_proj;

      float                        l_spin_x;
      float                        l_spin_y;

};

#endif	/* !defined(__E_D3D__) */
