-
-
Notifications
You must be signed in to change notification settings - Fork 5
Main.cpp
Madman10K edited this page Jun 9, 2024
·
5 revisions
The entry point main.cpp
file is the entry point to your application. It's automatically generated by the
UVKBuildTool under the Generated
folder. It looks like this:
// This is an autogenerated file, touching it is not recommended
#include <Framework.hpp>
#include "../Source/Instance.hpp"
#include <Global.hpp>
#include <Renderer.hpp>
int main(int argc, char** argv)
{
UIMGUI_START(true);
PRJNAME::Instance instance{};
instance.argc = argc;
instance.argv = argv;
instance.arguments.resize(argc);
for (int i = 0; i < argc; i++)
instance.arguments[i] = argv[i];
UImGui::Utility::getGlobal().instance = &instance;
UImGui::RendererInternal renderer;
renderer.start();
renderer.stop();
}
First it calls the startup macro, then initialises the instance, fills it up with the CLI arguments, sets the instance to the global class then starts the renderer.
This project is supported by all the people who joined our discord server and became beta testers. If you want to join the discord you can click here.
- Home
- Beginner content
- Install guide
- Creating and using the UI components
- The Instance
- The Init Info struct
- Textures
- Logging
- Unicode support
- Additional features
- Client-side bar
- Custom type definitions
- Memory management
- C API development
- Config files and Folders
- Interfaces
- Internal Event safety
- Customising the build system
- Modules system
- Collaborating with others
- Advanced content
- Developer and contributor resources
- Misc