1
0
Fork 0
Commit graph

67 commits

Author SHA1 Message Date
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
f86a1ae90c Merge branch 'maint-platform' into dev 2020-09-24 17:17:12 +02:00
2a1851efb5 Game: remove setup() method. do setup in run() instead. 2020-09-23 16:55:42 +02:00
afc1491718 Merge branch '6-abstract-filesystem' into dev 2020-09-17 09:50:06 +02: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
76d175ffd9
Math/Transform: rename multiply() to combine() 2020-02-12 19:27:41 +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
3364b921de
include/Spectre/Input/Keyboard.h: remove NumpadEnter (this is usually the same as regular enter). 2020-02-02 00:38:38 +01:00
7c6cf45d3c
include/Spectre/Input/Keyboard.h: Fix CamelCase for some enum values. 2020-02-02 00:34:13 +01:00
e0d95a1135
include/Spectre/Input/Mouse.h: add getPositionAbs() to the interface. 2020-02-01 22:40:14 +01:00
cdaed77bf7
Input: remove InputEvent and InputListener and related code. Those are handled in System/Event 2020-02-01 15:50:10 +01:00
81b64e18d4
Game: add getMessageHandler() method. 2020-02-01 15:50:03 +01:00
a30fd37032
System/MessageHandler: Make this class useful by implementing EventListener and also add a vector of listeners with register/unregister methods. 2020-02-01 15:50:02 +01:00
cd32d0b7c2
Adding System/EventListener 2020-02-01 15:50:01 +01:00
10198484e7
System/SystemEvent: Merge with Input/InputEvent into just Event. 2020-02-01 15:49:59 +01:00
4d54968f83
Display/Display: No need to include System/SystemEvent. 2020-02-01 15:49:55 +01:00
24c3f14c8c
include/Spectre/Input/InputEvent.h: Move Key::Type to Keyboard class 2020-02-01 15:49:53 +01:00
762d26f368
include/Spectre/Input/InputEvent.h: Move MouseButton::Type to Mouse class. 2020-02-01 15:49:52 +01:00
b2ca926a00
include/Spectre/Input/InputDevice.h: do not include "InputModule.h" 2020-02-01 15:49:50 +01:00
fb58490bfe
System/MessageQueue: Use PlatformEventQueue 2020-02-01 15:49:46 +01:00
dc04a12922
Spectre/System/File: add getErrorMessage() 2020-01-19 21:43:07 +01:00
624a979356
Spectre/System/File: implement File class. 2020-01-19 21:43:10 +01:00
1a218532c0
source/System/File.cpp: move path stuff to Path.cpp 2020-01-10 00:45:11 +01:00
6e14209aae
Font: add FontDescription class. 2020-01-06 00:18:07 +01:00
2dd1187ff2
Font: move Glyph to it's own header. 2020-01-05 23:40:25 +01:00
5c4eea4ae1
Font: rename Driver stuff to Engine and move subdirectory 2020-01-05 23:31:45 +01:00
8b96338e24
include/Spectre/Graphics/Font.h: Minor typo fix. 2020-01-05 23:20:00 +01:00
2a111a237d
Move OpenGL headers from API to implementation.
We don't want to expose any OpenGL functions to client code. Because if we do, there is a chance we break client code if we switch implementation (Direct3D).
2020-01-03 20:30:08 +01:00
4df668e68f
Minor formating fixes. 2019-12-29 22:26:05 +01:00
a6bfa15044
System/MessageQueue: postEvent() should not accept a reference. 2019-12-29 20:45:40 +01:00
a39069cdb9
GL/WGL: Upgrade to glad2 2019-12-24 20:29:16 +01:00
3b27db9435
include/Spectre/System/Log.h: implement a static "Log" class instead of just a function. 2019-11-10 14:56:56 +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
9da8addeb2 include/Spectre/Math/Matrix4.inl: gcc complains about multiple definitions of Identity. just template the type instead of only allow float. 2019-06-01 21:06:59 +02:00
ffe75049d0 include/Spectre/Math/Matrix4.inl: gcc need "template<>" for Indentity variable. 2019-06-01 21:06:59 +02:00
77804b8620 include/Spectre/Math/Matrix4.inl: in matrix vector multiplication. for some reason g++ was not happy with calling the constructor. this works. 2019-06-01 21:06:59 +02:00
c590b5b16a include/Spectre/Input/InputDevice.h: include InputModule 2019-06-01 18:01:26 +02:00
ba11d5002b include/Spectre/Graphics/PixelFormat.h: Minor stuff. 2019-05-31 19:36:58 +02:00
d1b613058d include/Spectre/Math/Vector2.inl: minor fix. 2019-05-31 16:26:22 +02:00
0c76494939 include/Spectre/Math/Vector2.inl: less than or equal operator should be written as "<=" not "=<" 2019-05-31 15:46:40 +02:00
7bf8617267
include/Spectre/Math/Matrix3.h: minor comment fix. 2019-04-29 08:54:40 +02:00
84d773dc0d
Math/Matrix3: remove Zero static variable (default constructor creates a zero matrix). 2019-04-29 08:54:15 +02:00
4e29b3ea2c
include/Spectre/Math/Matrix4.inl: make sure the default constructor creates a zero matrix. 2019-04-29 08:48:40 +02:00