contains data about test results and has code to run the tests More...
#include <test.h>
Public Member Functions | |
Test (int _duration, int type, TScene *ps) | |
Test class basic constructor. | |
virtual void | SaveResults () |
Calculate average framerate and save results. | |
virtual void | Run () |
Test run, counts FPS and increment time. | |
virtual void | Animate () |
Test animation: increment animation variable and perform various animations. | |
bool | HasEnded () |
has test come to an end? | |
void | InitTime () |
set initial time after test has been loaded | |
void | UpdateFPS (unsigned _fps) |
update FPS count from timer thread | |
int | GetFrames () |
get total rendered frames | |
float | GetScore () |
return actual test score | |
Protected Attributes | |
TScene * | s |
pointer to scene we are rendering into | |
string | testname |
current test name | |
float | avg_fps |
average frame rate | |
unsigned | duration |
total test duration | |
unsigned | start_time |
test start time | |
unsigned | split_time |
test finish time | |
int | total_frames |
total rendered frames | |
int | type |
test type | |
float | anim |
animation movement, | |
float | fps |
actual frames per second | |
int | splits |
subtest count (splits) | |
int | curr_setup |
current setup | |
bool | splitbit |
partial scenes split sign | |
bool | stopbit |
test stop sign | |
bool | draw_scene |
shall we draw scene? | |
string | msg |
variable for text | |
float | part_FPS [5] |
partial FPS for every subtest | |
float | test_score |
final test score | |
float | weight |
test importance |
contains data about test results and has code to run the tests
Test::Test | ( | int | _duration, | |
int | _type, | |||
TScene * | ps | |||
) |
Test class basic constructor.
_duration | duration of the test | |
_type | test type | |
ps | pointer to scene |