1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#include <engine.h>
#include <interactor.h>
#include <options.h>
#include <window.h>
#include <iostream>
#include "TestSDKHelpers.h"
int TestSDKInteractorDropFullScene(int argc, char* argv[])
{
f3d::engine eng = f3d::engine::create(true);
const f3d::options& options = eng.getOptions();
f3d::window& win = eng.getWindow();
f3d::interactor& inter = eng.getInteractor();
win.setSize(300, 300);
win.render();
std::string filename = "TestSDKInteractorDropFullScene";
std::string interactionFilePath = std::string(argv[2]) + "../../" + filename + ".log";
inter.playInteraction(interactionFilePath); // world.obj; S
return TestSDKHelpers::RenderTest(
win, std::string(argv[1]) + "baselines/", std::string(argv[2]), filename)
? EXIT_SUCCESS
: EXIT_FAILURE;
}
|