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:
parent
543750a1b3
commit
b69c8b4791
29 changed files with 531 additions and 137 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue