mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 04:28:12 +02:00
Rename Paint/Idle events to Present
This commit is contained in:
parent
dd6a4dd091
commit
2d4fd783bd
4 changed files with 6 additions and 6 deletions
|
@ -1786,9 +1786,9 @@ bool Application::event(QEvent* event) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((int)event->type() == (int)Idle) {
|
if ((int)event->type() == (int)Present) {
|
||||||
idle();
|
idle();
|
||||||
removePostedEvents(this, Idle); // clear pending idles so we don't clog the pipes
|
removePostedEvents(this, Present); // clear pending presents so we don't clog the pipes
|
||||||
return true;
|
return true;
|
||||||
} else if ((int)event->type() == (int)Paint) {
|
} else if ((int)event->type() == (int)Paint) {
|
||||||
paintGL();
|
paintGL();
|
||||||
|
|
|
@ -95,8 +95,8 @@ class Application : public QApplication, public AbstractViewStateInterface, publ
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum Event {
|
enum Event {
|
||||||
Idle = DisplayPlugin::Paint,
|
Present = DisplayPlugin::Present,
|
||||||
Paint = Idle + 1,
|
Paint = Present + 1,
|
||||||
Lambda = Paint + 1
|
Lambda = Paint + 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -41,5 +41,5 @@ void DisplayPlugin::incrementPresentCount() {
|
||||||
++_presentedFrameIndex;
|
++_presentedFrameIndex;
|
||||||
|
|
||||||
// Alert the app that it needs to paint a new presentation frame
|
// Alert the app that it needs to paint a new presentation frame
|
||||||
qApp->postEvent(qApp, new QEvent(static_cast<QEvent::Type>(Paint)), Qt::HighEventPriority);
|
qApp->postEvent(qApp, new QEvent(static_cast<QEvent::Type>(Present)), Qt::HighEventPriority);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ class DisplayPlugin : public Plugin {
|
||||||
using Parent = Plugin;
|
using Parent = Plugin;
|
||||||
public:
|
public:
|
||||||
enum Event {
|
enum Event {
|
||||||
Paint = QEvent::User + 1
|
Present = QEvent::User + 1
|
||||||
};
|
};
|
||||||
|
|
||||||
bool activate() override;
|
bool activate() override;
|
||||||
|
|
Loading…
Reference in a new issue