VR-Forces 5.0.1 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvVirtualReality
DtOculusSwapChain.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2021 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include "
vrvVirtualReality/vrvVirtualReality.h
"
13
#include "
vrvVirtualReality/DtSwapChain.h
"
14
15
#include "OVR_CAPI.h"
16
17
#include <map>
18
19
namespace
makVrv
20
{
21
class
DtDe;
22
25
class
DT_DLL_VRVVR
DtOculusSwapChain
:
public
DtSwapChain
26
{
27
private
:
29
DtOculusSwapChain
();
30
32
DtOculusSwapChain
(
const
DtOculusSwapChain
& orig);
33
35
DtOculusSwapChain
& operator=(
const
DtOculusSwapChain
&);
36
37
public
:
39
DtOculusSwapChain
(
DtDe
& de,
vrvVirtualReality::DtEye
eye, ovrSession session);
40
42
virtual
~
DtOculusSwapChain
();
43
45
virtual
bool
initalise(
unsigned
int
width,
unsigned
int
height,
unsigned
int
layers,
DtSwapChainTextureType
type,
DtGlImageType
format);
46
48
bool
addFormat(
DtSwapChainTextureType
type,
DtGlImageType
format);
49
51
virtual
void
acquireTextures();
52
54
virtual
unsigned
int
getTexture(
DtSwapChainTextureType
type,
int
index)
const
;
55
57
virtual
void
releaseTextures();
58
60
void
blitTextureToScreen(
int
swidth,
int
sheight,
bool
showleftEye);
61
62
//
63
// Varjo specific
64
66
ovrTextureSwapChain getSwapChain(
DtSwapChainTextureType
type)
const
;
67
69
ovrTextureFormat_ getOculusFormat(
DtGlImageType
format)
const
;
70
71
protected
:
72
ovrSession
myOculusSession
;
73
mutable
std::map<DtSwapChainTextureType, ovrTextureSwapChain>
mySwapChains
;
74
mutable
GLuint
myMirrorFbo
;
75
mutable
ovrMirrorTexture
myMirrorTexture
;
76
bool
myIsMirroringLeft
;
77
};
78
}
vrvVirtualReality.h
Contains DLL export macros.
makVrv::DtOculusSwapChain
Oculus implementation of a texture swapchain.
Definition:
DtOculusSwapChain.h:25
makVrv::DtOculusSwapChain::myMirrorFbo
GLuint myMirrorFbo
Definition:
DtOculusSwapChain.h:74
makVrv::DtOculusSwapChain::myMirrorTexture
ovrMirrorTexture myMirrorTexture
Definition:
DtOculusSwapChain.h:75
GLuint
unsigned int GLuint
Definition:
DtGlTextureBufferObject.h:17
DT_DLL_VRVVR
#define DT_DLL_VRVVR
Definition:
vrvVirtualReality.h:19
makVrv::vrvVirtualReality::DtEye
DtEye
A virtual reality eye.
Definition:
vrvVirtualReality.h:37
makVrv::DtOculusSwapChain::myOculusSession
ovrSession myOculusSession
Definition:
DtOculusSwapChain.h:72
DtSwapChain.h
Base implementation of a texture swapchain.
makVrv::DtSwapChain
Base implementation of a texture swapchain.
Definition:
DtSwapChain.h:35
makVrv::DtGlImageType
DtGlImageType
Definition:
DtGlImageType.h:15
makVrv::DtOculusSwapChain::mySwapChains
std::map< DtSwapChainTextureType, ovrTextureSwapChain > mySwapChains
Definition:
DtOculusSwapChain.h:73
makVrv::DtOculusSwapChain::myIsMirroringLeft
bool myIsMirroringLeft
Definition:
DtOculusSwapChain.h:76
makVrv::DtDe
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition:
DtDe.h:70
makVrv::DtSwapChainTextureType
DtSwapChainTextureType
Definition:
DtSwapChain.h:25
Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)