I am trying to draw numbers to the screen, I want to erase the 1 in 100 to 2 in 200 for game scoring. Here is the code I am working on.
Code :
void drawBitmapText(char *string,float x,float y,float z) 
{  
char *c;
glRasterPos3f(x, y,z);
for (c=string; *c != '\0'; c++) 
{
glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, *c);
}
}
 
void brick_collision()
{
	if(bricks[2][4]==true)
	{
	drawBitmapText("100",4.0f,2.0f,0.0f);	
	}
 
	if(bricks[2][3]==true)
	{
	drawBitmapText("200",4.0f,2.0f,0.0f);	
	}