#define jetonCNT 128
/* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| */
void NoidModifyJeton(int jetonID,int jetonPTR,float x, float y,float z);
int NoidCreateJeton(int jetonPTR, float x, float y, float z);
void NoidKillJeton(int jetonID);
/* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| */
struct {
	sdlSurface *peteux;
	float x,y,z;
} sprite;
struct sprite jeton[jetonCNT];
struct sprite jeutonne[jetonCNT];
/* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| */
void NoidKillJeton(int jetonID)
{
	jeton[jetonID].peteux = NULL;
	jeton[jetonID].x = 0;
	jeton[jetonID].y = 0;
	jeton[jetonID].z = 0;
}

int NoidCreateJeton(int jetonPTR, float x, float y, float z)
{
	int jetonID = 0;
	int cntr;
	for (cntr = 1; cntr <= jetonCNT; cntr = cntr+1) 
	{
		if (jeton[cntr].peteux == NULL)
		{
			jetonID = cntr;
		}
	}
	if (jetonID == 0)
	{
		return 0;
	}
	jeton[jetonID].peteux = jetonPTR;
	jeton[jetonID].x = x; 
	jeton[jetonID].y = y; 
	jeton[jetonID].z = z; 
	return (jetonID);
}

void NoidModifyJeton(int jetonID,int jetonPTR,float x, float y,float z)
{
	if (jetonPTR != 0) 
	{
		jeton[jetonID].peteux = jetonPTR;
	}
	jeton[jetonID].x = x;
	jeton[jetonID].y = y;
	jeton[jetonID].z = z;
}
/* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| */

void NoidCallbackGraphic(void)
{

}

void NoidInitGraphic(void)
{

}
