Commit Graph

164 Commits

Author SHA1 Message Date
Lynix b0c72a6101 Replace platform backends by SDL 2020-05-27 17:47:52 +02:00
Lynix c071f52d8f Platform/Mouse: Add SetRelativeMouseMode 2020-05-27 17:08:49 +02:00
Lynix 71c11c5d6f Add PlatformSDL2_Path config 2020-05-27 16:58:21 +02:00
Jérôme Leclercq 1425f99edf Merge branch 'master' into SDL2 2020-05-27 11:11:21 +02:00
REMqb 96ea792656 ~ Formatting 2020-03-21 12:42:50 +01:00
Lynix 5dd37ed3d8 Demo: Remove useless line 2020-01-25 19:15:45 +01:00
Lynix 380c5eb9ae Fix SpacebattleDemo 2020-01-04 12:16:19 +01:00
Lynix b3af14f65a Utility/OBJLoader: Fix OBJ uvs 2020-01-04 12:15:54 +01:00
REMqb ef791e2f3c ~ WIP input IME 2019-12-19 19:59:43 +01:00
REMqb 350a1cf09f ~ Fix linux build
~ Fix dopler example
2019-05-19 17:17:37 +02:00
Lynix ab5188c57d Add scancode and virtual key and fix some sdl stuff on Windows 2019-05-19 16:34:29 +02:00
Lynix 79b0bd644c Add text outlines! 2019-04-16 01:46:26 +02:00
REMqb 848f05a420 ~ Initial SDL2 implementation
Limitation
- Dependent projects need to set NAZARA_PLATFORM_SDL2 if nazara has been build with SDL2 since OpenGL.hpp (and maybe some other headers) exposes platform details
- SDL2 window doesn't supports async window since the API isn't fitting for now
- Contexts parameters can't be changed until we close all the SDL windows (SDL limitation)
2019-04-03 21:17:06 +02:00
Jérôme Leclercq ed46c87781 Refactor the way resources are loaded (#191)
* WIP

* WIP

* Font works

* WIP: Only Music remains

* Looks like it's working

* Fix oopsie

* Core/ObjectRef: Add cast functions

* Update ChangeLog.md

* Audio/SoundStream: Make sound stream thread-safe
2018-10-28 01:53:11 +02:00
Lynix 960af3afa3 Fix example not compiling 2018-09-01 13:22:37 +02:00
Lynix 03d2742fed Demo: Fix Particles not building 2018-08-31 22:07:47 +02:00
Jérôme Leclercq 5e6204fad4 Fix compilation 2018-08-31 17:33:51 +02:00
S6066 f9c5867d72 Fix cursor when switching demo in DemoParticles (#168)
* fix cursor

* whoopsie
2018-06-28 16:11:54 +02:00
Jérôme Leclercq 2da086b7df New Render queues (#161)
* Add new render queues proof of concept + scissoring support (WIP)

* Graphics: Adapt basic sprites rendering to new render queue system

* Graphics: Fix layers when rendering sprites

* Graphics/RenderQueue: Fix sprite default overlay

* Graphics: Enable scissor test by default

* SDK/Widgets: Enable scissoring on widgets

* Graphics: Handle almost everything with the new renderqueues system

Todo:
- Billboard rendering
- Proper model rendering

* Graphics/RenderQueue: Billboard drawing now works (WIP)

At 1/4 of previous code performances due to individually process of billboards

* Add new render queues proof of concept + scissoring support (WIP)

* Graphics: Adapt basic sprites rendering to new render queue system

* Graphics: Fix layers when rendering sprites

* Graphics/RenderQueue: Fix sprite default overlay

* Graphics: Enable scissor test by default

* SDK/Widgets: Enable scissoring on widgets

* Graphics: Handle almost everything with the new renderqueues system

Todo:
- Billboard rendering
- Proper model rendering

* Graphics/RenderQueue: Billboard drawing now works (WIP)

At 1/4 of previous code performances due to individually process of billboards

* Graphics/RenderQueues: Add full support for billboards

* Graphics/RenderQueue: Cleanup and improve billboard rendering

* Graphics/RenderQueue: Fix model drawing

* Examples/Particles: Fix lighting on space station

* Graphics: Cleanup forward render queue/technique

* Fix compilation under Linux

* Graphics/ForwardRenderTechnique: Fix case when scissoring is enabled on material but disabled on element

* Add support for Deferred Shading

* SDK/Widgets: Fix widget rendering

* Graphics: Remove legacy code from render queues

* Graphics: Fix some objects sometimes not showing up due to broken scissor box

* Fix compilation error

* Sdk/GraphicsGraphics: Fix bounding volume

* SDK/World: Fix self-assignation

* Update changelog for render queues
2018-04-11 19:36:52 +02:00
Lynix 14248bb6c6 Example/SpacebattleDemo: Take const ref to EntityHandles 2018-04-10 23:52:28 +02:00
Lynix b2d10f6e69 Examples: Fix FirstScene movements 2018-02-18 14:17:13 +01:00
Jérôme Leclercq fb3eb9443e Core/Clock: Restart now returns the elapsed time in milliseconds 2018-02-07 15:02:44 +01:00
Faymoon e86e29f822 Update FirstScene to use EventHandler and remove useless lines (#151)
* Update FirstScene to use EventHandler and remove useless lines

* Update strange indentations made by VS

* Oops

* fix a little error

* fixed stranges comments

* fix littles errors

* fix indent

* Re fix Indent

* fix last errors

* fix errors fund by alexandre jannaiux

* fix lisibility of comments
2018-01-15 23:46:52 +01:00
Lynix 220e985144 Fix compilation of Particles demo 2017-11-19 20:14:41 +01:00
Lynix d688cecbde Renderer: Replaced RenderTarget::Get[Height|Width] by RenderTarget::GetSize
Utility: Removed Window::Get[Height|Width] methods
2017-10-28 23:26:22 +02:00
Lynix 302a65a8aa Fix warning 2017-10-19 20:59:38 +02:00
Lynix b14a9f219a Small change 2017-10-11 00:33:41 +02:00
Lynix 7fb1bd387d Demo: Change keyboard control by mouse control 2017-10-11 00:30:05 +02:00
Lynix 4bdcb1f31f Fix demo compilation and warnings 2017-10-10 21:52:36 +02:00
Jérôme Leclercq 67ddbbe494 Fix LogoDemo after mapper change 2017-10-10 21:52:31 +02:00
Lynix c763dea4e1 Merge branch 'master' into reflection-mapping 2017-10-02 21:11:15 +02:00
Gawaboumga bbac0838dd Include-What-You-Use (#137)
* IWYU Core

* IWYU Noise

* IWYU Utility

* IWYU Audio

* IWYU Platform

* IWYU Lua

* IWYU Network

* IWYU Physics2D

* IWYU Physics3D

* IWYU Renderer

* IWYU Graphics

* IWYU NDKServer

* IWYU Fix

* Try to fix compilation

* Other fixes
2017-10-01 11:17:09 +02:00
Lynix bccbc0dbf1 Move warning fixes! 2017-09-30 15:23:05 +02:00
Gawaboumga 5aa072cee3 New module: Platform - Split window management from Utility module (#128)
* New module: Platform - Split window management from Utility module

Final touch

* NDK/SDK: Bring back initialization of Utility
2017-08-30 10:22:50 +02:00
Lynix a09accc22e LogoDemo: remove debug log 2017-08-16 20:34:19 +02:00
Lynix 0e99f93866 Demo: New LogoDemo for particles, yay 2017-08-16 20:32:50 +02:00
Lynix 487bd64bcf Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-06-10 22:33:03 +02:00
Jérôme Leclercq 09bace0f28 Sdk/LuaBinding: Bind UdpSocket 2017-05-18 11:44:28 +02:00
Lynix 1305e8434a Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping 2017-04-17 23:42:21 +02:00
Lynix 5b236ab09a Add test shader 2017-03-19 20:31:04 +01:00
Lynix 9341f7e62a Add Tutorial 02 source code 2017-03-13 07:55:54 +01:00
Lynix f406068c45 Utility: Rework cursors
-Rename WindowCursor to SystemCursor
-Merged Cursor class with SystemCursor enum
2017-01-16 00:32:59 +01:00
Lynix 645e4aed17 Examples/Particles: Disable compatibility profile by default 2016-12-28 18:11:19 +01:00
Lynix b4db169312 Try to fix branch 2016-12-03 00:58:01 +01:00
Lynix e6e4a437bd Merge remote-tracking branch 'refs/remotes/origin/master' into gui 2016-11-30 13:08:08 +01:00
Lynix 89aca11913 Example/FirstScene: Fix typo 2016-11-27 12:39:34 +01:00
Lynix fd605ade12 Add new particles demo (Space battle) 2016-11-24 12:14:58 +01:00
Lynix 0fa50ade91 Example/FirstScene: Fix compilation 2016-11-24 10:15:27 +01:00
Lynix df24519230 Merge remote-tracking branch 'refs/remotes/origin/master' into gui 2016-10-27 18:36:47 +02:00
Lynix 22ff8c488d Example/Build: Fix Tut00 build 2016-10-17 13:25:51 +02:00