project2D/Bullet.cpp
void Bullet::Draw(Renderer2D* renderer2D)
{
	// Set the color.
	renderer2D->setRenderColour(1, 1, 1, 1);

	// Draw/Render the bullet.
	renderer2D->drawCircle(GetPosition().x, GetPosition().y, rad);

	// Change color back to make sure only this object is yellow.
	renderer2D->setRenderColour(1, 1, 1, 1);
}
//--------------------------------------------------------------------------------------
// Draw: A virtual function from entity to render (or "draw") objects to the screen.
//
// Param:
//		renderer2D: a pointer to Renderer2D for rendering objects to screen.
//--------------------------------------------------------------------------------------
A virtual function from entity to render (or "draw") objects to the screen.
Param:
renderer2D: a pointer to Renderer2D for rendering objects to screen.
A virtual function from entity to render ( or " draw " ) objects to the screen . Param : renderer2D : a pointer to Renderer2D for rendering objects to screen .
void Bullet::Draw(Renderer2D* renderer2D)
{
	renderer2D->setRenderColour(1, 1, 1, 1);
	renderer2D->drawCircle(GetPosition().x, GetPosition().y, rad);
	renderer2D->setRenderColour(1, 1, 1, 1);
}
void Bullet :: Draw ( Renderer2D * renderer2D ) { renderer2D -> setRenderColour ( 1 , 1 , 1 , 1 ) ; renderer2D -> drawCircle ( GetPosition ( ) . x , GetPosition ( ) . y , rad ) ; renderer2D -> setRenderColour ( 1 , 1 , 1 , 1 ) ; }
Draw: A virtual function from entity to render (or "draw") objects to the screen.
Draw : A virtual function from entity to render ( or " draw " ) objects to the screen .
// Set the color. // Draw/Render the bullet. // Change color back to make sure only this object is yellow.