Anonymous Maarten
fb58dfb082
rwengine: iwyu: reduce warnings in engine subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
a7203e00a0
rwengine: iwyu: reduce warnings in dynamics subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
590509037c
cmake: let sources depend on the iwyu mapping file
2018-01-08 22:52:48 +00:00
Anonymous Maarten
e60fd6af6b
rwengine: iwyu: fix warnings in data subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
9b98133a91
rwengine: iwyu: no warnings in core subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
428efd8fb1
openrw: iwyu: reduce warnings in audio subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
b6b53ffdad
rwengine: iwyu: reduce warnings in ai subdirectory
2018-01-08 22:52:48 +00:00
Anonymous Maarten
29188f26f2
rwengine: iwyu: fix TextureArchive and BinaryStream
2018-01-08 22:52:48 +00:00
Anonymous Maarten
90acef28f7
rwlib: iwyu: reduce warnings
...
- use mapping file
- forward define FileContentsInfo, CutsceneTracks, GameTexts
- no more "#pragma once"
- add mapping file
2018-01-08 22:52:48 +00:00
Anonymous Maarten
bb09015cad
ctest: No need to run ctest_coverage() twice
2018-01-08 22:52:48 +00:00
Filip Gawin
6d80ce6424
Cleanup, use c++11 override
...
Maybe some of replace with
final, what do think?
2018-01-08 22:35:21 +00:00
Filip Gawin
4a3a6daa9f
Change type of GameBase dtor to virtual
...
There's no usage of this class, so
I've set dtor to pure virtual.
2018-01-08 22:35:21 +00:00
Filip Gawin
8cc8be5603
Small change, new -> make_shared.
2018-01-05 06:51:58 +00:00
Anonymous Maarten
c758160d09
spelling: seperate -> separate
2018-01-05 06:21:34 +00:00
Anonymous Maarten
f14bf308cf
rwlib: rwlib has a dependency on glm
2018-01-05 06:21:34 +00:00
Anonymous Maarten
0422a6b5c0
cmake: Do not overwrite INTERFACE_LINK_LIBRARIES prop on TEST_COVERAGE
2018-01-05 06:21:34 +00:00
Anonymous Maarten
21c722f7cc
run_tests: fix 'Type has to implement operator<< to be printable' (MSVC compiler)
...
fixes:
error C2338: Type has to implement operator<< to be printable
error C2679: binary '<<': no operator found which takes a right-hand
operand of type 'const boost::filesystem::path::string_type' (or there
is no acceptable conversion)
2018-01-05 06:21:34 +00:00
Anonymous Maarten
382c28c9e3
rwengine: fix "initialization of 'specialPrefix' is skipped by 'default' label
...
vs2017: Compiler error C2361
2018-01-05 06:21:34 +00:00
Filip Gawin
ef4456e623
size() -> empty()
...
Empty has always
computational complexity O(1).
2017-12-17 01:48:49 +00:00
Anonymous Maarten
66b576dcee
cmake: simplify packages to ALIASed libraries
2017-12-17 01:36:08 +00:00
Anonymous Maarten
9231ecbcb0
cmake: use OpenGL::GL instead of OpenGL::OpenGL
...
- OpenGL::GL -> defined to the platform-specific OpenGL libraries
- OpenGL::OpenGL -> defined to libOpenGL if the system is GLVND
2017-12-17 01:36:08 +00:00
Anonymous Maarten
934506f0c8
cmake: Optionally create XXX:XXX targets for override packages
2017-12-17 01:36:08 +00:00
Anonymous Maarten
4dc7da89ad
tests: boost 1.64 has a print_log_value<nullptr_t> implementation
...
fixes:
error C2766: explicit specialization;
'boost::test_tools::tt_detail::print_log_value<std::nullptr_t>' has
already been defined
C:\Boost\include\boost-1_64\boost/test/tools/detail/print_helper.hpp(169):
note: see previous definition of 'print_log_value<std::nullptr_t>
2017-12-17 01:31:09 +00:00
Miloslav Číž
57284fdade
Fix particle rendering transform matrix
2017-11-20 21:48:00 +00:00
Filip Gawin
d934f1c9b0
Forgotten flush of packet
2017-11-17 22:53:42 +00:00
Anonymous Maarten
6ab7f642ac
rwgame: group command line arguments thematically
...
New output:
$ ./rwgame --help
I [Game] Build: 815c63cf
Generic options:
-c [ --config ] PATH Path of configuration file
--help Show this help message
Window options:
-w [ --width ] WIDTH Game resolution width in pixel
-h [ --height ] HEIGHT Game resolution height in pixel
-f [ --fullscreen ] Enable fullscreen mode
Game options:
-n [ --newgame ] Directly start a new game
-l [ --load ] PATH Load save file
Developer options:
-t [ --test ] Starts a new game in a test location
-b [ --benchmark ] PATH Run benchmark from file
2017-11-17 00:50:50 +00:00
Anonymous Maarten
c5523d6728
rwengine: Remove usused SCMTypeInfoTable
2017-11-17 00:50:50 +00:00
Anonymous Maarten
6142e0bf80
rwengine: remove unused ScriptDisassembly
2017-11-17 00:50:50 +00:00
Anonymous Maarten
deb7db5faf
rwengine: remove ScriptFunctionMeta->conditional + extended definition
...
Not used anywhere
2017-11-17 00:50:50 +00:00
Anonymous Maarten
4bf95cd903
rwengine: SCMMicrocode is not used anywhere
2017-11-17 00:50:50 +00:00
Anonymous Maarten
5299f4df08
spelling: yeild -> yield
2017-11-17 00:50:50 +00:00
Anonymous Maarten
85ac15078a
rwengine: Removed unused functions and defines
2017-11-17 00:50:50 +00:00
Anonymous Maarten
1378931eba
rwengine: throw runtime_error on shader error instead of straight exit
2017-11-17 00:50:50 +00:00
Anonymous Maarten
853c1a01b2
rwgame: remove unused unimplemented function definitions
2017-11-17 00:50:50 +00:00
Anonymous Maarten
07a5729cef
rwgame: create matrix from vectors (instead of elements)
2017-11-17 00:50:50 +00:00
Anonymous Maarten
a9f009f97f
rwgame: do not copy cheat names
2017-11-17 00:50:50 +00:00
Anonymous Maarten
5edead61d0
rwgame: create texture filename in buffer in one go
2017-11-17 00:50:50 +00:00
Anonymous Maarten
32fb5eb409
rwlib: LoaderIMG accepts rwfs::path
2017-11-17 00:50:50 +00:00
Anonymous Maarten
820c4bd25c
rwengine: GameData accepts rwfs::path as path of game data
2017-11-17 00:50:50 +00:00
Anonymous Maarten
55dd0beea0
rwgame: allow configuration files from all places (not only config path)
...
- add it as an argument to the rwgame executable
- update the tests
2017-11-17 00:50:50 +00:00
Anonymous Maarten
6dffed543a
rwlib: add error_code to rwfs namespace
...
Some rwfs functions need an error_code argument.
2017-11-17 00:50:50 +00:00
Anonymous Maarten
0078a5c9b5
ci: let travis build tests with both TEST_NODATA=0 and 1
2017-10-31 08:17:34 +00:00
Anonymous Maarten
adc8255d4b
tests: test_FileIndex needs include of rw/filesystem.hpp
2017-10-31 08:17:34 +00:00
Daniel Evans
9c48b4424a
Add build time option for CXX17 or boost filesystem
2017-10-31 00:55:19 +00:00
Anonymous Maarten
a40a2706a9
cmake: add support for include-what-you-use to check #include's
...
The output is currently very verbose and includes many false positives.
Adding a mapping file should solve this.
See
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
2017-10-29 20:40:57 +00:00
Anonymous Maarten
7e1da8dc0a
tests: increase test timeout
...
The GameData tests take relatively long and might time out.
2017-10-29 20:40:57 +00:00
Anonymous Maarten
a0895d0b2c
ctest: the get_git_head_revision expects CMAKE_CURRENT_BINARY_DIR to be set
2017-10-29 20:40:57 +00:00
Anonymous Maarten
8f4c770a26
cmake/tests: Fix naming and timing of ItemTests test suite
2017-10-29 20:40:57 +00:00
Anonymous Maarten
9e8a96ab7e
tests: execute each test separately by CTest
...
Disabled by default because empty test suites fail and would cause
Travis to fail.
There can be empty test suites when testing with no data.
2017-10-29 20:40:57 +00:00
Anonymous Maarten
a9f8f27b21
cmake: add coverage support
2017-10-29 20:40:57 +00:00