6Application::Application(
const char *window_name,
unsigned int width,
unsigned int height,
unsigned int fullscreen_width,
unsigned int fullscreen_height,
bool resizable,
bool imgui){
24 last_time=glfwGetTime();
62 #ifdef ENABLE_PROFILING
65 Instrumentor::Get().BeginSession(
"Application",
"Application.json");
66 printf(
"Started profiling\n");
110 double current_time=glfwGetTime();
111 if(current_time-last_time>=4.0){
112 last_time=current_time;
118 #ifdef ENABLE_PROFILING
120 Instrumentor::Get().EndSession();
121 printf(
"Stopped profiling\n");
virtual void OnUpdate(const double frame_time)
virtual void OnImGuiRender()
bool m_ImGui
Enable or disable imgui.
const char * m_WindowName
float m_FixedTimeStep
Physics update time.
virtual void OnImGuiUpdate()
Application(const char *window_name, unsigned int width, unsigned int height, unsigned int fullscreen_width, unsigned int fullscreen_height, bool resizable=false, bool imgui=true)
static void ImGui_End_Frame()
void Clear(bool ambient_light=false) const
static void ImGui_Close()
static void ImGui_Theme()
static void ImGui_Start_Frame()
static void ImGui_Content()
void Render(bool post_processing=false)
int InitGlfwWindow(const char *window_name, bool resizable)
Renderer * RENDERER
The main renderer.
Input * INPUT
The input manager.