Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
engine
public
definitions.h
Go to the documentation of this file.
1
#pragma once
2
#define ENGINE_NAME "GOLIAS_ENGINE"
3
#define ENGINE_VERSION_STR "0.0.5"
4
5
#define ENGINE_DEFAULT_FOLDER_NAME "Golias Engine"
6
#define ENGINE_PACKAGE_NAME "com.golias.engine.app"
7
8
#define ALBEDO_TEXTURE_UNIT 0
9
#define SPECULAR_TEXTURE_UNIT 1
10
#define METALLIC_TEXTURE_UNIT 2
11
#define ROUGHNESS_TEXTURE_UNIT 3
12
#define NORMAL_MAP_TEXTURE_UNIT 4
13
#define AMBIENT_OCCLUSION_TEXTURE_UNIT 5
14
#define EMISSIVE_TEXTURE_UNIT 6
15
#define SHADOW_TEXTURE_UNIT 7
16
#define ENVIRONMENT_TEXTURE_UNIT 8
17
18
#define MAX_VERTEX_MEMORY (512 * 1024)
19
#define MAX_ELEMENT_MEMORY (128 * 1024)
20
21
#if !defined(NDEBUG)
22
#if defined(_MSC_VER)
23
#define GOLIAS_ASSERT_BREAK() __debugbreak()
24
#elif defined(__clang__) || defined(__GNUC__)
25
#define GOLIAS_ASSERT_BREAK() __builtin_trap()
26
#else
27
#define GOLIAS_ASSERT_BREAK() std::abort()
28
#endif
29
#else
30
#define GOLIAS_ASSERT_BREAK() ((void)0)
31
#endif
32
33
Generated by
1.9.1