1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Single Compilation Unit build.

Adds support for simple SCU build (DEV_ENABLED only).
This speeds up compilation by compiling multiple cpp files within a single translation unit.
This commit is contained in:
lawnjelly
2023-05-17 16:22:26 +01:00
parent 543750a1b3
commit b69c8b4791
29 changed files with 531 additions and 137 deletions

View File

@@ -30,14 +30,12 @@
#include "editor_scale.h"
#include "core/os/os.h"
float EditorScale::_scale = 1.0f;
static float scale = 1.0;
void editor_set_scale(float p_scale) {
scale = p_scale;
void EditorScale::set_scale(float p_scale) {
_scale = p_scale;
}
float editor_get_scale() {
return scale;
float EditorScale::get_scale() {
return _scale;
}