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
10
extern
"C"
{
14
extern
int
run
(
int
argc,
char
** argv);
15
}
16
30
int
main
(
int
argc,
char
** argv) {
31
std::cout <<
"Hubris Engine has started."
<< std::endl;
32
Hubris::Logger::Start
();
33
return
run
(argc, argv);
34
}
35
40
#define main ::run
41
Engine.h
Logger.h
Hubris::Logger::Start
static void Start()
Starts the logger.
Definition
Logger.h:45
main
#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
run
int run(int argc, char **argv)
This is the user entry point. This should be implemented by the user.
include
EntryPoint.h
Generated by
1.13.2