1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 12:22:34 +01:00
Commit Graph

22 Commits

Author SHA1 Message Date
darkf
196f9f6d25 Rewrite FileIndex to use boost::filesystem instead of POSIX 2016-08-03 18:31:47 -07:00
darkf
6d6d772653 Open binary files in binary mode 2016-08-02 04:38:35 -07:00
darkf
d3084ad721 Rework how exiting and cleanup is handled.
This involves a few changes. The first changes involve
allocating GameWindow and WorkContext on the heap, so that
RWGame still owns them but chooses when they're freed.

The work queue is given a method to stop the worker thread
without destroying the work context, so that subsystems
relying on the work context may still function to shut down.

Then RWGame is rearranged to cleanup separate subsystems
in an order that does not conflict (i.e., stop the work queue,
shut down other subsystems, then the renderer, *then* the window.)

The window needs to be cleaned up *after* the renderer because it
owns the OpenGL context.
2016-07-31 07:04:52 -07:00
haphzd
114abe2286 Windows/MinGW-W64 compatibility 2016-07-28 14:46:48 +03:00
Daniel Evans
30e4a7faf1 Merge pull request #137 from haphzd/patch-1
File loading improvements
2016-06-29 22:26:58 +01:00
haphzd
e82be612a1 Open binary files in binary mode 2016-06-26 13:24:43 +03:00
Daniel Evans
7394622489 Fix missing space in RW_UNIMPLEMENTED macro 2016-06-20 20:26:01 +01:00
Jannik Vogel
727de03eb5 Introduce LoaderSDT for SDT/RAW audio files 2016-05-30 23:09:58 +02:00
Jannik Vogel
4df20821e7 Small cleanup in LoaderIMG 2016-05-30 23:08:14 +02:00
Timmy Sjöstedt
3a3c8447aa Use stat when dirent doesn't know file type 2016-05-24 20:26:31 +02:00
Timmy Sjöstedt
f2ca6ed4d1 Make RW_ERROR print to stderr 2016-05-24 17:38:41 +02:00
Timmy Sjöstedt
09c22150a0 Added RW_VERBOSE_DEBUG_MESSAGES option to control verbose messages 2016-05-24 17:32:40 +02:00
Daniel Evans
fe61c1a9f4 Move include inside debug section 2016-05-20 02:10:11 +01:00
Daniel Evans
f2fb822a83 Ensure that LoaderIMG always has the correct archive filename. 2016-05-02 01:42:27 +01:00
Daniel Evans
d2f254731a Increase warnings to pedantic and fix rwlib/rwengine warnings 2016-05-01 22:30:15 +01:00
Daniel Evans
185ba23f05 Fix all compiler warnings in rwengine. 2016-04-28 00:54:42 +01:00
Daniel Evans
bf68ddcd7c Fix compiler warnings in rwlib 2016-04-26 23:51:42 +01:00
Daniel Evans
3e9b0c64e4 Re-implement object rendering using a depth-sorted approach.
This moves the object rendering logic into ObjectRenderer. This makes
GameRenderer a bit smaller.

There are some rendering logic decisions that haven't been brought
back yet since they may be better placed elsewhere.
2016-04-19 01:20:54 +01:00
Daniel Evans
df52ded730 Add defines include to types include 2016-04-14 01:24:23 +01:00
Daniel Evans
d3a95666d4 Add RW_CHECK macro to perform runtime validation in debug 2016-04-10 18:49:23 +01:00
Daniel Evans
1df6b5c38f Add RW_DEBUG and RW_UNIMPLEMETED() macros 2016-04-09 01:28:33 +01:00
Daniel Evans
14269d8ae5 Move first of lower level code into rwlib; tear out GLEW. 2016-04-07 01:13:46 +01:00