Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
VulkanSchnee.cpp
Go to the documentation of this file.
2#include "Module/EngineUI.h"
3
4#include <iostream>
5#include <plog/Log.h>
6
7#ifdef ENABLE_TRACY
9#endif
10
11int main()
12{
13 // output c++ version
14 PLOGI << "-------------------";
15 PLOGI << "Vulkan Schnee";
16 PLOGI << "Running C++ Version: " << __cplusplus;
17 PLOGI << "-------------------";
18
20 auto module = new Editor::EditorModule();
21
22 try
23 {
25 engine.run( std::unique_ptr<EngineCore::GameModule>( module ) );
26 // app.run();
27 }
28 catch ( const std::exception & e )
29 {
30 std::cerr << e.what() << std::endl;
31 return EXIT_FAILURE;
32 }
33#if defined( IS_IN_DEBUG_BUILD ) && defined( _WIN32 )
34 std::cout << "\nPress Enter to continue...";
35 std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
36 // Or you can use the classic system("pause"), but it's less portable
37 // system("pause");
38#endif
39 return EXIT_SUCCESS;
40}
41
42/*
43int main()
44{
45
46 // output c++ version
47 std::cout << "-------------------" << std::endl;
48 std::cout << "Vulkan Schnee" << std::endl;
49 std::cout << "Running C++ Version: " << __cplusplus << std::endl;
50 std::cout << "-------------------" << std::endl;
51
52 #ifdef NDEBUG
53 std::cout << "Startet in non debug mode!" << std::endl;
54 #endif
55
56 EngineCore::Engine engine = EngineCore::Engine();
57 auto game = new AirHockey::AirHockey();
58
59 try {
60 EngineCore::EngineManager::getInstance().setEngine(&engine);
61 engine.run(std::unique_ptr<EngineCore::GameModule>(game));
62 //app.run();
63 }
64 catch (const std::exception& e) {
65 std::cerr << e.what() << std::endl;
66 return EXIT_FAILURE;
67 }
68 return EXIT_SUCCESS;
69}
70
71//Look here what to do:
72// next step:
73// https://chatgpt.com/c/67225c69-d430-8006-865d-fba71a4434e4
74// https://www.youtube.com/watch?v=6isbso_GmUk
75
76*/
int main()
void setEngine(Engine *engineInstance)
set the content pointer for this singleton
Definition Engine.cpp:1144
static EngineManager & getInstance()
gets a reference to the engine manager
Definition Engine.cpp:1135
void run(std::unique_ptr< GameModule > module)
Runs the engine. Is the entry point for this module.
Definition Engine.cpp:73