Commit graph

8127 commits

Author SHA1 Message Date
Erik Ogenvik
4d35342fe4 WIP adding Github actions support. 2021-04-09 22:17:34 +02:00
Erik Ogenvik
e7359fb1b1 Use Ogre 1.12.11. 2021-04-09 11:06:45 +02:00
Erik Ogenvik
39c9d3d695 Protect against executing a deleted handler. 2021-04-07 20:41:51 +02:00
Erik Ogenvik
fe902ec997 Fixed issue where nothing was rendered if the cursor was disabled.
The reason seemed to be that the last rendered window in that situation set the scissor test to a portion of the screen,
and Ogre didn't reset it.
With the cursor this wasn't an issue, since it's always rendered last and it sets the scissor test to the whole screen.
2021-04-07 16:44:10 +02:00
Erik Ogenvik
d6fd289d79 Use Ogre 1.12.6 2021-04-07 13:46:07 +02:00
Erik Ogenvik
1db683753b Don't use deprecated method. 2021-04-06 22:00:06 +02:00
Erik Ogenvik
863880bcdb Don't allocate on heap for simple structs. 2021-04-06 21:59:39 +02:00
Erik Ogenvik
5e94fb1644 Reset log level back to what it was before. 2021-04-06 19:59:08 +02:00
Erik Ogenvik
4dfee48f4b Separate out IO and rendering.
Don't do IO in the middle of rendering as there's all kind of issues with regards to the Ogre state being possible updated while in the render loop.
2021-04-06 13:53:05 +02:00
Erik Ogenvik
ad32e05c51 Use correct type. 2021-01-27 11:51:31 +01:00
Erik Ogenvik
ed06c5d92b Fix windows compile. 2021-01-27 11:51:19 +01:00
Erik Ogenvik
0f3bec2d38 Remove unused code from Application. 2021-01-27 00:10:17 +01:00
Erik Ogenvik
cdc5d90095 Remove more Service complexity. 2021-01-27 00:02:18 +01:00
Erik Ogenvik
e1a90bbfe3 Simplify service setup and shutdown. 2021-01-26 23:59:53 +01:00
Erik Ogenvik
77d5375ab6 Remove debug output. 2021-01-26 23:09:43 +01:00
Erik Ogenvik
d7c146e9a9 Simplify start and stop. 2021-01-26 23:09:33 +01:00
Erik Ogenvik
f4fb24a6d3 Use a simpler struct. 2020-11-09 22:27:46 +01:00
Erik Ogenvik
e6c5bf127d Maintain buffer list size. 2020-11-03 00:13:07 +01:00
Erik Ogenvik
96946ec262 Add a default scale adapters when creating any type. 2020-11-02 00:19:01 +01:00
Erik Ogenvik
be432e9162 Handle entity already being deleted. 2020-11-01 23:55:16 +01:00
Erik Ogenvik
89c78751fa Make sure windows aren't double deleted. 2020-11-01 23:45:38 +01:00
Erik Ogenvik
7abdfe70b1 Remove unused features. 2020-11-01 23:16:55 +01:00
Erik Ogenvik
f4bfee36ae Make foliage handling simpler. 2020-11-01 16:50:48 +01:00
Erik Ogenvik
1eda8b75a7 Make sure shaders are applied in background thread. 2020-11-01 14:43:56 +01:00
Erik Ogenvik
783c181cd9 Clean up types. 2020-10-31 23:03:41 +01:00
Erik Ogenvik
b67853d4ab Remove obsolete lighting and apply formatting. 2020-10-31 21:43:05 +01:00
Erik Ogenvik
3e9e393a2c Use C++ function. 2020-10-30 16:49:42 +01:00
Erik Ogenvik
153774127b Also show archetypes in creator widget. 2020-10-29 23:37:12 +01:00
Erik Ogenvik
a726afae35 Added include for compatibility. 2020-10-28 23:47:04 +01:00
Erik Ogenvik
89b9029aa5 Don't use moved ptr. 2020-10-28 16:00:41 +01:00
Erik Ogenvik
c23b4efda2 Adapt to changes in Eris. 2020-10-28 15:53:35 +01:00
Erik Ogenvik
00e954a9e2 Code cleanup. 2020-10-28 13:27:05 +01:00
Erik Ogenvik
c5ec9b522b Fixed copying of wrong data. 2020-10-28 13:24:50 +01:00
Erik Ogenvik
15c45bcac7 Fixed types and casts. 2020-10-27 00:09:44 +01:00
Erik Ogenvik
6e3ed90144 Fixed usage of invalid unique_ptr<void>. 2020-10-27 00:09:26 +01:00
Erik Ogenvik
2bcb69e316 Simplify widget pool. 2020-10-26 22:47:11 +01:00
Erik Ogenvik
48a937e72b Fixed memory corruption. 2020-10-26 20:51:21 +01:00
Erik Ogenvik
f081233658 Use unique_ptr where possible. 2020-10-26 00:22:41 +01:00
Erik Ogenvik
349c453877 Improve handling of terrain mods, and memory overall. 2020-10-25 21:16:57 +01:00
Erik Ogenvik
3b51d17176 Adapt area handling. 2020-10-25 14:55:49 +01:00
Erik Ogenvik
01b3146b1d Improve memory handling with unique_ptr. 2020-10-24 22:29:45 +02:00
Erik Ogenvik
4793fe9535 Improve memory handling with unique_ptr. 2020-10-24 21:56:47 +02:00
Erik Ogenvik
d424b3b7cc Remove setting padding to zero.
As that's in most cases not used anyways.
2020-10-24 15:02:28 +02:00
Erik Ogenvik
131688d831 Don't set default mip maps. 2020-10-24 14:51:32 +02:00
Erik Ogenvik
0d46a97bfc Moved LodManager setup to OgreSetup class. 2020-10-22 23:01:57 +02:00
Erik Ogenvik
65e94a9856 Remove complex shut down logic. 2020-10-22 21:57:34 +02:00
Erik Ogenvik
7c0802c09f Simplify more of startup and object creation. 2020-10-22 21:06:41 +02:00
Erik Ogenvik
8c58d655fd Fixed incorrect method call. 2020-10-22 21:06:26 +02:00
Erik Ogenvik
8fa8115472 Restructure startup to avoid dangling pointers. 2020-10-22 20:01:15 +02:00
Erik Ogenvik
56b48856cd Use unique_ptr to better handle memory. 2020-10-21 23:15:19 +02:00