7967eaea2a
bam.lua: import .bam/path.lua
2022-09-11 00:29:41 +02:00
fc64fedb0e
engine.build.lua: use RelPath() "everywhere"
2022-09-11 00:29:41 +02:00
fd108cc391
engine.build.lua: remove linkage with freetype2 as we build it ourself on windows.
2022-09-10 21:43:01 +02:00
d35ba0730e
.bam/functions.lua: use RelPath() in module to get the correct paths.
2022-09-10 21:39:05 +02:00
0ce1d25594
examples/build.lua: rename example_settings to just settings as it's a locale variable anyway.
2022-09-10 21:37:22 +02:00
b913c2024d
.bam/functions.lua: delete BuildExample() and BuildExamples()
2022-09-10 21:35:39 +02:00
315f2e9c41
examples/build.lua: skip using BuildExamples(). just run the code directly here as we wont need it anywhere else.
2022-09-10 21:34:52 +02:00
de789ad77e
.bam/functions.lua: Imports() should be relative to the current script.
2022-09-10 21:14:21 +02:00
788e3f697e
bam.lua: Adding descriptive comment to global_settings.lib.prefix
2022-09-10 20:05:55 +02:00
01b626d44e
Adding .bam/path.lua
2022-09-10 20:02:34 +02:00
e9ebb38090
vendor/FreeType2/src/base/module.lua: basepath to Module() should be relative to the script's directory.
2022-09-10 19:59:38 +02:00
54805c07f4
.bam/functions.lua: use paths.examples in BuildExample() to get the correct path.
2022-09-10 19:57:40 +02:00
6a84af227c
bam.lua: append "_<TARGET_OS>" to examples output directory.
2022-09-10 19:56:07 +02:00
1902b92210
bam.lua: Add "intermediate" directory to paths and use it when building object files.
2022-09-10 19:46:36 +02:00
03cbba9a6c
include/Spectre/Core/NonCopyable.h: Destructor needs to be virtual. Otherwise deleting a NonCopyable pointer wont call the child class destructor
2022-09-10 14:10:11 +02:00
9621ea19bb
source/Platform/Win32/Win32Display.cpp: on x64, windows headers undefine GWL_USERDATA, So we define it again.
2022-09-10 14:02:58 +02:00
8d57b3a72c
source/Platform/Win32/Win32Display.cpp: Use SetWindowLongPtr/GetWindowLongPtr as LONG_PTR supports 64bit addresses.
2022-09-10 13:59:40 +02:00
e97844a6e6
Spectre/Core/NonCopyable.h: Updated make use of C++11 default and delete keywords.
2020-12-29 20:07:12 +01:00
46af40bbb7
source/Platform/PlatformApplication.h: extend NonCopyable
2020-12-29 19:54:49 +01:00
b984f30968
Platform/Win32/Win32Display.cpp: for WM_SIZE event we can use lParam variable to get the size.
2020-12-29 17:45:32 +01:00
0a75f0c2ed
.bam/functions.lua: adding documentation to host_system()
2020-12-28 19:28:27 +01:00
cbd26a211d
.bam/functions.lua: in host_system() switch from 'family' to 'platform' variable.
...
family == "unix" contains FreeBSD and MacOS. that we dont have support for.
2020-12-28 19:27:39 +01:00
543542625d
.bam/functions.lua: rename system() to host_system()
2020-12-28 19:13:28 +01:00
d9697e2eae
bam.lua: allow TARGET_OS to be set from CLI, fallback on host.
2020-12-28 19:13:05 +01:00
707cd7732c
.bam/functions.lua: adding valid_system()
2020-12-28 19:13:05 +01:00
bb28f5658f
Adding .bam/utils.lua
2020-12-28 19:13:05 +01:00
36e4894dc7
bam.lua: allow paths.build variable to be set from CLI
2020-12-28 18:47:28 +01:00
0e2a3525e4
Merge branch '4-linux-support' into dev
2020-12-28 18:43:22 +01:00
a172fbb323
engine.build.lua: Fix local variable inside if statement.
2020-12-28 18:41:51 +01:00
d48cc650a8
source/Platform/PlatformApplication.cpp: ApplicationType is defined by some Win32 headers.
2020-12-28 18:41:51 +01:00
845b93fb48
source/Platform/Win32/Win32Display.cpp: DisplayDecorate::None has changed to DisplayDecorate::Empty
2020-12-28 18:38:27 +01:00
f6aa0246d3
source/Platform/Unix/X11Mouse.cpp: implement hack for XButton1 and 2.
2020-12-28 18:20:55 +01:00
c082700891
include/Spectre/Input/Mouse.h rename Button1,Button2 to XButton1 and XButton2
...
Button1 and Button2 are defined by Xlib. So lets change our ones to avoid headache.
2020-12-28 18:20:55 +01:00
7e79663dce
include/Spectre/Input/Mouse.h rename Button1,Button2 to XButton1 and XButton2
...
Button1 and Button2 are defined by Xlib. So lets change our ones to avoid headache.
2020-12-26 18:08:39 +01:00
81c7e34c58
Use SPECTRE_PLATFORM_* defines instead of raw compiler ones.
2020-12-26 17:25:25 +01:00
2eec1c9f75
source/Game.cpp: use PlatformApplication::create()
2020-12-26 17:20:30 +01:00
b91b9f3768
Platform/PlatformApplication: adding create() method.
2020-12-26 17:20:05 +01:00
0540f5d201
engine.build.lua: add platform defines.
2020-12-26 15:53:52 +01:00
090646b61a
Platform/Unix: Rename X11SharedDisplay to Xlib, and remove Display member variable from all classes.
...
We now initialize/destroy the display in Xlib::init/shutdown that is called in UnixApplication::init/shutdown and
therefore is valid through the whole lifetime. So no need for classes to keep references.
2020-12-26 15:37:56 +01:00
60dd9bacb0
source/Game.cpp: make sure we call init() and shutdown() for platform
2020-12-26 15:37:57 +01:00
197b4df87f
Unix: Remove unnecessary includes of Spectre/Display/DisplayDescription.h
2020-12-23 14:36:52 +01:00
12b2413e23
include/Spectre/Display/DisplayDescription.h: Rename DisplayDecorate::None to Empty (None clashes with X11)
2020-12-23 14:34:12 +01:00
080c4f77c3
Platform/Unix/X11Keyboard: only update state and signal key down if we have a focused window.
2020-12-20 16:29:12 +01:00
6c96a3d9a1
Platform/Unix/X11Mouse.cpp: in isButtonDown() check if we have a focused window.
2020-12-20 16:28:25 +01:00
f71cfa86f2
Platform/Unix/X11Mouse: use X11Display::getFocused() to get the coordinates relative to the focused window.
2020-12-20 16:09:16 +01:00
227d58725d
Platform/Unix/X11Display.cpp: Set and unset focused_display variable when the display receives FocusIn/Out events.
2020-12-20 16:03:05 +01:00
d9f54b08ca
Platform/Unix/X11Display: Adding getFocused()
2020-12-20 16:01:37 +01:00
d971cd6cb2
Platform/Unix/X11Display.cpp: Capture input focus events (just log for now).
2020-12-20 13:55:56 +01:00
56c24f7118
Platform/Unix/X11Display: Implement missing interface functions.
...
* getPosition
* setVisible
* minimize
* maximize
* grabCursor (only stub. to get the code to compile)
2020-12-20 13:43:35 +01:00
40e4f95452
Platform/Unix/X11Display.cpp: minor stuff.
2020-12-19 18:55:12 +01:00