mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
Remove unused methods
This commit is contained in:
parent
966d711e56
commit
c1e256a4f3
5 changed files with 0 additions and 15 deletions
|
@ -21,10 +21,6 @@ glm::uvec2 NullDisplayPlugin::getRecommendedRenderSize() const {
|
||||||
return glm::uvec2(100, 100);
|
return glm::uvec2(100, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NullDisplayPlugin::hasFocus() const {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NullDisplayPlugin::submitFrame(const gpu::FramePointer& frame) {
|
void NullDisplayPlugin::submitFrame(const gpu::FramePointer& frame) {
|
||||||
if (frame) {
|
if (frame) {
|
||||||
_gpuContext->consumeFrameUpdates(frame);
|
_gpuContext->consumeFrameUpdates(frame);
|
||||||
|
|
|
@ -16,7 +16,6 @@ public:
|
||||||
grouping getGrouping() const override { return DEVELOPER; }
|
grouping getGrouping() const override { return DEVELOPER; }
|
||||||
|
|
||||||
glm::uvec2 getRecommendedRenderSize() const override;
|
glm::uvec2 getRecommendedRenderSize() const override;
|
||||||
bool hasFocus() const override;
|
|
||||||
void submitFrame(const gpu::FramePointer& newFrame) override;
|
void submitFrame(const gpu::FramePointer& newFrame) override;
|
||||||
QImage getScreenshot(float aspectRatio = 0.0f) const override;
|
QImage getScreenshot(float aspectRatio = 0.0f) const override;
|
||||||
QImage getSecondaryCameraScreenshot() const override;
|
QImage getSecondaryCameraScreenshot() const override;
|
||||||
|
|
|
@ -828,11 +828,6 @@ glm::uvec2 OpenGLDisplayPlugin::getSurfaceSize() const {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OpenGLDisplayPlugin::hasFocus() const {
|
|
||||||
auto window = _container->getPrimaryWidget();
|
|
||||||
return window ? window->hasFocus() : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void OpenGLDisplayPlugin::assertNotPresentThread() const {
|
void OpenGLDisplayPlugin::assertNotPresentThread() const {
|
||||||
Q_ASSERT(QThread::currentThread() != _presentThread);
|
Q_ASSERT(QThread::currentThread() != _presentThread);
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,8 +98,6 @@ protected:
|
||||||
virtual void compositePointer();
|
virtual void compositePointer();
|
||||||
virtual void compositeExtra() {};
|
virtual void compositeExtra() {};
|
||||||
|
|
||||||
virtual bool hasFocus() const override;
|
|
||||||
|
|
||||||
// These functions must only be called on the presentation thread
|
// These functions must only be called on the presentation thread
|
||||||
virtual void customizeContext();
|
virtual void customizeContext();
|
||||||
virtual void uncustomizeContext();
|
virtual void uncustomizeContext();
|
||||||
|
|
|
@ -142,9 +142,6 @@ public:
|
||||||
virtual void setContext(const gpu::ContextPointer& context) final { _gpuContext = context; }
|
virtual void setContext(const gpu::ContextPointer& context) final { _gpuContext = context; }
|
||||||
virtual void submitFrame(const gpu::FramePointer& newFrame) = 0;
|
virtual void submitFrame(const gpu::FramePointer& newFrame) = 0;
|
||||||
|
|
||||||
// Does the rendering surface have current focus?
|
|
||||||
virtual bool hasFocus() const = 0;
|
|
||||||
|
|
||||||
// The size of the rendering target (may be larger than the device size due to distortion)
|
// The size of the rendering target (may be larger than the device size due to distortion)
|
||||||
virtual glm::uvec2 getRecommendedRenderSize() const = 0;
|
virtual glm::uvec2 getRecommendedRenderSize() const = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue