-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <engine.h> | ||
#include <interactor.h> | ||
#include <log.h> | ||
#include <options.h> | ||
#include <scene.h> | ||
#include <window.h> | ||
|
||
#include <iostream> | ||
|
||
int TestSDKEngineRecreation (int argc, char* argv[]) { | ||
|
||
std::string filename = "TestSDKEngineRecreation"; | ||
std::string interactionFilePath = std::string(argv[2]) + "../../" + filename + ".log"; | ||
f3d::engine* eng = new f3d::engine(f3d::engine::create(false)); | ||
eng->getInteractor().start(1/30, [eng](){ | ||
eng->getInteractor().stop(); | ||
}); | ||
delete eng; | ||
for (int i = 0; i < 5; i++) { | ||
f3d::engine* eng2 = new f3d::engine(f3d::engine::create(false)); | ||
eng2->getInteractor().playInteraction(interactionFilePath); | ||
} | ||
|
||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# StreamVersion 1.2 | ||
ExposeEvent 0 599 0 0 0 0 0 | ||
RenderEvent 0 599 0 0 0 0 0 | ||
TimerEvent 0 599 0 0 0 0 0 | ||
TimerEvent 0 599 0 0 0 0 0 | ||
KeyPressEvent -379 463 0 27 1 Escape 0 | ||
CharEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
KeyReleaseEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
KeyPressEvent -379 463 0 27 1 Escape 0 | ||
CharEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
KeyReleaseEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 | ||
TimerEvent -379 463 0 27 1 Escape 0 |