Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
EntryPoint.h
Go to the documentation of this file.
1#pragma once
2#include <iostream>
3#include <Engine.h>
4#include <Logger.h>
5
10extern "C"{
14 extern int run(int argc, char** argv);
15}
16
30int main(int argc, char** argv) {
31 std::cout << "Hubris Engine has started." << std::endl;
33 return run(argc, argv);
34}
35
40#define main ::run
41
static void Start()
Starts the logger.
Definition Logger.h:45
#define main
This is to avoid redefining main as the engine defines it. We rename the user main to run and call it...
Definition EntryPoint.h:40
int run(int argc, char **argv)
This is the user entry point. This should be implemented by the user.