GlistEngine
Loading...
Searching...
No Matches
gGUIAppThread.h
Go to the documentation of this file.
1/*
2 * gGUIAppThread.h
3 *
4 * Created on: 9 Aug 2024
5 * Author: noyan
6 */
7
8#ifndef CORE_GGUIAPPTHREAD_H_
9#define CORE_GGUIAPPTHREAD_H_
10
11#include "gThread.h"
12#include "gBaseApp.h"
13
14
15class gGUIAppThread : public gThread {
16public:
18 virtual ~gGUIAppThread();
19
21
22 void setTargetFramerate(int framerate);
24
25private:
26 gBaseApp* root;
27 int targetframerate;
28 std::chrono::duration<double, std::milli> sleepdurationmillis;
29};
30
31#endif /* CORE_GGUIAPPTHREAD_H_ */
Definition gBaseApp.h:16
Definition gGUIAppThread.h:15
void threadFunction()
int getTargetFramerate()
gGUIAppThread(gBaseApp *root)
void setTargetFramerate(int framerate)
virtual ~gGUIAppThread()
Definition gThread.h:28