mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-06 01:06:34 +02:00
36 lines
1,011 B
C++
36 lines
1,011 B
C++
//
|
|
// Created by Bradley Austin Davis on 2015/05/29
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#pragma once
|
|
|
|
#include "OculusBaseDisplayPlugin.h"
|
|
|
|
class OculusDisplayPlugin : public OculusBaseDisplayPlugin {
|
|
using Parent = OculusBaseDisplayPlugin;
|
|
public:
|
|
~OculusDisplayPlugin();
|
|
const QString& getName() const override { return NAME; }
|
|
|
|
void init() override;
|
|
|
|
QString getPreferredAudioInDevice() const override;
|
|
QString getPreferredAudioOutDevice() const override;
|
|
|
|
protected:
|
|
bool internalActivate() override;
|
|
void hmdPresent() override;
|
|
bool isHmdMounted() const override;
|
|
void customizeContext() override;
|
|
void uncustomizeContext() override;
|
|
void cycleDebugOutput() override;
|
|
|
|
private:
|
|
static const QString NAME;
|
|
ovrTextureSwapChain _textureSwapChain;
|
|
gpu::FramebufferPointer _outputFramebuffer;
|
|
};
|
|
|