1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
Commit Graph

57 Commits

Author SHA1 Message Date
Christoph Heiss
fab9047ef9 Update OpenGL loader files.
Generated using:
lua LoadGen.lua -style=noload_c -spec=gl -version=3.3 -profile=core core_3_3 -stdext=gl_ubiquitous.txt -stdext=gl_core_post_3_3.txt
2017-10-13 19:54:10 +01:00
Anonymous Maarten
02c60311ee rwlib/rwengine: make use of RW_ASSERT instead of assert 2017-09-16 22:19:39 +01:00
Anonymous Maarten
a1333360c5 rwlib: Add option to abort/break on failed checks or at request
- RW_ABORT/RW_ASSERT/RW_BREAKPOINT are only defined in debug mode
- the callback is needed to unlock the mouse when entering
    the debugger
2017-09-16 22:19:39 +01:00
Daniel Evans
ac8d6733cb Add clone methods to Clump, Atomic and ModelFrame to permit copying 2017-02-08 21:44:25 +00:00
Daniel Evans
d798509f93 Use Atomic instead of ModelFrame in ObjectRenderer 2017-02-08 21:44:25 +00:00
Daniel Evans
34c70b0be2 Allow ModelFrame, Atomic, Geometry to exist outside of a Clump
This changes the Clump data structure to simplify it and move some
of the concerns into the Atomic and Frame types.
2017-02-08 21:44:25 +00:00
Daniel Evans
a0eaf5b8b0 Move Atomic and Geometry out of Clump class 2017-02-08 21:44:25 +00:00
Daniel Evans
8e4d73fca9 Rename Model -> Clump 2017-02-08 21:44:25 +00:00
Daniel Evans
6ca849dd8f Drop alpha name from TextureArchive lookup 2016-12-03 21:59:37 +00:00
Daniel Evans
15427b8f99 Add texture lookup callback to LoaderDFF 2016-12-03 21:59:37 +00:00
Daniel Evans
8d10c80196 Remove all traces of WorkContext 2016-12-02 01:00:22 +00:00
Daniel Evans
7ad8ae5e40 Make loadTXD synchronous only 2016-12-02 00:42:38 +00:00
Daniel Evans
462479b992 Remove ResourceHandle.hpp 2016-10-05 22:38:35 +01:00
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