Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
imports.h
Go to the documentation of this file.
1 #pragma once
2 #include <SDL3/SDL.h>
3 #include <cmath>
4 #include <string>
5 #include <filesystem>
6 #include <map>
7 #include <chrono>
8 #include <queue>
9 #include <unordered_map>
10 #include <sstream>
11 
12 /* ENABLE MATH CONSTANTS*/
13 #define _USE_MATH_DEFINES 1
14 #include <math.h>
15 #include <array>
16 
17 #include <glad.h>
18 
19 #include <glm/glm.hpp>
20 #include <glm/gtc/matrix_transform.hpp>
21 #include <glm/gtc/type_ptr.hpp>
22 
23 #define GLM_ENABLE_EXPERIMENTAL
24 #include <glm/gtx/string_cast.hpp>
25 
26 #include <miniaudio.h>
27 #include <tinyxml2.h>
28 
29 #include "imgui_impl_opengl3.h"
30 #include "imgui_impl_sdl3.h"
31 
32 #include <mutex>
33 
34 #include <condition_variable>
35 #include <atomic>
36 
37 #if __ANDROID__
38 const std::filesystem::path BASE_PATH = "";
39 #define ASSETS_PATH std::string("")
40 #elif __APPLE__
41 const std::filesystem::path BASE_PATH = SDL_GetBasePath();
42 #define ASSETS_PATH (BASE_PATH / "assets/").string()
43 #else
44 const std::filesystem::path BASE_PATH = SDL_GetBasePath();
45 #define ASSETS_PATH std::string("assets/")
46 #endif
47 
48 #define ENGINE_NAME "EMBER_ENGINE"
49 #define ENGINE_VERSION_STR "0.0.9"
50 
51 
52 
const std::filesystem::path BASE_PATH
Definition: imports.h:44