Documentation ¶
Overview ¶
Package webxr is for accessing virtual reality (VR) and augmented reality (AR) devices, including sensors and head-mounted displays, on the Web.
Index ¶
- func GetNativeFramebufferScaleFactor(session *XRSession) (_result float64)
- type PromiseXRReferenceSpace
- func (_this *PromiseXRReferenceSpace) Catch(onRejected *PromiseXRReferenceSpaceOnRejected) (_result *PromiseXRReferenceSpace)
- func (_this *PromiseXRReferenceSpace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRReferenceSpace)
- func (_this *PromiseXRReferenceSpace) JSValue() js.Value
- func (_this *PromiseXRReferenceSpace) Then(onFulfilled *PromiseXRReferenceSpaceOnFulfilled, ...) (_result *PromiseXRReferenceSpace)
- type PromiseXRReferenceSpaceOnFulfilled
- type PromiseXRReferenceSpaceOnFulfilledFunc
- type PromiseXRReferenceSpaceOnRejected
- type PromiseXRReferenceSpaceOnRejectedFunc
- type PromiseXRSession
- func (_this *PromiseXRSession) Catch(onRejected *PromiseXRSessionOnRejected) (_result *PromiseXRSession)
- func (_this *PromiseXRSession) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRSession)
- func (_this *PromiseXRSession) JSValue() js.Value
- func (_this *PromiseXRSession) Then(onFulfilled *PromiseXRSessionOnFulfilled, ...) (_result *PromiseXRSession)
- type PromiseXRSessionOnFulfilled
- type PromiseXRSessionOnFulfilledFunc
- type PromiseXRSessionOnRejected
- type PromiseXRSessionOnRejectedFunc
- type Union
- type XR
- func (_this *XR) AddEventDeviceChange(listener func(event *domcore.Event, currentTarget *XR)) js.Func
- func (_this *XR) OnDeviceChange() domcore.EventHandlerFunc
- func (_this *XR) RequestSession(parameters *XRSessionCreationOptions) (_result *PromiseXRSession)
- func (_this *XR) SetOnDeviceChange(listener func(event *domcore.Event, currentTarget *XR)) js.Func
- func (_this *XR) SupportsSessionMode(mode XRSessionMode) (_result *javascript.PromiseVoid)
- type XRBoundedReferenceSpace
- type XREnvironmentBlendMode
- type XREye
- type XRFrame
- type XRFrameRequestCallback
- type XRFrameRequestCallbackFunc
- type XRHandedness
- type XRInputSource
- type XRInputSourceEvent
- type XRInputSourceEventInit
- type XRLayer
- type XRPose
- type XRPresentationContext
- type XRRay
- type XRReferenceSpace
- func (_this *XRReferenceSpace) AddEventReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func
- func (_this *XRReferenceSpace) OnReset() domcore.EventHandlerFunc
- func (_this *XRReferenceSpace) OriginOffset() *XRRigidTransform
- func (_this *XRReferenceSpace) SetOnReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func
- func (_this *XRReferenceSpace) SetOriginOffset(value *XRRigidTransform)
- type XRReferenceSpaceEvent
- type XRReferenceSpaceEventInit
- type XRReferenceSpaceOptions
- type XRReferenceSpaceType
- type XRRenderState
- type XRRenderStateInit
- type XRRigidTransform
- type XRSession
- func (_this *XRSession) AddEventBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
- func (_this *XRSession) AddEventEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) AddEventFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
- func (_this *XRSession) AddEventSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) AddEventSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) AddEventSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) CancelAnimationFrame(handle int)
- func (_this *XRSession) End() (_result *javascript.PromiseVoid)
- func (_this *XRSession) EnvironmentBlendMode() XREnvironmentBlendMode
- func (_this *XRSession) GetInputSources() (_result *javascript.FrozenArray)
- func (_this *XRSession) Mode() XRSessionMode
- func (_this *XRSession) OnBlur() domcore.EventHandlerFunc
- func (_this *XRSession) OnEnd() domcore.EventHandlerFunc
- func (_this *XRSession) OnFocus() domcore.EventHandlerFunc
- func (_this *XRSession) OnSelect() domcore.EventHandlerFunc
- func (_this *XRSession) OnSelectEnd() domcore.EventHandlerFunc
- func (_this *XRSession) OnSelectStart() domcore.EventHandlerFunc
- func (_this *XRSession) Oninputsourceschange() domcore.EventHandlerFunc
- func (_this *XRSession) OutputContext() *XRPresentationContext
- func (_this *XRSession) RenderState() *XRRenderState
- func (_this *XRSession) RequestAnimationFrame(callback *XRFrameRequestCallback) (_result int)
- func (_this *XRSession) RequestReferenceSpace(options *XRReferenceSpaceOptions) (_result *PromiseXRReferenceSpace)
- func (_this *XRSession) SetOnBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOnEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOnFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOnSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOnSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOnSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
- func (_this *XRSession) SetOninputsourceschange(value *domcore.EventHandler)
- func (_this *XRSession) UpdateRenderState(state *XRRenderStateInit)
- func (_this *XRSession) ViewerSpace() *XRSpace
- type XRSessionCreationOptions
- type XRSessionEvent
- type XRSessionEventInit
- type XRSessionMode
- type XRSpace
- type XRStationaryReferenceSpace
- type XRStationaryReferenceSpaceSubtype
- type XRTargetRayMode
- type XRUnboundedReferenceSpace
- type XRView
- type XRViewerPose
- type XRViewport
- type XRWebGLLayer
- func (_this *XRWebGLLayer) Alpha() bool
- func (_this *XRWebGLLayer) Antialias() bool
- func (_this *XRWebGLLayer) Context() *Union
- func (_this *XRWebGLLayer) Depth() bool
- func (_this *XRWebGLLayer) Framebuffer() *webgl.Framebuffer
- func (_this *XRWebGLLayer) FramebufferHeight() uint
- func (_this *XRWebGLLayer) FramebufferWidth() uint
- func (_this *XRWebGLLayer) GetViewport(view *XRView) (_result *XRViewport)
- func (_this *XRWebGLLayer) RequestViewportScaling(viewportScaleFactor float64)
- func (_this *XRWebGLLayer) Stencil() bool
- type XRWebGLLayerInit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PromiseXRReferenceSpace ¶
type PromiseXRReferenceSpace struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseXRReferenceSpaceFromJS ¶
func PromiseXRReferenceSpaceFromJS(value js.Value) *PromiseXRReferenceSpace
PromiseXRReferenceSpaceFromJS is casting a js.Value into PromiseXRReferenceSpace.
func PromiseXRReferenceSpaceFromWrapper ¶
func PromiseXRReferenceSpaceFromWrapper(input core.Wrapper) *PromiseXRReferenceSpace
PromiseXRReferenceSpaceFromJS is casting from something that holds a js.Value into PromiseXRReferenceSpace.
func (*PromiseXRReferenceSpace) Catch ¶
func (_this *PromiseXRReferenceSpace) Catch(onRejected *PromiseXRReferenceSpaceOnRejected) (_result *PromiseXRReferenceSpace)
func (*PromiseXRReferenceSpace) Finally ¶
func (_this *PromiseXRReferenceSpace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRReferenceSpace)
func (*PromiseXRReferenceSpace) JSValue ¶
func (_this *PromiseXRReferenceSpace) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseXRReferenceSpace) Then ¶
func (_this *PromiseXRReferenceSpace) Then(onFulfilled *PromiseXRReferenceSpaceOnFulfilled, onRejected *PromiseXRReferenceSpaceOnRejected) (_result *PromiseXRReferenceSpace)
type PromiseXRReferenceSpaceOnFulfilled ¶
PromiseXRReferenceSpaceOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseXRReferenceSpaceOnFulfilledToJS ¶
func PromiseXRReferenceSpaceOnFulfilledToJS(callback PromiseXRReferenceSpaceOnFulfilledFunc) *PromiseXRReferenceSpaceOnFulfilled
type PromiseXRReferenceSpaceOnFulfilledFunc ¶
type PromiseXRReferenceSpaceOnFulfilledFunc func(value *XRReferenceSpace)
callback: PromiseTemplateOnFulfilled
func PromiseXRReferenceSpaceOnFulfilledFromJS ¶
func PromiseXRReferenceSpaceOnFulfilledFromJS(_value js.Value) PromiseXRReferenceSpaceOnFulfilledFunc
type PromiseXRReferenceSpaceOnRejected ¶
PromiseXRReferenceSpaceOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseXRReferenceSpaceOnRejectedToJS ¶
func PromiseXRReferenceSpaceOnRejectedToJS(callback PromiseXRReferenceSpaceOnRejectedFunc) *PromiseXRReferenceSpaceOnRejected
type PromiseXRReferenceSpaceOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseXRReferenceSpaceOnRejectedFromJS ¶
func PromiseXRReferenceSpaceOnRejectedFromJS(_value js.Value) PromiseXRReferenceSpaceOnRejectedFunc
type PromiseXRSession ¶
type PromiseXRSession struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseXRSessionFromJS ¶
func PromiseXRSessionFromJS(value js.Value) *PromiseXRSession
PromiseXRSessionFromJS is casting a js.Value into PromiseXRSession.
func PromiseXRSessionFromWrapper ¶
func PromiseXRSessionFromWrapper(input core.Wrapper) *PromiseXRSession
PromiseXRSessionFromJS is casting from something that holds a js.Value into PromiseXRSession.
func (*PromiseXRSession) Catch ¶
func (_this *PromiseXRSession) Catch(onRejected *PromiseXRSessionOnRejected) (_result *PromiseXRSession)
func (*PromiseXRSession) Finally ¶
func (_this *PromiseXRSession) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRSession)
func (*PromiseXRSession) JSValue ¶
func (_this *PromiseXRSession) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseXRSession) Then ¶
func (_this *PromiseXRSession) Then(onFulfilled *PromiseXRSessionOnFulfilled, onRejected *PromiseXRSessionOnRejected) (_result *PromiseXRSession)
type PromiseXRSessionOnFulfilled ¶
PromiseXRSessionOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseXRSessionOnFulfilledToJS ¶
func PromiseXRSessionOnFulfilledToJS(callback PromiseXRSessionOnFulfilledFunc) *PromiseXRSessionOnFulfilled
type PromiseXRSessionOnFulfilledFunc ¶
type PromiseXRSessionOnFulfilledFunc func(value *XRSession)
callback: PromiseTemplateOnFulfilled
func PromiseXRSessionOnFulfilledFromJS ¶
func PromiseXRSessionOnFulfilledFromJS(_value js.Value) PromiseXRSessionOnFulfilledFunc
type PromiseXRSessionOnRejected ¶
PromiseXRSessionOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseXRSessionOnRejectedToJS ¶
func PromiseXRSessionOnRejectedToJS(callback PromiseXRSessionOnRejectedFunc) *PromiseXRSessionOnRejected
type PromiseXRSessionOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseXRSessionOnRejectedFromJS ¶
func PromiseXRSessionOnRejectedFromJS(_value js.Value) PromiseXRSessionOnRejectedFunc
type Union ¶
func UnionFromJS ¶
type XR ¶
type XR struct {
domcore.EventTarget
}
class: XR
func XRFromWrapper ¶
XRFromJS is casting from something that holds a js.Value into XR.
func (*XR) AddEventDeviceChange ¶
func (_this *XR) AddEventDeviceChange(listener func(event *domcore.Event, currentTarget *XR)) js.Func
AddDeviceChange is adding doing AddEventListener for 'DeviceChange' on target. This method is returning allocated javascript function that need to be released.
func (*XR) OnDeviceChange ¶
func (_this *XR) OnDeviceChange() domcore.EventHandlerFunc
OnDeviceChange returning attribute 'ondevicechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XR) RequestSession ¶
func (_this *XR) RequestSession(parameters *XRSessionCreationOptions) (_result *PromiseXRSession)
func (*XR) SetOnDeviceChange ¶
SetOnDeviceChange is assigning a function to 'ondevicechange'. This This method is returning allocated javascript function that need to be released.
func (*XR) SupportsSessionMode ¶
func (_this *XR) SupportsSessionMode(mode XRSessionMode) (_result *javascript.PromiseVoid)
type XRBoundedReferenceSpace ¶
type XRBoundedReferenceSpace struct {
XRReferenceSpace
}
class: XRBoundedReferenceSpace
func XRBoundedReferenceSpaceFromJS ¶
func XRBoundedReferenceSpaceFromJS(value js.Value) *XRBoundedReferenceSpace
XRBoundedReferenceSpaceFromJS is casting a js.Value into XRBoundedReferenceSpace.
func XRBoundedReferenceSpaceFromWrapper ¶
func XRBoundedReferenceSpaceFromWrapper(input core.Wrapper) *XRBoundedReferenceSpace
XRBoundedReferenceSpaceFromJS is casting from something that holds a js.Value into XRBoundedReferenceSpace.
func (*XRBoundedReferenceSpace) BoundsGeometry ¶
func (_this *XRBoundedReferenceSpace) BoundsGeometry() *javascript.FrozenArray
BoundsGeometry returning attribute 'boundsGeometry' with type javascript.FrozenArray (idl: FrozenArray).
type XREnvironmentBlendMode ¶
type XREnvironmentBlendMode int
enum: XREnvironmentBlendMode
const ( OpaqueXREnvironmentBlendMode XREnvironmentBlendMode = iota AdditiveXREnvironmentBlendMode AlphaBlendXREnvironmentBlendMode )
func XREnvironmentBlendModeFromJS ¶
func XREnvironmentBlendModeFromJS(value js.Value) XREnvironmentBlendMode
XREnvironmentBlendModeFromJS is converting a javascript value into a XREnvironmentBlendMode enum value.
func (*XREnvironmentBlendMode) JSValue ¶
func (this *XREnvironmentBlendMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XREnvironmentBlendMode) Value ¶
func (this XREnvironmentBlendMode) Value() string
Value is converting this into javascript defined string value
type XREye ¶
type XREye int
enum: XREye
func XREyeFromJS ¶
XREyeFromJS is converting a javascript value into a XREye enum value.
type XRFrame ¶
class: XRFrame
func XRFrameFromJS ¶
XRFrameFromJS is casting a js.Value into XRFrame.
func XRFrameFromWrapper ¶
XRFrameFromJS is casting from something that holds a js.Value into XRFrame.
func (*XRFrame) GetViewerPose ¶
func (_this *XRFrame) GetViewerPose(referenceSpace *XRReferenceSpace) (_result *XRViewerPose)
type XRFrameRequestCallback ¶
XRFrameRequestCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func XRFrameRequestCallbackToJS ¶
func XRFrameRequestCallbackToJS(callback XRFrameRequestCallbackFunc) *XRFrameRequestCallback
type XRFrameRequestCallbackFunc ¶
callback: XRFrameRequestCallback
func XRFrameRequestCallbackFromJS ¶
func XRFrameRequestCallbackFromJS(_value js.Value) XRFrameRequestCallbackFunc
type XRHandedness ¶
type XRHandedness int
enum: XRHandedness
const ( NoneXRHandedness XRHandedness = iota LeftXRHandedness RightXRHandedness )
func XRHandednessFromJS ¶
func XRHandednessFromJS(value js.Value) XRHandedness
XRHandednessFromJS is converting a javascript value into a XRHandedness enum value.
func (*XRHandedness) JSValue ¶
func (this *XRHandedness) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XRHandedness) Value ¶
func (this XRHandedness) Value() string
Value is converting this into javascript defined string value
type XRInputSource ¶
class: XRInputSource
func XRInputSourceFromJS ¶
func XRInputSourceFromJS(value js.Value) *XRInputSource
XRInputSourceFromJS is casting a js.Value into XRInputSource.
func XRInputSourceFromWrapper ¶
func XRInputSourceFromWrapper(input core.Wrapper) *XRInputSource
XRInputSourceFromJS is casting from something that holds a js.Value into XRInputSource.
func (*XRInputSource) GripSpace ¶
func (_this *XRInputSource) GripSpace() *XRSpace
GripSpace returning attribute 'gripSpace' with type XRSpace (idl: XRSpace).
func (*XRInputSource) Handedness ¶
func (_this *XRInputSource) Handedness() XRHandedness
Handedness returning attribute 'handedness' with type XRHandedness (idl: XRHandedness).
func (*XRInputSource) JSValue ¶
func (_this *XRInputSource) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*XRInputSource) TargetRayMode ¶
func (_this *XRInputSource) TargetRayMode() XRTargetRayMode
TargetRayMode returning attribute 'targetRayMode' with type XRTargetRayMode (idl: XRTargetRayMode).
func (*XRInputSource) TargetRaySpace ¶
func (_this *XRInputSource) TargetRaySpace() *XRSpace
TargetRaySpace returning attribute 'targetRaySpace' with type XRSpace (idl: XRSpace).
type XRInputSourceEvent ¶
class: XRInputSourceEvent
func NewXRInputSourceEvent ¶
func NewXRInputSourceEvent(_type string, eventInitDict *XRInputSourceEventInit) (_result *XRInputSourceEvent)
func XRInputSourceEventFromJS ¶
func XRInputSourceEventFromJS(value js.Value) *XRInputSourceEvent
XRInputSourceEventFromJS is casting a js.Value into XRInputSourceEvent.
func XRInputSourceEventFromWrapper ¶
func XRInputSourceEventFromWrapper(input core.Wrapper) *XRInputSourceEvent
XRInputSourceEventFromJS is casting from something that holds a js.Value into XRInputSourceEvent.
func (*XRInputSourceEvent) Frame ¶
func (_this *XRInputSourceEvent) Frame() *XRFrame
Frame returning attribute 'frame' with type XRFrame (idl: XRFrame).
func (*XRInputSourceEvent) InputSource ¶
func (_this *XRInputSourceEvent) InputSource() *XRInputSource
InputSource returning attribute 'inputSource' with type XRInputSource (idl: XRInputSource).
type XRInputSourceEventInit ¶
type XRInputSourceEventInit struct { Bubbles bool Cancelable bool Composed bool Frame *XRFrame InputSource *XRInputSource }
dictionary: XRInputSourceEventInit
func XRInputSourceEventInitFromJS ¶
func XRInputSourceEventInitFromJS(value js.Value) *XRInputSourceEventInit
XRInputSourceEventInitFromJS is allocating a new XRInputSourceEventInit object and copy all values in the value javascript object.
func (*XRInputSourceEventInit) JSValue ¶
func (_this *XRInputSourceEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRLayer ¶
class: XRLayer
func XRLayerFromJS ¶
XRLayerFromJS is casting a js.Value into XRLayer.
func XRLayerFromWrapper ¶
XRLayerFromJS is casting from something that holds a js.Value into XRLayer.
type XRPose ¶
class: XRPose
func XRPoseFromJS ¶
XRPoseFromJS is casting a js.Value into XRPose.
func XRPoseFromWrapper ¶
XRPoseFromJS is casting from something that holds a js.Value into XRPose.
func (*XRPose) EmulatedPosition ¶
EmulatedPosition returning attribute 'emulatedPosition' with type bool (idl: boolean).
func (*XRPose) Transform ¶
func (_this *XRPose) Transform() *XRRigidTransform
Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).
type XRPresentationContext ¶
type XRPresentationContext struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: XRPresentationContext
func XRPresentationContextFromJS ¶
func XRPresentationContextFromJS(value js.Value) *XRPresentationContext
XRPresentationContextFromJS is casting a js.Value into XRPresentationContext.
func XRPresentationContextFromWrapper ¶
func XRPresentationContextFromWrapper(input core.Wrapper) *XRPresentationContext
XRPresentationContextFromJS is casting from something that holds a js.Value into XRPresentationContext.
func (*XRPresentationContext) Canvas ¶
func (_this *XRPresentationContext) Canvas() *canvas.HTMLCanvasElement
Canvas returning attribute 'canvas' with type canvas.HTMLCanvasElement (idl: HTMLCanvasElement).
func (*XRPresentationContext) JSValue ¶
func (_this *XRPresentationContext) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type XRRay ¶
class: XRRay
func NewXRRay ¶
func NewXRRay(transform *XRRigidTransform) (_result *XRRay)
func XRRayFromJS ¶
XRRayFromJS is casting a js.Value into XRRay.
func XRRayFromWrapper ¶
XRRayFromJS is casting from something that holds a js.Value into XRRay.
func (*XRRay) Direction ¶
func (_this *XRRay) Direction() *geometry.DOMPointReadOnly
Direction returning attribute 'direction' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).
func (*XRRay) Matrix ¶
func (_this *XRRay) Matrix() *javascript.Float32Array
Matrix returning attribute 'matrix' with type javascript.Float32Array (idl: Float32Array).
func (*XRRay) Origin ¶
func (_this *XRRay) Origin() *geometry.DOMPointReadOnly
Origin returning attribute 'origin' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).
type XRReferenceSpace ¶
type XRReferenceSpace struct {
XRSpace
}
class: XRReferenceSpace
func XRReferenceSpaceFromJS ¶
func XRReferenceSpaceFromJS(value js.Value) *XRReferenceSpace
XRReferenceSpaceFromJS is casting a js.Value into XRReferenceSpace.
func XRReferenceSpaceFromWrapper ¶
func XRReferenceSpaceFromWrapper(input core.Wrapper) *XRReferenceSpace
XRReferenceSpaceFromJS is casting from something that holds a js.Value into XRReferenceSpace.
func (*XRReferenceSpace) AddEventReset ¶
func (_this *XRReferenceSpace) AddEventReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func
AddReset is adding doing AddEventListener for 'Reset' on target. This method is returning allocated javascript function that need to be released.
func (*XRReferenceSpace) OnReset ¶
func (_this *XRReferenceSpace) OnReset() domcore.EventHandlerFunc
OnReset returning attribute 'onreset' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRReferenceSpace) OriginOffset ¶
func (_this *XRReferenceSpace) OriginOffset() *XRRigidTransform
OriginOffset returning attribute 'originOffset' with type XRRigidTransform (idl: XRRigidTransform).
func (*XRReferenceSpace) SetOnReset ¶
func (_this *XRReferenceSpace) SetOnReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func
SetOnReset is assigning a function to 'onreset'. This This method is returning allocated javascript function that need to be released.
func (*XRReferenceSpace) SetOriginOffset ¶
func (_this *XRReferenceSpace) SetOriginOffset(value *XRRigidTransform)
SetOriginOffset setting attribute 'originOffset' with type XRRigidTransform (idl: XRRigidTransform).
type XRReferenceSpaceEvent ¶
class: XRReferenceSpaceEvent
func NewXRReferenceSpaceEvent ¶
func NewXRReferenceSpaceEvent(_type string, eventInitDict *XRReferenceSpaceEventInit) (_result *XRReferenceSpaceEvent)
func XRReferenceSpaceEventFromJS ¶
func XRReferenceSpaceEventFromJS(value js.Value) *XRReferenceSpaceEvent
XRReferenceSpaceEventFromJS is casting a js.Value into XRReferenceSpaceEvent.
func XRReferenceSpaceEventFromWrapper ¶
func XRReferenceSpaceEventFromWrapper(input core.Wrapper) *XRReferenceSpaceEvent
XRReferenceSpaceEventFromJS is casting from something that holds a js.Value into XRReferenceSpaceEvent.
func (*XRReferenceSpaceEvent) ReferenceSpace ¶
func (_this *XRReferenceSpaceEvent) ReferenceSpace() *XRReferenceSpace
ReferenceSpace returning attribute 'referenceSpace' with type XRReferenceSpace (idl: XRReferenceSpace).
func (*XRReferenceSpaceEvent) Transform ¶
func (_this *XRReferenceSpaceEvent) Transform() *XRRigidTransform
Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).
type XRReferenceSpaceEventInit ¶
type XRReferenceSpaceEventInit struct { Bubbles bool Cancelable bool Composed bool ReferenceSpace *XRReferenceSpace Transform *XRRigidTransform }
dictionary: XRReferenceSpaceEventInit
func XRReferenceSpaceEventInitFromJS ¶
func XRReferenceSpaceEventInitFromJS(value js.Value) *XRReferenceSpaceEventInit
XRReferenceSpaceEventInitFromJS is allocating a new XRReferenceSpaceEventInit object and copy all values in the value javascript object.
func (*XRReferenceSpaceEventInit) JSValue ¶
func (_this *XRReferenceSpaceEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRReferenceSpaceOptions ¶
type XRReferenceSpaceOptions struct { Type XRReferenceSpaceType Subtype XRStationaryReferenceSpaceSubtype }
dictionary: XRReferenceSpaceOptions
func XRReferenceSpaceOptionsFromJS ¶
func XRReferenceSpaceOptionsFromJS(value js.Value) *XRReferenceSpaceOptions
XRReferenceSpaceOptionsFromJS is allocating a new XRReferenceSpaceOptions object and copy all values in the value javascript object.
func (*XRReferenceSpaceOptions) JSValue ¶
func (_this *XRReferenceSpaceOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRReferenceSpaceType ¶
type XRReferenceSpaceType int
enum: XRReferenceSpaceType
const ( StationaryXRReferenceSpaceType XRReferenceSpaceType = iota BoundedXRReferenceSpaceType UnboundedXRReferenceSpaceType )
func XRReferenceSpaceTypeFromJS ¶
func XRReferenceSpaceTypeFromJS(value js.Value) XRReferenceSpaceType
XRReferenceSpaceTypeFromJS is converting a javascript value into a XRReferenceSpaceType enum value.
func (*XRReferenceSpaceType) JSValue ¶
func (this *XRReferenceSpaceType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XRReferenceSpaceType) Value ¶
func (this XRReferenceSpaceType) Value() string
Value is converting this into javascript defined string value
type XRRenderState ¶
class: XRRenderState
func XRRenderStateFromJS ¶
func XRRenderStateFromJS(value js.Value) *XRRenderState
XRRenderStateFromJS is casting a js.Value into XRRenderState.
func XRRenderStateFromWrapper ¶
func XRRenderStateFromWrapper(input core.Wrapper) *XRRenderState
XRRenderStateFromJS is casting from something that holds a js.Value into XRRenderState.
func (*XRRenderState) BaseLayer ¶
func (_this *XRRenderState) BaseLayer() *XRLayer
BaseLayer returning attribute 'baseLayer' with type XRLayer (idl: XRLayer).
func (*XRRenderState) DepthFar ¶
func (_this *XRRenderState) DepthFar() float64
DepthFar returning attribute 'depthFar' with type float64 (idl: double).
func (*XRRenderState) DepthNear ¶
func (_this *XRRenderState) DepthNear() float64
DepthNear returning attribute 'depthNear' with type float64 (idl: double).
func (*XRRenderState) JSValue ¶
func (_this *XRRenderState) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type XRRenderStateInit ¶
dictionary: XRRenderStateInit
func XRRenderStateInitFromJS ¶
func XRRenderStateInitFromJS(value js.Value) *XRRenderStateInit
XRRenderStateInitFromJS is allocating a new XRRenderStateInit object and copy all values in the value javascript object.
func (*XRRenderStateInit) JSValue ¶
func (_this *XRRenderStateInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRRigidTransform ¶
type XRRigidTransform struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: XRRigidTransform
func NewXRRigidTransform ¶
func NewXRRigidTransform(position *geometry.DOMPointInit, orientation *geometry.DOMPointInit) (_result *XRRigidTransform)
func XRRigidTransformFromJS ¶
func XRRigidTransformFromJS(value js.Value) *XRRigidTransform
XRRigidTransformFromJS is casting a js.Value into XRRigidTransform.
func XRRigidTransformFromWrapper ¶
func XRRigidTransformFromWrapper(input core.Wrapper) *XRRigidTransform
XRRigidTransformFromJS is casting from something that holds a js.Value into XRRigidTransform.
func (*XRRigidTransform) JSValue ¶
func (_this *XRRigidTransform) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*XRRigidTransform) Matrix ¶
func (_this *XRRigidTransform) Matrix() *javascript.Float32Array
Matrix returning attribute 'matrix' with type javascript.Float32Array (idl: Float32Array).
func (*XRRigidTransform) Orientation ¶
func (_this *XRRigidTransform) Orientation() *geometry.DOMPointReadOnly
Orientation returning attribute 'orientation' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).
func (*XRRigidTransform) Position ¶
func (_this *XRRigidTransform) Position() *geometry.DOMPointReadOnly
Position returning attribute 'position' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).
type XRSession ¶
type XRSession struct {
domcore.EventTarget
}
class: XRSession
func XRSessionFromJS ¶
XRSessionFromJS is casting a js.Value into XRSession.
func XRSessionFromWrapper ¶
XRSessionFromJS is casting from something that holds a js.Value into XRSession.
func (*XRSession) AddEventBlur ¶
func (_this *XRSession) AddEventBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
AddBlur is adding doing AddEventListener for 'Blur' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) AddEventEnd ¶
func (_this *XRSession) AddEventEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func
AddEnd is adding doing AddEventListener for 'End' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) AddEventFocus ¶
func (_this *XRSession) AddEventFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
AddFocus is adding doing AddEventListener for 'Focus' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) AddEventSelect ¶
func (_this *XRSession) AddEventSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
AddSelect is adding doing AddEventListener for 'Select' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) AddEventSelectEnd ¶
func (_this *XRSession) AddEventSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
AddSelectEnd is adding doing AddEventListener for 'SelectEnd' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) AddEventSelectStart ¶
func (_this *XRSession) AddEventSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
AddSelectStart is adding doing AddEventListener for 'SelectStart' on target. This method is returning allocated javascript function that need to be released.
func (*XRSession) CancelAnimationFrame ¶
func (*XRSession) End ¶
func (_this *XRSession) End() (_result *javascript.PromiseVoid)
func (*XRSession) EnvironmentBlendMode ¶
func (_this *XRSession) EnvironmentBlendMode() XREnvironmentBlendMode
EnvironmentBlendMode returning attribute 'environmentBlendMode' with type XREnvironmentBlendMode (idl: XREnvironmentBlendMode).
func (*XRSession) GetInputSources ¶
func (_this *XRSession) GetInputSources() (_result *javascript.FrozenArray)
func (*XRSession) Mode ¶
func (_this *XRSession) Mode() XRSessionMode
Mode returning attribute 'mode' with type XRSessionMode (idl: XRSessionMode).
func (*XRSession) OnBlur ¶
func (_this *XRSession) OnBlur() domcore.EventHandlerFunc
OnBlur returning attribute 'onblur' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OnEnd ¶
func (_this *XRSession) OnEnd() domcore.EventHandlerFunc
OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OnFocus ¶
func (_this *XRSession) OnFocus() domcore.EventHandlerFunc
OnFocus returning attribute 'onfocus' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OnSelect ¶
func (_this *XRSession) OnSelect() domcore.EventHandlerFunc
OnSelect returning attribute 'onselect' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OnSelectEnd ¶
func (_this *XRSession) OnSelectEnd() domcore.EventHandlerFunc
OnSelectEnd returning attribute 'onselectend' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OnSelectStart ¶
func (_this *XRSession) OnSelectStart() domcore.EventHandlerFunc
OnSelectStart returning attribute 'onselectstart' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) Oninputsourceschange ¶
func (_this *XRSession) Oninputsourceschange() domcore.EventHandlerFunc
Oninputsourceschange returning attribute 'oninputsourceschange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) OutputContext ¶
func (_this *XRSession) OutputContext() *XRPresentationContext
OutputContext returning attribute 'outputContext' with type XRPresentationContext (idl: XRPresentationContext).
func (*XRSession) RenderState ¶
func (_this *XRSession) RenderState() *XRRenderState
RenderState returning attribute 'renderState' with type XRRenderState (idl: XRRenderState).
func (*XRSession) RequestAnimationFrame ¶
func (_this *XRSession) RequestAnimationFrame(callback *XRFrameRequestCallback) (_result int)
func (*XRSession) RequestReferenceSpace ¶
func (_this *XRSession) RequestReferenceSpace(options *XRReferenceSpaceOptions) (_result *PromiseXRReferenceSpace)
func (*XRSession) SetOnBlur ¶
func (_this *XRSession) SetOnBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
SetOnBlur is assigning a function to 'onblur'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOnEnd ¶
func (_this *XRSession) SetOnEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func
SetOnEnd is assigning a function to 'onend'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOnFocus ¶
func (_this *XRSession) SetOnFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func
SetOnFocus is assigning a function to 'onfocus'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOnSelect ¶
func (_this *XRSession) SetOnSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
SetOnSelect is assigning a function to 'onselect'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOnSelectEnd ¶
func (_this *XRSession) SetOnSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
SetOnSelectEnd is assigning a function to 'onselectend'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOnSelectStart ¶
func (_this *XRSession) SetOnSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func
SetOnSelectStart is assigning a function to 'onselectstart'. This This method is returning allocated javascript function that need to be released.
func (*XRSession) SetOninputsourceschange ¶
func (_this *XRSession) SetOninputsourceschange(value *domcore.EventHandler)
SetOninputsourceschange setting attribute 'oninputsourceschange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*XRSession) UpdateRenderState ¶
func (_this *XRSession) UpdateRenderState(state *XRRenderStateInit)
func (*XRSession) ViewerSpace ¶
ViewerSpace returning attribute 'viewerSpace' with type XRSpace (idl: XRSpace).
type XRSessionCreationOptions ¶
type XRSessionCreationOptions struct { Mode XRSessionMode OutputContext *XRPresentationContext }
dictionary: XRSessionCreationOptions
func XRSessionCreationOptionsFromJS ¶
func XRSessionCreationOptionsFromJS(value js.Value) *XRSessionCreationOptions
XRSessionCreationOptionsFromJS is allocating a new XRSessionCreationOptions object and copy all values in the value javascript object.
func (*XRSessionCreationOptions) JSValue ¶
func (_this *XRSessionCreationOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRSessionEvent ¶
class: XRSessionEvent
func NewXRSessionEvent ¶
func NewXRSessionEvent(_type string, eventInitDict *XRSessionEventInit) (_result *XRSessionEvent)
func XRSessionEventFromJS ¶
func XRSessionEventFromJS(value js.Value) *XRSessionEvent
XRSessionEventFromJS is casting a js.Value into XRSessionEvent.
func XRSessionEventFromWrapper ¶
func XRSessionEventFromWrapper(input core.Wrapper) *XRSessionEvent
XRSessionEventFromJS is casting from something that holds a js.Value into XRSessionEvent.
func (*XRSessionEvent) Session ¶
func (_this *XRSessionEvent) Session() *XRSession
Session returning attribute 'session' with type XRSession (idl: XRSession).
type XRSessionEventInit ¶
dictionary: XRSessionEventInit
func XRSessionEventInitFromJS ¶
func XRSessionEventInitFromJS(value js.Value) *XRSessionEventInit
XRSessionEventInitFromJS is allocating a new XRSessionEventInit object and copy all values in the value javascript object.
func (*XRSessionEventInit) JSValue ¶
func (_this *XRSessionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type XRSessionMode ¶
type XRSessionMode int
enum: XRSessionMode
const ( InlineXRSessionMode XRSessionMode = iota ImmersiveVrXRSessionMode ImmersiveArXRSessionMode )
func XRSessionModeFromJS ¶
func XRSessionModeFromJS(value js.Value) XRSessionMode
XRSessionModeFromJS is converting a javascript value into a XRSessionMode enum value.
func (*XRSessionMode) JSValue ¶
func (this *XRSessionMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XRSessionMode) Value ¶
func (this XRSessionMode) Value() string
Value is converting this into javascript defined string value
type XRSpace ¶
type XRSpace struct {
domcore.EventTarget
}
class: XRSpace
func XRSpaceFromJS ¶
XRSpaceFromJS is casting a js.Value into XRSpace.
func XRSpaceFromWrapper ¶
XRSpaceFromJS is casting from something that holds a js.Value into XRSpace.
type XRStationaryReferenceSpace ¶
type XRStationaryReferenceSpace struct {
XRReferenceSpace
}
class: XRStationaryReferenceSpace
func XRStationaryReferenceSpaceFromJS ¶
func XRStationaryReferenceSpaceFromJS(value js.Value) *XRStationaryReferenceSpace
XRStationaryReferenceSpaceFromJS is casting a js.Value into XRStationaryReferenceSpace.
func XRStationaryReferenceSpaceFromWrapper ¶
func XRStationaryReferenceSpaceFromWrapper(input core.Wrapper) *XRStationaryReferenceSpace
XRStationaryReferenceSpaceFromJS is casting from something that holds a js.Value into XRStationaryReferenceSpace.
func (*XRStationaryReferenceSpace) Subtype ¶
func (_this *XRStationaryReferenceSpace) Subtype() XRStationaryReferenceSpaceSubtype
Subtype returning attribute 'subtype' with type XRStationaryReferenceSpaceSubtype (idl: XRStationaryReferenceSpaceSubtype).
type XRStationaryReferenceSpaceSubtype ¶
type XRStationaryReferenceSpaceSubtype int
enum: XRStationaryReferenceSpaceSubtype
const ( EyeLevelXRStationaryReferenceSpaceSubtype XRStationaryReferenceSpaceSubtype = iota FloorLevelXRStationaryReferenceSpaceSubtype PositionDisabledXRStationaryReferenceSpaceSubtype )
func XRStationaryReferenceSpaceSubtypeFromJS ¶
func XRStationaryReferenceSpaceSubtypeFromJS(value js.Value) XRStationaryReferenceSpaceSubtype
XRStationaryReferenceSpaceSubtypeFromJS is converting a javascript value into a XRStationaryReferenceSpaceSubtype enum value.
func (*XRStationaryReferenceSpaceSubtype) JSValue ¶
func (this *XRStationaryReferenceSpaceSubtype) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XRStationaryReferenceSpaceSubtype) Value ¶
func (this XRStationaryReferenceSpaceSubtype) Value() string
Value is converting this into javascript defined string value
type XRTargetRayMode ¶
type XRTargetRayMode int
enum: XRTargetRayMode
const ( GazeXRTargetRayMode XRTargetRayMode = iota TrackedPointerXRTargetRayMode ScreenXRTargetRayMode )
func XRTargetRayModeFromJS ¶
func XRTargetRayModeFromJS(value js.Value) XRTargetRayMode
XRTargetRayModeFromJS is converting a javascript value into a XRTargetRayMode enum value.
func (*XRTargetRayMode) JSValue ¶
func (this *XRTargetRayMode) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (XRTargetRayMode) Value ¶
func (this XRTargetRayMode) Value() string
Value is converting this into javascript defined string value
type XRUnboundedReferenceSpace ¶
type XRUnboundedReferenceSpace struct {
XRReferenceSpace
}
class: XRUnboundedReferenceSpace
func XRUnboundedReferenceSpaceFromJS ¶
func XRUnboundedReferenceSpaceFromJS(value js.Value) *XRUnboundedReferenceSpace
XRUnboundedReferenceSpaceFromJS is casting a js.Value into XRUnboundedReferenceSpace.
func XRUnboundedReferenceSpaceFromWrapper ¶
func XRUnboundedReferenceSpaceFromWrapper(input core.Wrapper) *XRUnboundedReferenceSpace
XRUnboundedReferenceSpaceFromJS is casting from something that holds a js.Value into XRUnboundedReferenceSpace.
type XRView ¶
class: XRView
func XRViewFromJS ¶
XRViewFromJS is casting a js.Value into XRView.
func XRViewFromWrapper ¶
XRViewFromJS is casting from something that holds a js.Value into XRView.
func (*XRView) ProjectionMatrix ¶
func (_this *XRView) ProjectionMatrix() *javascript.Float32Array
ProjectionMatrix returning attribute 'projectionMatrix' with type javascript.Float32Array (idl: Float32Array).
func (*XRView) Transform ¶
func (_this *XRView) Transform() *XRRigidTransform
Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).
func (*XRView) ViewMatrix ¶
func (_this *XRView) ViewMatrix() *javascript.Float32Array
ViewMatrix returning attribute 'viewMatrix' with type javascript.Float32Array (idl: Float32Array).
type XRViewerPose ¶
type XRViewerPose struct {
XRPose
}
class: XRViewerPose
func XRViewerPoseFromJS ¶
func XRViewerPoseFromJS(value js.Value) *XRViewerPose
XRViewerPoseFromJS is casting a js.Value into XRViewerPose.
func XRViewerPoseFromWrapper ¶
func XRViewerPoseFromWrapper(input core.Wrapper) *XRViewerPose
XRViewerPoseFromJS is casting from something that holds a js.Value into XRViewerPose.
func (*XRViewerPose) Views ¶
func (_this *XRViewerPose) Views() *javascript.FrozenArray
Views returning attribute 'views' with type javascript.FrozenArray (idl: FrozenArray).
type XRViewport ¶
class: XRViewport
func XRViewportFromJS ¶
func XRViewportFromJS(value js.Value) *XRViewport
XRViewportFromJS is casting a js.Value into XRViewport.
func XRViewportFromWrapper ¶
func XRViewportFromWrapper(input core.Wrapper) *XRViewport
XRViewportFromJS is casting from something that holds a js.Value into XRViewport.
func (*XRViewport) Height ¶
func (_this *XRViewport) Height() int
Height returning attribute 'height' with type int (idl: long).
func (*XRViewport) JSValue ¶
func (_this *XRViewport) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*XRViewport) Width ¶
func (_this *XRViewport) Width() int
Width returning attribute 'width' with type int (idl: long).
func (*XRViewport) X ¶
func (_this *XRViewport) X() int
X returning attribute 'x' with type int (idl: long).
func (*XRViewport) Y ¶
func (_this *XRViewport) Y() int
Y returning attribute 'y' with type int (idl: long).
type XRWebGLLayer ¶
type XRWebGLLayer struct {
XRLayer
}
class: XRWebGLLayer
func NewXRWebGLLayer ¶
func NewXRWebGLLayer(session *XRSession, context *Union, layerInit *XRWebGLLayerInit) (_result *XRWebGLLayer)
func XRWebGLLayerFromJS ¶
func XRWebGLLayerFromJS(value js.Value) *XRWebGLLayer
XRWebGLLayerFromJS is casting a js.Value into XRWebGLLayer.
func XRWebGLLayerFromWrapper ¶
func XRWebGLLayerFromWrapper(input core.Wrapper) *XRWebGLLayer
XRWebGLLayerFromJS is casting from something that holds a js.Value into XRWebGLLayer.
func (*XRWebGLLayer) Alpha ¶
func (_this *XRWebGLLayer) Alpha() bool
Alpha returning attribute 'alpha' with type bool (idl: boolean).
func (*XRWebGLLayer) Antialias ¶
func (_this *XRWebGLLayer) Antialias() bool
Antialias returning attribute 'antialias' with type bool (idl: boolean).
func (*XRWebGLLayer) Context ¶
func (_this *XRWebGLLayer) Context() *Union
Context returning attribute 'context' with type Union (idl: Union).
func (*XRWebGLLayer) Depth ¶
func (_this *XRWebGLLayer) Depth() bool
Depth returning attribute 'depth' with type bool (idl: boolean).
func (*XRWebGLLayer) Framebuffer ¶
func (_this *XRWebGLLayer) Framebuffer() *webgl.Framebuffer
Framebuffer returning attribute 'framebuffer' with type webgl.Framebuffer (idl: WebGLFramebuffer).
func (*XRWebGLLayer) FramebufferHeight ¶
func (_this *XRWebGLLayer) FramebufferHeight() uint
FramebufferHeight returning attribute 'framebufferHeight' with type uint (idl: unsigned long).
func (*XRWebGLLayer) FramebufferWidth ¶
func (_this *XRWebGLLayer) FramebufferWidth() uint
FramebufferWidth returning attribute 'framebufferWidth' with type uint (idl: unsigned long).
func (*XRWebGLLayer) GetViewport ¶
func (_this *XRWebGLLayer) GetViewport(view *XRView) (_result *XRViewport)
func (*XRWebGLLayer) RequestViewportScaling ¶
func (_this *XRWebGLLayer) RequestViewportScaling(viewportScaleFactor float64)
func (*XRWebGLLayer) Stencil ¶
func (_this *XRWebGLLayer) Stencil() bool
Stencil returning attribute 'stencil' with type bool (idl: boolean).
type XRWebGLLayerInit ¶
type XRWebGLLayerInit struct { Antialias bool Depth bool Stencil bool Alpha bool FramebufferScaleFactor float64 }
dictionary: XRWebGLLayerInit
func XRWebGLLayerInitFromJS ¶
func XRWebGLLayerInitFromJS(value js.Value) *XRWebGLLayerInit
XRWebGLLayerInitFromJS is allocating a new XRWebGLLayerInit object and copy all values in the value javascript object.
func (*XRWebGLLayerInit) JSValue ¶
func (_this *XRWebGLLayerInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values