Core/Entity.cpp
Vector2 Entity::GetWorldPosition(const Vector2 &position)
	{
		Vector2 returnPos;

		Graphics::PushMatrix();
		Graphics::IdentityMatrix();

		MatrixChain();

		Graphics::Translate(position);

		returnPos = Graphics::GetMatrixPosition();

		Graphics::PopMatrix();

		return returnPos;
	}
/// TODO: write our own matrix functions to replace this stuff
write our own matrix functions to replace this stuff
write our own matrix functions to replace this stuff
Vector2 Entity::GetWorldPosition(const Vector2 &position)
	{
		Vector2 returnPos;
		Graphics::PushMatrix();
		Graphics::IdentityMatrix();
		MatrixChain();
		Graphics::Translate(position);
		returnPos = Graphics::GetMatrixPosition();
		Graphics::PopMatrix();
		return returnPos;
	}
Vector2 Entity :: GetWorldPosition ( const Vector2 & position ) { Vector2 returnPos ; Graphics :: PushMatrix ( ) ; Graphics :: IdentityMatrix ( ) ; MatrixChain ( ) ; Graphics :: Translate ( position ) ; returnPos = Graphics :: GetMatrixPosition ( ) ; Graphics :: PopMatrix ( ) ; return returnPos ; }
TODO: write our own matrix functions to replace this stuff
TODO : write our own matrix functions to replace this stuff