mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-09 12:22:34 +01:00
5b9c95d346
+ Add CutsceneData structures to store the data required. + Implement screen fading in and out (todo: splash screen fading) + Add GameData::openFile2() returns a handle to open file memory + size + Fix fog implementation + Add screenspace rect to GameRenderer for fades and cinematics
33 lines
774 B
C++
33 lines
774 B
C++
#include <boost/test/unit_test.hpp>
|
|
#include <data/CutsceneData.hpp>
|
|
#include <loaders/LoaderCutsceneDAT.hpp>
|
|
#include "test_globals.hpp"
|
|
|
|
BOOST_AUTO_TEST_SUITE(CutsceneTests)
|
|
|
|
BOOST_AUTO_TEST_CASE(test_load)
|
|
{
|
|
{
|
|
auto d = Global::get().e->gameData.openFile2("intro.dat");
|
|
|
|
CutsceneTracks tracks;
|
|
|
|
LoaderCutsceneDAT loader;
|
|
|
|
loader.load( tracks, d );
|
|
|
|
BOOST_CHECK( tracks.position.find(0.f) != tracks.position.end() );
|
|
BOOST_CHECK( tracks.position.find(64.8f) != tracks.position.end() );
|
|
|
|
BOOST_CHECK( tracks.zoom.find(64.8f) != tracks.zoom.end() );
|
|
|
|
BOOST_CHECK( tracks.zoom.find(64.8f) != tracks.zoom.end() );
|
|
|
|
BOOST_CHECK( tracks.target.find(64.8f) != tracks.target.end() );
|
|
|
|
BOOST_CHECK( tracks.duration == 64.8f );
|
|
}
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|