Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_main_loop.hpp « qt_tstfrm - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 00c330e50e8d1d387e5c36cabd884e298d4f8c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <functional>

class QPaintDevice;
using RenderFunction = std::function<void (QPaintDevice *)>;
using TestFunction = std::function<void (bool apiOpenGLES3)>;

extern void RunTestLoop(char const * testName, RenderFunction && fn, bool autoExit = true);

extern void RunTestInOpenGLOffscreenEnvironment(char const * testName, bool apiOpenGLES3, TestFunction const & fn);