27 Commits

Author SHA1 Message Date
Quentin Bazin
07e51465fd [GameState] Now using gk::Camera view matrix directly. 2018-12-30 04:43:57 +01:00
Quentin Bazin
3dd8f83918 [HUD] Now holds its own projection matrix. 2018-12-30 04:40:05 +01:00
Quentin Bazin
de62bcb413 [Player] No longer holds gk::Camera, ownership moved to GameState. 2018-12-30 04:32:29 +01:00
Quentin Bazin
42df982956 Now using GameKit. 2018-12-29 02:23:23 +01:00
Quentin Bazin
e1331b4815 [#14] Reverted back to SDL2. Fixed #17. 2018-12-28 06:21:29 +01:00
Quentin Bazin
07b534b15b [Camera] Merged into Player. 2018-12-26 21:02:03 +01:00
exilief
dc8d781393 Switching from SDL to SFML (#14)
* Add SFML support besides SDL. Choose with global macro USE_SDL / USE_SFML.

+ Small fixes to make it compile on MinGW (with Glad instead of GLEW -> option NO_GLEW)

* Add SFML support besides SDL (Part 3). Cleaned up some macros.

* Add SFML support besides SDL (Part 4). Small SFML fixes. Changed Spaces->Tabs

* Add SFML support besides SDL (Part 5). Cleaning up more macros + small fixes.

* Port to SFML. Removed all SDL code.

* Small changes

* Conversion functions to/from SFML types for Vector2/3 and Color.

* Removed unused SDL files

* Changes for SFML port

* Changes for SFML port

* Fixed line endings (probably?)
2018-12-26 18:36:46 +01:00
Quentin Bazin
4f02b3623c [DebugOverlay|HUD] Added. 2018-07-06 14:24:49 +02:00
Quentin Bazin
e8173578b1 [Player] Added, it's only a container for player's inventory. [BlockWorkbench] Added. Can display WorkbenchWidget on right click. 2018-06-27 05:09:30 +02:00
Quentin Bazin
22a09ed831 [GameState] Useless code removed. 2018-06-25 14:04:25 +02:00
Quentin Bazin
2eecb88ced [Hotbar|WorkbenchWidget] Inventories linked. 2018-06-23 03:26:34 +02:00
Quentin Bazin
d9038e6cb5 [Image] Added. [Hotbar] WIP. 2018-06-20 05:43:52 +02:00
Quentin Bazin
905a23c792 [BlockCursor] Now using face == -1 when no block is selected instead of a fixed far position. 2018-06-15 01:13:59 +02:00
Quentin Bazin
613aca0890 [BlockCursor] Added. All block selection code moved from GameState. 2018-06-15 00:05:17 +02:00
Quentin Bazin
7191b61bdf [ApplicationState] Using new rendering system. 2018-06-14 23:36:01 +02:00
Quentin Bazin
6d965a4312 [GameState] Cursor box and World updated to new render system. Working on Chunk. 2018-06-14 22:11:25 +02:00
Quentin Bazin
7201b31b55 [IDrawable|RenderStates|RenderTarget] Added. Trying a new rendering system based on the SFML one. 2018-06-14 21:16:56 +02:00
Quentin Bazin
b9087294c2 [Crosshair] Added. Code moved from GameState. 2018-06-14 18:24:07 +02:00
Quentin Bazin
b0050a1f34 [CoreApplication] Replacing most old Application code. [ApplicationState|ApplicationStateStack] Updated. 2018-06-14 02:38:25 +02:00
Quentin Bazin
b2950e4afe [GameState|World|Chunk] Mouse picking: OK. 2018-06-14 01:55:10 +02:00
Quentin Bazin
3cd2335d40 [GameState] Can now display a cross and the selected block. 2018-06-13 21:48:35 +02:00
Quentin Bazin
70efbfce5b [.gitignore|CMakeLists.txt] Cleaned/improved. [sources] Cleaned some headers. 2018-06-12 09:24:43 +02:00
Quentin Bazin
4bdea4b341 Lots of small fixes. 2018-06-05 16:17:40 +02:00
Quentin Bazin
810a3b5ed3 Extra whitespaces stripped. 2018-06-05 01:24:54 +02:00
Quentin Bazin
31d1f29cdf [Skybox] Working on it. 2014-12-26 00:39:10 +01:00
Quentin Bazin
0b806a93c6 [Chunk] Working on it. 2014-12-18 07:02:48 +01:00
Quentin Bazin
fad91e840f [Shader] added. [GameState] OK. 2014-12-15 16:47:30 +01:00