galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Platform.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_PLATFORM_PLATFORM_HPP_
9#define GALAXY_PLATFORM_PLATFORM_HPP_
10
11#include <string>
12
14
15#ifdef GALAXY_WIN_PLATFORM
17#elif GALAXY_UNIX_PLATFORM
19#endif
20
21namespace galaxy
22{
23 namespace platform
24 {
28 void seed_random() noexcept;
29
38 void set_metadata(const char* type, const char* value) noexcept;
39
48 void set_hint(const char* hint, const char* value) noexcept;
49
55 [[nodiscard]]
56 std::string as_string() noexcept;
57 } // namespace platform
58} // namespace galaxy
59
60#endif
void seed_random() noexcept
Seed the cstdlib rng algos.
Definition Platform.cpp:20
void set_metadata(const char *type, const char *value) noexcept
Sets metadata.
Definition Platform.cpp:25
std::string as_string() noexcept
Gets the current platform name as a string.
Definition Platform.cpp:35
void set_hint(const char *hint, const char *value) noexcept
Sets SDL hints.
Definition Platform.cpp:30
Application.hpp galaxy.