www.pudn.com > sxdl.zip > tunnel.h
#if !defined Tunnel_Included
#define Tunnel_Included
#include "sxdl.h"
class CTunnel :
public CCustomRenderer
{
public:
CTunnel ( int Rings , int Segments , int Tex1 , int Tex2 , int Tex3 , Color color = 0xFFFFFFFF , int ShaderId = 0 ) ;
virtual ~CTunnel(void);
// make the positions public so that we can orient the space ship
// and other objects with that
Vector4 * Positions ;
bool IsSpeedingUp ;
protected :
HRESULT OnSetVertexShaderConstants ( LPDIRECT3DDEVICE9 Device , CEntity * Entity ) ;
private :
int Rings ;
int Segments ;
int Vertices ; // = ( Rings + 1 ) * ( Segments + 1 ) ;
int Indices ; // = 2 * Rings * ( Segments + 1 ) ;
Color color ;
HRESULT OnPopulateBuffers ( void * Vertices , void * Indices ) ;
HRESULT OnRender ( LPDIRECT3DDEVICE9 Device , CEntity * Entity ) ;
} ;
#endif