aieProject2D1/aieProject2D1App.cpp
void aieProject2D1App::draw() 
{
	// wipe the screen to the background colour
	clearScreen();

	// begin drawing sprites
	m_2dRenderer->begin();

	// draw your stuff here!
	static float aspectRatio = 16 / 9.0f;
	aie::Gizmos::draw2D(glm::ortho<float>(-100, 100, -100 / aspectRatio, 100 / aspectRatio, -1.0f, 1.0f));

	// done drawing sprites
	m_2dRenderer->end();
}
//--------------------------------------------------------------------------------------
// Draw: A virtual function to render (or "draw") objects to the screen.
//--------------------------------------------------------------------------------------
A virtual function to render (or "draw") objects to the screen.
A virtual function to render ( or " draw " ) objects to the screen .
void aieProject2D1App::draw() 
{
	clearScreen();
	m_2dRenderer->begin();
	static float aspectRatio = 16 / 9.0f;
	aie::Gizmos::draw2D(glm::ortho<float>(-100, 100, -100 / aspectRatio, 100 / aspectRatio, -1.0f, 1.0f));
	m_2dRenderer->end();
}
void aieProject2D1App :: draw ( ) { clearScreen ( ) ; m_2dRenderer -> begin ( ) ; static float aspectRatio = 16 / 9.0f ; aie :: Gizmos :: draw2D ( glm :: ortho < float > ( -100 , 100 , -100 / aspectRatio , 100 / aspectRatio , -1.0f , 1.0f ) ) ; m_2dRenderer -> end ( ) ; }
Draw: A virtual function to render (or "draw") objects to the screen.
Draw : A virtual function to render ( or " draw " ) objects to the screen .
// wipe the screen to the background colour // begin drawing sprites // draw your stuff here! // done drawing sprites