deb9918b9b
source/Display/Display.cpp: Need to set position to 0,0 in window fullscreen, otherwise it wont stick to the top-left of the monitor.
2022-09-13 19:52:34 +02:00
3c6a842c9d
Platform/Win32/Win32Display.cpp: remove fullscreen stuff in create()
2022-09-12 22:44:51 +02:00
fc38bb59a9
source/Display/Display.cpp: restore size when entering window mode.
2022-09-12 22:25:15 +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
74a2ff028c
source/Display/Display.cpp: Use the new display api that does not require recreating the display.
2020-12-09 02:46:55 +01:00
ea91d50a84
source/Graphics/OpenGL.cpp: minor fix. no need to set window decoration (default is fine)
2020-12-09 02:46:55 +01:00
304e345a79
Platform/Win32/Win32Display: Implementing true fullscreen with enterFullscreen() and exitFullscreen()
2020-12-09 02:46:55 +01:00
ca5e2a399c
Platform/PlatformDisplay: adding enterFullscreen() and exitFullscreen()
2020-12-09 02:46:54 +01:00
ebe3a648c5
Platform/Win32/Win32Display: Implement setDecoration()
2020-12-09 02:46:54 +01:00
02567eb225
source/Platform/PlatformDisplay.h: Adding setDecoration()
2020-12-09 02:46:54 +01:00
b43f2fcca8
Display/DisplayMode: adding empty()
2020-12-05 18:23:16 +01:00
c2b0d73888
source/Display/DisplayMode.cpp: initialize bpp to zero.
2020-12-05 18:23:16 +01:00
3f38286049
source/Platform/Win32/Win32EventQueue.cpp: change OutputDebugString() to Log::debug()
2020-12-05 15:31:48 +01:00
fc1fc7001a
Spectre/Display/Display: Adding setVisible()
2020-12-05 15:31:48 +01:00
5d433a7b80
source/Platform/Win32/Win32Display.cpp: don't call destroy() on WM_DESTROY as the window is already destroyed if we get this event.
2020-12-05 15:31:48 +01:00
2da0f7e712
Platform/Win32/Win32Display.cpp: change OutputDebugString() to Log::debug()
2020-12-05 15:31:47 +01:00
f0d769c923
Platform/Win32/Win32Display: minor fix.
2020-12-05 15:31:47 +01:00
04db63aa49
Platform/Win32/Win32Display: implement setVisible()
2020-12-05 15:31:47 +01:00
48b501e355
source/Platform/PlatformDisplay.h: add setVisible() to the interface
2020-12-05 15:31:47 +01:00
17759992c8
Platform/Win32/Win32Display: implement maximize() and minimize()
2020-12-05 15:31:47 +01:00
d7d8a23dc2
Platform/Win32/Win32Display: implement getPosition()
2020-12-05 15:31:47 +01:00
70f73c1d52
source/Platform/PlatformDisplay.h: add getPosition() to the intreface
2020-12-05 15:31:47 +01:00
33270d9f7b
source/Platform/PlatformDisplay.h: add minimize() and maximize() to the interface
2020-12-05 15:31:47 +01:00
0a5681c871
Spectre/Display/Display: implement grabCursor()
2020-12-05 15:31:47 +01:00
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
5d391ef70c
source/Graphics/Texture.cpp: minor fix.
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
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
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