project2D/Player.cpp
//--------------------------------------------------------------------------------------
// 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 Player::Draw(Renderer2D* renderer2D)
{
	renderer2D->setCameraPos(GlobalTrasform[2][0] - 640, GlobalTrasform[2][1] - 360);
	renderer2D->begin();
	Entity::Draw(renderer2D);
}
void Player :: Draw ( Renderer2D * renderer2D ) { renderer2D -> setCameraPos ( GlobalTrasform [ 2 ] [ 0 ] - 640 , GlobalTrasform [ 2 ] [ 1 ] - 360 ) ; renderer2D -> begin ( ) ; Entity :: Draw ( renderer2D ) ; }
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 camera location // Call Enity draw.