#include "cParticle.h"
#define cParticle_Max 430   //How many points are there at most

//bool key = 0;

class cRenderClass
{
public:

	cRenderClass(const int, const int);
	~cRenderClass();

	void create(int argc, _TCHAR* argv[]); //Glut related initialization
	void loop();                           //Start event cycle

	void clear();                          //Clear color buffer

	void render();                         //Draw 2 (draws the value of the color buffer to the screen)
	void setColour(float, float, float);   //Set color
	void setPointSize(int);                //Set the size of Particle
	void drawPixel(int, int);              //Drawing 1 (color buffer assignment)

	void new_cParticle();                  //Create a particle
	void delet_cParticle(int num);         //Delete a particle
	int get_num();                         //Get count
	cParticle* get_cParticle(int num);     //Get point class pointer

	int		 m_sw, m_sh;    //Range width and height (x and y)

private:

	int		 m_point_size;  //Size of particle
	float* m_buffer;      //Color buffer
	sRGB	 m_colour;      //Color structure

	cParticle* cParticle_buff[cParticle_Max];
	int cParticle_num;                        //Point count
};