1
0
Fork 0
Commit graph

111 commits

Author SHA1 Message Date
9928a3599e include/Spectre/System/Log.h: Change message variable name to format. 2023-02-18 13:59:42 +01:00
a024e7015d Whitespace fixes. 2023-02-18 13:06:02 +01:00
07f32ee129 include/Spectre/Graphics.h: Adding getDisplay() 2023-02-18 13:05:07 +01:00
d70ca4a6c1 include/Spectre/System/Log.h: Whitespace fix. 2022-10-08 14:54:40 +02:00
3c7a5d148d include/Spectre/Graphics/PixelFormat.h: Whitespace fix. 2022-10-03 22:11:39 +02:00
f2fc9d46b8 Revert "include/Spectre/Display/DisplayDescription.h: change Empty to None"
This reverts commit 7c23f5dfd9.

`None` is defined in X11.
2022-10-01 16:09:42 +02:00
50e9300667 Game/FPSCounter: change m_fps variable and getFPS() return value from float to double.
MSVC complains about loss of information because sp::Time::seconds() returns double.
2022-09-26 12:06:40 +02:00
c11d71aaaa Spectre/System/File: adding readString() 2022-09-25 16:31:52 +02:00
81f3e1e399 Graphics: Remove Shader and ShaderProgram classes. they are combined into GfxDriver/ShaderProgram. 2022-09-18 13:56:37 +02:00
82e08d0785 Graphics/DefaultRenderer2D: use GfxDriver/ShaderProgram instead of Graphics/ShaderProgram 2022-09-18 13:55:43 +02:00
9bea188686 Graphics/BatchRenderer2D: use GfxDriver/ShaderProgram instead of Graphics/ShaderProgram 2022-09-18 13:54:32 +02:00
b85b4ab601 include/Spectre/Graphics/Renderer2D.h: Dont have to include ShaderProgram here. 2022-09-18 13:51:18 +02:00
cd9114bfd0 Adding Spectre/GfxDriver/ShaderProgram base class. 2022-09-18 12:26:01 +02:00
4dad1a5d75 Graphics class: use GfxDriver API. 2022-09-17 12:07:28 +02:00
ab11f7b9db Adding include/Spectre/GfxDriver/GfxDriver.h 2022-09-17 12:06:00 +02:00
3a7f91cb07 Merge branch 'fullscreen-api-nonrecreate' into dev 2022-09-13 20:39:02 +02:00
7c23f5dfd9 include/Spectre/Display/DisplayDescription.h: change Empty to None 2022-09-13 19:43:26 +02:00
4761473e86 include/Spectre/Display/DisplayDescription.h: remove fullscreen here as it is not a decorator flag. 2022-09-12 22:45:54 +02:00
d12d60b1ba Display/Display: Cache position when entering fullscreen and restore when entering window mode again. 2022-09-12 22:24:42 +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
e97844a6e6 Spectre/Core/NonCopyable.h: Updated make use of C++11 default and delete keywords. 2020-12-29 20:07:12 +01:00
0e2a3525e4 Merge branch '4-linux-support' into dev 2020-12-28 18:43:22 +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
12b2413e23 include/Spectre/Display/DisplayDescription.h: Rename DisplayDecorate::None to Empty (None clashes with X11) 2020-12-23 14:34:12 +01:00
db695f11f6 Spectre/Game/GameTime: Store max accumulated time in a member variable and calculate it once in setTimeStep() 2020-12-18 18:27:07 +01:00
2a608805b5 Spectre/Game/GameTime: add shouldTick() 2020-12-18 18:27:07 +01:00
ed876ca64d Spectre/Game/GameTime: remove useless m_inLoop variable. 2020-12-18 18:27:07 +01:00
d49d91a294 Spectre/Game/GameTime: Use sp::Time and sp::Stopwatch 2020-12-18 18:27:07 +01:00
6ee1752735 include/Spectre/Game.h: Remove unused variable. 2020-12-18 18:27:07 +01:00
3855cdd541 Game/FPSCounter: Use sp::Stopwatch 2020-12-18 18:27:07 +01:00
f62373dcbc Adding Spectre/System/Stopwatch 2020-12-18 18:27:07 +01:00
919aa7740a Spectre/Game/FPSCounter: Use sp::Time 2020-12-16 16:33:32 +01:00
6de6028ba4 Adding Spectre/Math/Time 2020-12-16 16:33:32 +01:00
d34d20361d include/Spectre/Display/DisplayDescription.h: adding Fullscreen flag. 2020-12-09 02:46:55 +01:00
b43f2fcca8 Display/DisplayMode: adding empty() 2020-12-05 18:23:16 +01:00
fc1fc7001a Spectre/Display/Display: Adding setVisible() 2020-12-05 15:31:48 +01:00
0a5681c871 Spectre/Display/Display: implement grabCursor() 2020-12-05 15:31:47 +01:00
92f42a08fb Spectre/System/Event: Adding toString() 2020-12-05 15:23:06 +01:00
66a4011f4b Spectre/Core/String: Adding to_string() for signed int. 2020-12-05 15:23:06 +01:00
c731cda1a2 Spectre/Graphics/PixelFormat: Rework
source/Graphics/Image/IcoFormat.cpp: use new PixelFormat.
source/Graphics/Image.cpp: update to confirm with new PixelFormat
Spectre/Graphics/PixelFormat: add PF_getNumChannels()
Spectre/Graphics/PixelFormat: Rework the enum with proper naming convention and documentation.
2020-11-03 14:23:38 +01:00
82add50157 Spectre/Display/Display: implement setIcon() with pixel array parameter. 2020-11-03 11:29:14 +01:00
a72ebf3d15 include/Spectre/Graphics/Texture.h: indentation fix. 2020-10-23 11:11:41 +02:00
fadd24fa51 include/Spectre/Graphics/PixelFormat.h: Some documentation 2020-10-23 11:11:41 +02:00
4f04a8e7c9 include/Spectre/Graphics/PixelFormat.h: Define 32BRG and 32BRGA formats. 2020-10-22 16:10:15 +02:00
f7fcc2633c Graphics/Image: dont store PixelFormat, instead define a new enum for number of channels.
The image class has a strict internal representation so we dont need "format".
PixelFormat enum can be passed to functions that modify the pixel data (like setPixels()) so that a proper convertion can be done.
2020-10-22 13:06:19 +02:00
6f9b33be8f Adding Spectre/System/ByteOrder 2020-10-21 13:02:03 +02:00
1a6cee0b25 Spectre/System/Log: adding debug method. 2020-10-13 18:07:29 +02:00
eb1f6303f1 include/Spectre/Input/InputDevice.h: typo fix. 2020-09-24 18:30:53 +02:00
32fddcd99d include/Spectre/Input/Mouse.h: don't use relative path in include. 2020-09-24 17:39:48 +02:00