ManaPlus
|
#include <testlauncher.h>
Public Member Functions | |
TestLauncher (std::string test) | |
~TestLauncher () | |
int | exec () |
int | calcFps (const timeval &start, const timeval &end, const int calls) const |
int | testBackend () const |
int | testSound () const |
int | testRescale () const |
int | testFps () |
int | testFps2 () |
int | testFps3 () |
int | testInternal () |
int | testDye () |
int | testVideoDetection () |
int | testBatches () |
int | testTextures () |
int | testDraw () |
int | testDyeSSpeed () |
int | testDyeASpeed () |
int | testStackSpeed () |
int | testBlitSpeed () |
Private Attributes | |
std::string | mTest |
std::ofstream | file |
Definition at line 39 of file testlauncher.h.
|
explicit |
Definition at line 90 of file testlauncher.cpp.
References file, Settings::localDataDir, pathJoin(), and settings.
TestLauncher::~TestLauncher | ( | ) |
int TestLauncher::calcFps | ( | const timeval & | start, |
const timeval & | end, | ||
const int | calls | ||
) | const |
Definition at line 821 of file testlauncher.cpp.
References CAST_S32, and anonymous_namespace{stringutils.cpp}::start.
Referenced by PRAGMA45(), testFps2(), and testFps3().
int TestLauncher::exec | ( | ) |
Definition at line 103 of file testlauncher.cpp.
References mTest, testBackend(), testBatches(), testBlitSpeed(), testDraw(), testDye(), testDyeASpeed(), testDyeSSpeed(), testFps(), testFps2(), testFps3(), testInternal(), testRescale(), testSound(), testStackSpeed(), testTextures(), and testVideoDetection().
int TestLauncher::testBackend | ( | ) | const |
Definition at line 141 of file testlauncher.cpp.
References Graphics::drawImage(), Theme::getImageFromTheme(), mainGraphics, and Graphics::updateScreen().
Referenced by exec().
int TestLauncher::testBatches | ( | ) |
Referenced by exec().
int TestLauncher::testBlitSpeed | ( | ) |
Definition at line 588 of file testlauncher.cpp.
References ImageHelper::create32BitSurface(), imageHelper, and SDLgfxBlitRGBA().
Referenced by exec().
int TestLauncher::testDraw | ( | ) |
Definition at line 732 of file testlauncher.cpp.
References boldFont, Graphics::calcPattern(), Graphics::calcTileVertexes(), Graphics::calcWindow(), Graphics::drawImage(), Graphics::drawLine(), Graphics::drawNet(), Graphics::drawPattern(), Graphics::drawPoint(), Graphics::drawRectangle(), Graphics::drawRescaledImage(), Graphics::drawRescaledPattern(), Font::drawString(), Graphics::drawTileCollection(), Graphics::drawTileVertexes(), Graphics::fillRectangle(), Graphics::finalize(), Skin::getBorder(), Theme::getImageFromTheme(), Theme::getThemePath(), ImageVertexes::image, Theme::load(), mainGraphics, Graphics::popClipArea(), Graphics::pushClipArea(), Graphics::setColor(), theme, and Graphics::updateScreen().
Referenced by exec().
int TestLauncher::testDye | ( | ) |
Referenced by exec().
int TestLauncher::testDyeASpeed | ( | ) |
int TestLauncher::testDyeSSpeed | ( | ) |
int TestLauncher::testFps | ( | ) |
Referenced by exec().
int TestLauncher::testFps2 | ( | ) |
Definition at line 235 of file testlauncher.cpp.
References calcFps(), Graphics::drawImage(), file, Theme::getImageFromTheme(), Wallpaper::getWallpaper(), Wallpaper::loadWallpapers(), mainGraphics, mTest, anonymous_namespace{stringutils.cpp}::start, Graphics::testDraw(), and Graphics::updateScreen().
Referenced by exec().
int TestLauncher::testFps3 | ( | ) |
Definition at line 267 of file testlauncher.cpp.
References calcFps(), Graphics::calcTileVertexes(), Graphics::drawTileVertexes(), file, Graphics::finalize(), Theme::getImageFromTheme(), Wallpaper::getWallpaper(), ImageVertexes::image, Wallpaper::loadWallpapers(), mainGraphics, mTest, anonymous_namespace{stringutils.cpp}::start, and Graphics::updateScreen().
Referenced by exec().
int TestLauncher::testInternal | ( | ) |
Referenced by exec().
int TestLauncher::testRescale | ( | ) | const |
Definition at line 170 of file testlauncher.cpp.
References Theme::getImageFromTheme(), Wallpaper::getWallpaper(), and Wallpaper::loadWallpapers().
Referenced by exec().
int TestLauncher::testSound | ( | ) | const |
Definition at line 159 of file testlauncher.cpp.
References SoundManager::playGuiSfx(), SoundManager::playMusic(), SoundManager::playSfx(), SkipError_false, soundManager, and SoundManager::stopMusic().
Referenced by exec().
int TestLauncher::testStackSpeed | ( | ) |
int TestLauncher::testTextures | ( | ) |
Definition at line 324 of file testlauncher.cpp.
References Graphics::clearScreen(), ImageHelper::convertTo32Bit(), ImageHelper::create32BitSurface(), Graphics::drawImage(), file, GraphicsManager::getLastError(), GraphicsManager::getLastErrorCached(), ScreenshotHelper::getScreenshot(), OpenGLImageHelper::getTextureSize(), graphicsManager, imageHelper, ImageHelper::loadSurface(), mainGraphics, mTest, GraphicsManager::resetCachedError(), screenshortHelper, and Graphics::updateScreen().
Referenced by exec().
int TestLauncher::testVideoDetection | ( | ) |
Definition at line 814 of file testlauncher.cpp.
References GraphicsManager::detectGraphics(), file, graphicsManager, and mTest.
Referenced by exec().
|
private |
Definition at line 89 of file testlauncher.h.
Referenced by PRAGMA45(), testFps2(), testFps3(), TestLauncher(), testTextures(), testVideoDetection(), and ~TestLauncher().
|
private |
Definition at line 87 of file testlauncher.h.
Referenced by exec(), PRAGMA45(), testFps2(), testFps3(), testTextures(), and testVideoDetection().