ManaPlus
src
test
testlauncher.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2011-2019 The ManaPlus Developers
4
* Copyright (C) 2019-2021 Andrei Karas
5
*
6
* This file is part of The ManaPlus Client.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef TEST_TESTLAUNCHER_H
23
#define TEST_TESTLAUNCHER_H
24
25
#ifdef USE_OPENGL
26
27
#include <fstream>
28
29
#ifdef WIN32
30
#include <sys/time.h>
31
#endif
// WIN32
32
33
#ifdef __native_client__
34
#include <sys/time.h>
35
#endif
// __native_client__
36
37
#include "
localconsts.h
"
38
39
class
TestLauncher
final
40
{
41
public
:
42
explicit
TestLauncher
(std::string test);
43
44
A_DELETE_COPY
(
TestLauncher
)
45
46
~TestLauncher
();
47
48
int
exec
();
49
50
int
calcFps
(
const
timeval &
start
,
51
const
timeval &end,
52
const
int
calls)
const
;
53
54
int
testBackend
()
const
;
55
56
int
testSound
()
const
;
57
58
int
testRescale
()
const
;
59
60
int
testFps
();
61
62
int
testFps2
();
63
64
int
testFps3
();
65
66
int
testInternal
();
67
68
int
testDye
();
69
70
int
testVideoDetection
();
71
72
int
testBatches
();
73
74
int
testTextures
();
75
76
int
testDraw
();
77
78
int
testDyeSSpeed
();
79
80
int
testDyeASpeed
();
81
82
int
testStackSpeed
();
83
84
int
testBlitSpeed
();
85
86
private
:
87
std::string
mTest
;
88
89
std::ofstream
file
;
90
};
91
92
#endif
// USE_OPENGL
93
#endif
// TEST_TESTLAUNCHER_H
TestLauncher
Definition:
testlauncher.h:40
TestLauncher::mTest
std::string mTest
Definition:
testlauncher.h:87
TestLauncher::testInternal
int testInternal()
TestLauncher::testDyeASpeed
int testDyeASpeed()
Definition:
testlauncher.cpp:569
TestLauncher::testTextures
int testTextures()
Definition:
testlauncher.cpp:324
TestLauncher::testVideoDetection
int testVideoDetection()
Definition:
testlauncher.cpp:814
TestLauncher::testDraw
int testDraw()
Definition:
testlauncher.cpp:732
TestLauncher::testRescale
int testRescale() const
Definition:
testlauncher.cpp:170
TestLauncher::calcFps
int calcFps(const timeval &start, const timeval &end, const int calls) const
Definition:
testlauncher.cpp:821
TestLauncher::testSound
int testSound() const
Definition:
testlauncher.cpp:159
TestLauncher::testDyeSSpeed
int testDyeSSpeed()
Definition:
testlauncher.cpp:550
TestLauncher::TestLauncher
TestLauncher(std::string test)
Definition:
testlauncher.cpp:90
TestLauncher::testDye
int testDye()
TestLauncher::exec
int exec()
Definition:
testlauncher.cpp:103
TestLauncher::testFps3
int testFps3()
Definition:
testlauncher.cpp:267
TestLauncher::~TestLauncher
~TestLauncher()
Definition:
testlauncher.cpp:98
TestLauncher::file
std::ofstream file
Definition:
testlauncher.h:89
TestLauncher::testBlitSpeed
int testBlitSpeed()
Definition:
testlauncher.cpp:588
TestLauncher::testStackSpeed
int testStackSpeed()
Definition:
testlauncher.cpp:649
TestLauncher::testFps2
int testFps2()
Definition:
testlauncher.cpp:235
TestLauncher::testBatches
int testBatches()
TestLauncher::testFps
int testFps()
TestLauncher::testBackend
int testBackend() const
Definition:
testlauncher.cpp:141
localconsts.h
final
#define final
Definition:
localconsts.h:46
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition:
localconsts.h:53
anonymous_namespace{stringutils.cpp}::start
unsigned int start
Definition:
stringutils.cpp:228
Generated on Wed Mar 17 2021 19:19:10 for ManaPlus by
1.9.1