MetaImGUI 1.0.0
ImGui Application Template for C++20
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1/*
2 MetaImGUI
3 Copyright (C) 2026 A P Nicholson
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19#include "Application.h"
20#include "Logger.h"
21
22int main() {
24
25 LOG_INFO("Initializing MetaImGUI...");
26
27 if (!app.Initialize()) {
28 LOG_ERROR("Failed to initialize application!");
29 return -1;
30 }
31
32 LOG_INFO("Running MetaImGUI...");
33 app.Run();
34
35 LOG_INFO("Shutting down...");
36 app.Shutdown();
37
38 return 0;
39}
#define LOG_INFO(...)
Definition Logger.h:218
#define LOG_ERROR(...)
Definition Logger.h:220
Main application class that orchestrates the application lifecycle.
Definition Application.h:69
void Shutdown()
Shutdown the application and cleanup resources.
bool Initialize()
Initialize the application and all subsystems.
void Run()
Run the main application loop.
int main()
Definition main.cpp:22