2020-03-17 19:10:57 +00:00
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* \ingroup GHOST
|
|
|
|
*/
|
|
|
|
|
2020-08-07 08:18:01 +00:00
|
|
|
#pragma once
|
2020-03-17 19:10:57 +00:00
|
|
|
|
|
|
|
#include "GHOST_Types.h"
|
|
|
|
|
|
|
|
class GHOST_IXrContext {
|
|
|
|
public:
|
|
|
|
virtual ~GHOST_IXrContext() = default;
|
|
|
|
|
|
|
|
virtual void startSession(const GHOST_XrSessionBeginInfo *begin_info) = 0;
|
|
|
|
virtual void endSession() = 0;
|
|
|
|
virtual bool isSessionRunning() const = 0;
|
|
|
|
virtual void drawSessionViews(void *draw_customdata) = 0;
|
|
|
|
|
|
|
|
virtual void dispatchErrorMessage(const class GHOST_XrException *) const = 0;
|
|
|
|
|
|
|
|
virtual void setGraphicsContextBindFuncs(GHOST_XrGraphicsContextBindFn bind_fn,
|
|
|
|
GHOST_XrGraphicsContextUnbindFn unbind_fn) = 0;
|
|
|
|
virtual void setDrawViewFunc(GHOST_XrDrawViewFn draw_view_fn) = 0;
|
2020-04-02 15:40:29 +00:00
|
|
|
|
|
|
|
virtual bool needsUpsideDownDrawing() const = 0;
|
2020-03-17 19:10:57 +00:00
|
|
|
};
|