Daniel Evans
8a19f9b5d0
clang-format files in rwlib/source/platform
2016-09-09 21:13:21 +01:00
Daniel Evans
c4bb714e54
clang-format files in rwlib/source/gl
2016-09-09 21:13:21 +01:00
Daniel Evans
4308a55ee8
clang-format files in rwlib/source/data
2016-09-09 21:13:21 +01:00
Daniel Evans
1219075e1a
clang-format files in rwlib/source/job
2016-09-09 21:13:21 +01:00
Daniel Evans
981d68713b
clang-format files in rwlib/source/loaders
2016-09-09 21:13:21 +01:00
Daniel Evans
94cc76d36a
clang-format files in rwlib/source/rw
2016-09-09 21:13:21 +01:00
Daniel Evans
239d19a310
Don't cast from wide chars to chars on windows
2016-09-09 00:07:17 +01:00
PerikiyoXD
62d0bf796a
Fixed .native() and some cast errors
...
Signed-off-by: PerikiyoXD <perikiyoxd@gmail.com>
2016-09-08 21:17:30 +02:00
Daniel Evans
d7dea62f04
remove unused method FileIndex::findFile
2016-09-07 22:06:38 +01:00
dan
23e25ed751
Add new openFilePath method to FileIndex
2016-09-07 01:34:42 +01:00
Daniel Evans
674ce55af3
Replace findPathRealCase with FileIndex methods
...
This introduces indexGameDirectory and findFilePath.
indexGameDirectory indexes the files in the game directory.
findFilePath returns the on-disk location of a case-insensitive
game data path.
2016-09-06 00:23:25 +01:00
dan
772c93d463
Use correct header guards in FileHandle.hpp
2016-09-06 00:23:25 +01:00
Daniel Evans
ad7f3ba071
Use correct header guard in FileIndex.hpp
2016-09-06 00:23:25 +01:00
Jannik Vogel
571fd08631
Replace strcasecmp with boost::iequals
2016-08-12 02:14:15 +02:00
Jannik Vogel
cb347143f8
Cleanup: Replace non-std C++ code
2016-08-12 02:14:15 +02:00
Jannik Vogel
bda0107bb1
Cleanup: include-what-you-use
2016-08-12 02:14:15 +02:00
Daniel Evans
3a26d09b5f
Delete a.out that shouldn't be here
2016-08-07 17:53:02 +01:00
Daniel Evans
a0057d1a01
Merge pull request #184 from darkf/omgthreadz
...
Fix the construction of WorkContext
2016-08-06 18:23:13 +01:00
darkf
0242868caa
Use boost::make_iterator_range, as older boost lacks ranges in filesystem iterators
2016-08-06 08:43:28 -07:00
darkf
e58be26be8
Fix the construction of WorkContext
...
Previously the worker thread was constructed before the queue was, leading to
unfortunate race conditions. This fixes that, along with unrelated minor cleanup.
2016-08-05 09:42:03 -07:00
darkf
2147b3abdf
Remove unneeded msdirent.h
2016-08-03 18:31:47 -07:00
darkf
40705a6666
Rewrite findPathRealCase to use boost::filesystem, move it to FileIndex
2016-08-03 18:31:47 -07:00
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