66 t.position = translation;
72 t.orientation.x = 0.f;
73 t.orientation.y = std::sin(radians * 0.5f);
74 t.orientation.z = 0.f;
75 t.orientation.w = std::cos(radians * 0.5f);
76 t.position = translation;
106 XrInstance
xrInstance()
const {
return m_device->xrInstance(); }
107 XrSystemId
xrSystemID()
const {
return m_device->xrSystemID(); }
112 void setCurrentBlendMode(XrEnvironmentBlendMode blend_mode) { m_pipeline->setCurrentBlendMode(blend_mode); }
114 XrSession
xrSession()
const {
return m_pipeline->xrSession(); }
#define vk_null
Definition VulkanDefines.h:11
A class that allows user to use a function inline to execute something.
Definition BasicThread.h:45
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A line segment represented by two vertices, a start and end.
Definition Line.hpp:49
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
Definition Log.h:48
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
A view that allows interfacing with OpenXR for Augmented and virtual reality.
Definition XRCameraView.h:97
void setCurrentBlendMode(XrEnvironmentBlendMode blend_mode)
Definition XRCameraView.h:112
DynamicPointer< VulkanXRDevice > m_device
Definition XRCameraView.h:130
XrSwapchain xrSwapChain()
Definition XRCameraView.h:108
XrViewConfigurationView m_config_view
Definition XRCameraView.h:128
XrSession xrSession() const
Definition XRCameraView.h:114
DynamicPointer< Renderer > m_renderer
Definition XRCameraView.h:129
XrSystemId xrSystemID() const
Definition XRCameraView.h:107
virtual XrStructureType GetGraphicsBindingType() const
Definition XRCameraView.h:115
XRCameraView(const DynamicPointer< Camera > &camera, const DynamicPointer< Camera > &reference_camera, QTModelManager *manager)
void updateCamera(const XrCompositionLayerProjectionView &layerView)
DynamicPointer< Camera > m_reference_camera
Definition XRCameraView.h:124
virtual XrStructureType GetSwapchainImageType() const
Definition XRCameraView.h:116
DynamicPointer< Camera > m_camera
Definition XRCameraView.h:125
DynamicPointer< XRVulkanPipeline > m_pipeline
Definition XRCameraView.h:123
void setInitialOffset(const Vertex< 3, fltp08 > &offset)
Definition XRCameraView.h:105
virtual void * getSurface() override
Definition XRCameraView.h:113
void addSceneObject(UUID camera_id, UUID model)
XrInstance xrInstance() const
Definition XRCameraView.h:106
QTModelManager * m_manager
Definition XRCameraView.h:126
void addScene(Buffer< UUID > scenes)
void setup(const DynamicPointer< VulkanXRDevice > &device, XrSession session, const XrViewConfigurationView &config_view)
XrSession m_session
Definition XRCameraView.h:127
void addModel(Buffer< UUID > models)
const Vertex< 3, fltp08 > & initialOffset()
Definition XRCameraView.h:104
void setEyePosition(LineSegment< 3, fltp08 > &eyes, uint01 node)
A matrix-like class storing both offset and orientation.
Definition XRCameraView.h:56
static XrPosef RotateCCWAboutYAxis(float radians, XrVector3f translation)
Definition XRCameraView.h:70
static XrPosef Translation(const XrVector3f &translation)
Definition XRCameraView.h:64
static XrPosef Identity()
Definition XRCameraView.h:58
OpenXR uses two viewports, one for the left eye and one for the right eye.
Definition XRCameraView.h:83
static constexpr const uint01 LEFT
Definition XRCameraView.h:85
static constexpr const uint01 COUNT
Definition XRCameraView.h:87
static constexpr const uint01 RIGHT
Definition XRCameraView.h:86
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233