aboutsummaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorJuan Linietsky2017-12-14 08:59:46 -0300
committerJuan Linietsky2017-12-14 09:01:27 -0300
commitf3ad14224e27f2a25196575e3c43ebc792c90894 (patch)
tree84e60bc2fafda809f51bd0892e39205da9423068 /platform/windows
parentaa6772d7abb3ff1ff77b1b658617904bb0af1fbb (diff)
downloadgodot-f3ad14224e27f2a25196575e3c43ebc792c90894.tar.gz
godot-f3ad14224e27f2a25196575e3c43ebc792c90894.tar.zst
godot-f3ad14224e27f2a25196575e3c43ebc792c90894.zip
-Add lightmapper
-Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/detect.py7
-rw-r--r--platform/windows/os_windows.cpp4
-rw-r--r--platform/windows/os_windows.h2
3 files changed, 13 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index d85e1b061..3f6620745 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -188,6 +188,9 @@ def configure(env):
else:
VC_PATH = ""
+ if (env["openmp"]):
+ env.Append(CPPFLAGS=['/openmp'])
+
env.Append(CCFLAGS=["/I" + p for p in os.getenv("INCLUDE").split(";")])
env.Append(LIBPATH=[p for p in os.getenv("LIB").split(";")])
@@ -264,6 +267,10 @@ def configure(env):
env.Append(CCFLAGS=['-flto'])
env.Append(LINKFLAGS=['-flto=' + str(env.GetOption("num_jobs"))])
+ if (env["openmp"]):
+ env.Append(CPPFLAGS=['-fopenmp'])
+ env.Append(LIBS=['gomp'])
+
## Compile flags
env.Append(CCFLAGS=['-DWINDOWS_ENABLED', '-mwindows'])
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 41730d33a..bbfeff74e 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -2156,6 +2156,10 @@ void OS_Windows::swap_buffers() {
gl_context->swap_buffers();
}
+void OS_Windows::force_process_input() {
+ process_events(); // get rid of pending events
+}
+
void OS_Windows::run() {
if (!main_loop)
diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h
index af1ccd444..0b0269a37 100644
--- a/platform/windows/os_windows.h
+++ b/platform/windows/os_windows.h
@@ -287,6 +287,8 @@ public:
void disable_crash_handler();
bool is_disable_crash_handler() const;
+ void force_process_input();
+
virtual Error move_to_trash(const String &p_path);
OS_Windows(HINSTANCE _hInstance);