// Energia.h: interface for the CEnergia class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ENERGIA_H__65B0EF21_A8E1_11D5_AD10_80D756C10027__INCLUDED_)
#define AFX_ENERGIA_H__65B0EF21_A8E1_11D5_AD10_80D756C10027__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Efx.h"

class CEnergia : public CEfx  
{
private:

	PDIRECT3DVERTEXBUFFER8	m_pvbSphere;
	PDIRECT3DINDEXBUFFER8	m_pibSphere;

	he3d_CVector			m_vSphere[2442];
	he3d_CVector			m_vEmiter[3];

	PDIRECT3DVERTEXBUFFER8	m_pvbRing;
	PDIRECT3DVERTEXBUFFER8	m_pvbRing2;

	he3d_CMatrix			m_mtxRings[20];

	PDIRECT3DVERTEXBUFFER8	m_pvbBars;

	PDIRECT3DVERTEXBUFFER8	m_pvbFlares;

	PDIRECT3DVERTEXBUFFER8	m_pvbGrid;
	PDIRECT3DINDEXBUFFER8	m_pibSolidGrid;

	he3d_CVector			m_vGrid[400];

	FLOAT					m_fTime;

public:

	CEnergia( PDIRECT3DDEVICE8 pDevice );
	virtual ~CEnergia();

	virtual BOOL UpdateFrame( FLOAT fTime );
	virtual BOOL RenderEfx();

};

#endif // !defined(AFX_ENERGIA_H__65B0EF21_A8E1_11D5_AD10_80D756C10027__INCLUDED_)
