Topaz 5.0
Topaz Game Engine
Loading...
Searching...
No Matches
topaz.hpp
1#ifndef TOPAZ_HPP
2#define TOPAZ_HPP
3#include "textc/imported_text.hpp"
4
9namespace tz
10{
15 struct appinfo
16 {
18 const char* name = "A Topaz Application";
20 unsigned int major = 1u;
22 unsigned int minor = 0u;
23
24 // internal evil hackery
25 // if the user opts for a executable icon, TZ_CUSTOM_ICON_ID will be defined by something needed by tz::os internals.
26 // however TZ_CUSTOM_ICON_ID will be defined on the game target, not engine. so when the game includes this header it will correctly resolve. cheeky
27 std::int64_t internal_icon_id =
28 #ifdef TZ_CUSTOM_ICON_ID
29 TZ_CUSTOM_ICON_ID;
30 #else
31 -1;
32 #endif
33 };
43 void initialise(appinfo info = {});
52 void terminate();
53
54 namespace detail
55 {
56 void job_system_initialise();
57 void job_system_terminate();
58 void lua_initialise_local();
59 void lua_initialise_all_threads();
60 }
61 namespace gpu
62 {
63 void initialise(appinfo info);
64 void terminate();
65 }
66 namespace os
67 {
68 void initialise(appinfo info);
69 void terminate();
70 }
71}
72
135#include "detail/debug.hpp"
136
137#endif // TOPAZ_HPP
void terminate()
Terminate the engine, cleaning up all resources.
void initialise(appinfo info={})
Initialise the engine.
Contains information about the application being initialised.
Definition topaz.hpp:16
unsigned int major
Major version of the application.
Definition topaz.hpp:20
const char * name
Name of the application.
Definition topaz.hpp:18
unsigned int minor
Minor version of the application.
Definition topaz.hpp:22