1
0
Fork 0
Commit graph

28 commits

Author SHA1 Message Date
8901257bb6 Rename DisplayExample to WindowExample 2023-08-22 07:17:51 +02:00
24da7f45e0 Rename Display to Window.
It makes more sense to be consistent and always call it window.
2023-08-22 07:12:47 +02:00
f240d14052 examples/input/InputExample.cpp: Also test mouse grab. 2023-08-02 20:34:38 +02:00
962c18fcac examples/input/InputExample: Adding support for Event based mouse movement. 2023-08-02 20:32:46 +02:00
36af790293 Remove bam 2022-09-26 22:31:50 +02:00
2dc8050ce3 Adding CMake again :) 2022-09-26 22:22:25 +02:00
3a7f91cb07 Merge branch 'fullscreen-api-nonrecreate' into dev 2022-09-13 20:39:02 +02:00
1c27fce58c examples/display/DisplayExample.cpp: make "W" key switch to windowed fullscreen. 2022-09-13 19:35:46 +02:00
397120a973 examples/build.lua: use PathFilename(name) as name contains a directory. 2022-09-12 19:37:04 +02:00
4222d89eb2 examples/build.lua: Use libspectre_settings. 2022-09-12 19:35:24 +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
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
421bf819d5 examples/build.lua: Unix systems needs to link with xrandr. 2020-12-19 18:55:11 +01:00
1cfd4adca4 bam: adding unix support. 2020-12-19 18:55:10 +01:00
4d69ff3a18 Adding Display Example 2020-12-09 02:45:40 +01:00
b0d14b91e0 Adding Input Example. 2020-10-16 19:38:05 +02:00
1332921174 examples/events/EventsExample.cpp: handle mouse button events also. 2020-10-16 19:37:56 +02:00
c09febc4d8 examples/events/EventsExample.cpp: store std::string instead of char pointer.
Some compilers (ehm, microsoft) returns a temporary variable for event.key.getKeyName() that is only valid during the statement and not scope.

Fix this by storing std::string instead. So the object's lifetime is the entire if statement.
2020-10-14 13:50:52 +02:00
49f42e98f4 Adding Event example 2020-10-14 13:21:16 +02:00
52fe72f31f
examples/text/Game.h: no need to include Vector2 2020-02-01 15:48:33 +01:00
a1e4f9347a
examples/text/Game.h: no need to extend sp::InputListener 2020-02-01 15:48:24 +01:00
a19944437b
bam: Define engine library as default target and add "examples" pseudo target. 2020-01-07 06:57:56 +01:00
e4c086a1eb
bam: move examples stuff to it's own file. 2020-01-07 06:55:24 +01:00
c97c75d56f
Remove VS project files. 2019-12-29 22:07:12 +01:00
f67f89715a
Adding bam build system. 2019-12-29 20:45:43 +01:00
e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00
b2dbee33fb Font: moving text size from font to Text object. 2016-05-05 11:04:54 +02:00
07417491cb Adding example code and project files. 2016-03-01 09:52:29 +01:00