PhantomEngine/Platform/Empty/DefaultApplication.cpp
// One cycle of the main loop
One cycle of the main loop
One cycle of the main loop
void DefaultApplication::Tick()
{
	glfwPollEvents();
	glfwSwapBuffers(m_Window);
	GLenum error = glGetError();
	if (error != GL_NO_ERROR)
		std::cout << "OpenGL Error: " << error << std::endl;
}
void DefaultApplication :: Tick ( ) { glfwPollEvents ( ) ; glfwSwapBuffers ( m_Window ) ; GLenum error = glGetError ( ) ; if ( error != GL_NO_ERROR ) std :: cout << " " << error << std :: endl ; }
One cycle of the main loop
One cycle of the main loop