openxr-0.1: Bindings to the OpenXR API
Safe HaskellNone
LanguageHaskell2010

OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Description

Name

XR_MSFT_spatial_graph_bridge - instance extension

Specification

See XR_MSFT_spatial_graph_bridge in the main specification for complete information.

Registered Extension Number

50

Revision

1

Extension and Version Dependencies

  • Requires OpenXR 1.0

See Also

SpatialGraphNodeSpaceCreateInfoMSFT, SpatialGraphNodeTypeMSFT, createSpatialGraphNodeSpaceMSFT

Document Notes

For more information, see the OpenXR Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

Synopsis

Documentation

createSpatialGraphNodeSpaceMSFT Source #

Arguments

:: forall io. MonadIO io 
=> Session

session is the Session which will use the created space.

-> SpatialGraphNodeSpaceCreateInfoMSFT

createInfo is an SpatialGraphNodeSpaceCreateInfoMSFT specifying the space to be created.

-> io Space 

xrCreateSpatialGraphNodeSpaceMSFT - Create an Space from a spatial graph node.

Valid Usage (Implicit)

Return Codes

Success
Failure

See Also

Session, Space, SpatialGraphNodeSpaceCreateInfoMSFT

withSpatialGraphNodeSpaceMSFT :: forall io r. MonadIO io => Session -> SpatialGraphNodeSpaceCreateInfoMSFT -> (io Space -> (Space -> io ()) -> r) -> r Source #

A convenience wrapper to make a compatible pair of calls to createSpatialGraphNodeSpaceMSFT and destroySpace

To ensure that destroySpace is always called: pass bracket (or the allocate function from your favourite resource management library) as the last argument. To just extract the pair pass (,) as the last argument.

data SpatialGraphNodeSpaceCreateInfoMSFT Source #

XrSpatialGraphNodeSpaceCreateInfoMSFT - The information to create space from a spatial graph node.

Valid Usage (Implicit)

See Also

Posef, SpatialGraphNodeTypeMSFT, StructureType, createSpatialGraphNodeSpaceMSFT

Constructors

SpatialGraphNodeSpaceCreateInfoMSFT 

Fields

Instances

Instances details
Show SpatialGraphNodeSpaceCreateInfoMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Storable SpatialGraphNodeSpaceCreateInfoMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Zero SpatialGraphNodeSpaceCreateInfoMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

ToCStruct SpatialGraphNodeSpaceCreateInfoMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

FromCStruct SpatialGraphNodeSpaceCreateInfoMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

newtype SpatialGraphNodeTypeMSFT Source #

XrSpatialGraphNodeTypeMSFT - The type of spatial graph node.

Description

There are two types of spatial graph nodes: static and dynamic.

Static spatial nodes track the pose of a fixed location in the world relative to reference spaces. The tracking of static nodes may slowly adjust the pose over time for better accuracy but the pose is relatively stable in the short term, such as between rendering frames. For example, a QR code tracking library can use a static node to represent the location of the tracked QR code. Static spatial nodes are represented by SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT.

Dynamic spatial nodes track the pose of a physical object that moves continuously relative to reference spaces. The pose of dynamic spatial nodes can be very different within the duration of a rendering frame. It is important for the application to use the correct timestamp to query the space location using locateSpace. For example, a color camera mounted in front of a HMD is also tracked by the HMD so a web camera library can use a dynamic node to represent the camera location. Dynamic spatial nodes are represented by SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT.

See Also

SpatialGraphNodeSpaceCreateInfoMSFT

Instances

Instances details
Eq SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Ord SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Read SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Show SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Storable SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

Zero SpatialGraphNodeTypeMSFT Source # 
Instance details

Defined in OpenXR.Extensions.XR_MSFT_spatial_graph_bridge

type MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME = "XR_MSFT_spatial_graph_bridge" Source #