aieProject2D1/aieProject2D1App.cpp
void aieProject2D1App::update(float deltaTime) 
{







	//ImGui::ColorEdit3("clear colour", glm::value_ptr(m_v4ClearColor));

	// clear the OpenGL backbuffer in preparation for rendering
	//glClearColor(m_v4ClearColor.r, m_v4ClearColor.g, m_v4ClearColor.b, 1);





	
	// clear gizmos
	aie::Gizmos::clear();
	
	// Update scene
	m_pPhysicsScene->Update(deltaTime);
	m_pPhysicsScene->UpdateGizmos();

	// get input instance
	aie::Input* input = aie::Input::getInstance();

	// exit the application
	if (input->isKeyDown(aie::INPUT_KEY_ESCAPE))
		quit();
}
//--------------------------------------------------------------------------------------
// Update: A virtual function to update objects.
//
// Param:
//		deltaTime: Pass in deltaTime. A number that updates per second.
//--------------------------------------------------------------------------------------
A virtual function to update objects.
Param:
deltaTime: Pass in deltaTime. A number that updates per second.
A virtual function to update objects . Param : deltaTime : Pass in deltaTime . A number that updates per second .
void aieProject2D1App::update(float deltaTime) 
{
	aie::Gizmos::clear();
	m_pPhysicsScene->Update(deltaTime);
	m_pPhysicsScene->UpdateGizmos();
	aie::Input* input = aie::Input::getInstance();
	if (input->isKeyDown(aie::INPUT_KEY_ESCAPE))
		quit();
}
void aieProject2D1App :: update ( float deltaTime ) { aie :: Gizmos :: clear ( ) ; m_pPhysicsScene -> Update ( deltaTime ) ; m_pPhysicsScene -> UpdateGizmos ( ) ; aie :: Input * input = aie :: Input :: getInstance ( ) ; if ( input -> isKeyDown ( aie :: INPUT_KEY_ESCAPE ) ) quit ( ) ; }
Update: A virtual function to update objects.
Update : A virtual function to update objects .
//ImGui::ColorEdit3("clear colour", glm::value_ptr(m_v4ClearColor)); // clear the OpenGL backbuffer in preparation for rendering //glClearColor(m_v4ClearColor.r, m_v4ClearColor.g, m_v4ClearColor.b, 1); // clear gizmos // Update scene // get input instance // exit the application