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 ".https://madladsquad.com/Source/Instance.hpp"
#include <Global.hpp>
#include <Renderer.hpp>
int main(int argc, char** argv)
{
(true);
UIMGUI_START::Instance instance{};
PRJNAME.argc = argc;
instance.argv = argv;
instance
.arguments.resize(argc);
instancefor (int i = 0; i < argc; i++)
.arguments[i] = argv[i];
instance::Utility::getGlobal().instance = &instance;
UImGui
::RendererInternal renderer;
UImGui.start();
renderer.stop();
renderer}
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.
- Home
- Beginner content
- Advanced content
- Loading dynamic libraries at runtime
- Understanding the library layout
- Compilation mode modifiers
- Adding plugin support to your application
- Production export and deployment
- Targeting WASM
- Developer and contributor resources
- Misc