e64d9cdce0
Platform/Win32/Win32Display: implement grabCursor()
2020-12-05 15:31:47 +01:00
0a1c18548d
source/Platform/PlatformDisplay.h: add grabCursor() to the interface.
2020-12-05 15:31:47 +01:00
363afe111b
source/Platform/Win32/Win32EventQueue.cpp: should not return status from DispatchMessage()
...
this can falsely signal that we have translated a win32 event to engine event when in fact we have not.
2020-12-05 15:30:45 +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
2be3c66a2d
Platform/Win32/Win32Display: implement the new setIcon() with pixel array.
2020-11-03 11:29:14 +01:00
60653509fa
source/Platform/PlatformDisplay.h: change setIcon() parameters to take a pixel array instead of filename
2020-11-03 11:29:14 +01:00
a72ebf3d15
include/Spectre/Graphics/Texture.h: indentation fix.
2020-10-23 11:11:41 +02:00
5d391ef70c
source/Graphics/Texture.cpp: minor 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
391d617117
Adding assets/debug_icon.ico
2020-10-23 11:11:41 +02:00
acf96a0971
source/Graphics/ImageLoader.cpp: load .ico files.
2020-10-23 11:11:41 +02:00
37d495fca3
Adding source/Graphics/Image/IcoFormat
2020-10-23 11:11:41 +02:00
b78531a570
Adding source/Graphics/Image/Format/ico.h
2020-10-23 11:09:30 +02:00
02912b857b
source/Graphics/Image.cpp: in setPixels() do proper conversion.
2020-10-22 16:53:20 +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
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
ec8eb971a5
engine.build.lua: define "SPECTRE_DEBUG" when building in debug mode.
2020-10-13 18:07:29 +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
f86a1ae90c
Merge branch 'maint-platform' into dev
2020-09-24 17:17:12 +02:00
18880ef17e
source/Game.cpp: minor fixes.
2020-09-24 16:33:30 +02:00
976ddecd10
source/Game.cpp: in run() exit if graphics could not be initialized.
2020-09-23 16:56:28 +02:00
2a1851efb5
Game: remove setup() method. do setup in run() instead.
2020-09-23 16:55:42 +02:00
d58c49421e
source/Graphics/OpenGL.cpp: in init() return false if display fails to be created.
2020-09-23 12:41:22 +02:00
0f08f10a0d
source/Game.cpp: don't need to call setClearColor() here. it is done as part of the graphics module setup.
2020-09-23 00:00:31 +02:00
2c76d3bc87
source/Platform/Win32/Win32GLContext.cpp: no need to have our own wgl extension loader (fixed in latest glad2)
2020-09-21 18:00:08 +02:00
d8af100691
GLAD WGL: Update to new version.
2020-09-21 17:59:14 +02:00
a96e78bca5
source/Platform/Win32/Win32GLContext.cpp: in createGLContext() check return value from ensureExtensionsLoaded()
2020-09-20 16:46:51 +02:00
e3c01d4897
source/Platform/Win32/Win32GLContext.cpp: make ensureExtensionsLoaded() return bool.
2020-09-20 16:45:58 +02:00
6805e392a7
source/Platform/Win32/Win32GLContext.cpp: in createGLContext() delete temporary context as the last step.
2020-09-20 16:42:44 +02:00
afc1491718
Merge branch '6-abstract-filesystem' into dev
2020-09-17 09:50:06 +02:00
92a561648e
Platform/Win32/Win32Input.cpp: remove Win32InputMsgBuffer
2020-02-15 15:41:53 +01:00
a4a691fd48
Math/Transform.cpp: use transform/scale/ratation functions from Math.h
2020-02-14 23:31:15 +01:00
a6e6b915e6
Math/Math: Remove getTranslate(), getUpVector() and getForwardVector() as they are not used.
2020-02-12 19:54:52 +01:00
532c6dafaf
Math/Math: translate/scale functions should not accept vectors, but rather individual parameters.
...
This is "low level" functions. Used by other math classes/functions.
2020-02-12 19:42:50 +01:00
18ea713445
Math/Transform.cpp: minor fixes.
2020-02-12 19:29:02 +01:00
76d175ffd9
Math/Transform: rename multiply() to combine()
2020-02-12 19:27:41 +01:00
1194128627
Math/Transform.cpp: indent fixes.
2020-02-12 19:20:20 +01:00
72e1bfdade
Math: indent fixes.
2020-02-12 08:54:03 +01:00
c0f44016c6
Math/Vector2: inline toString()
2020-02-12 08:52:08 +01:00
eef2690ada
source/Platform/Win32/Win32Mouse.cpp: in isButtonDown() use SM_SWAPBUTTON to determine if buttons are swapped or not.
2020-02-02 18:58:06 +01:00