-
Notifications
You must be signed in to change notification settings - Fork 31
/
arvrcamera.gen.go
41 lines (34 loc) · 1.65 KB
/
arvrcamera.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package godot
import (
"github.com/shadowapex/godot-go/gdnative"
)
/*------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Any updates should be done in
// "class.go.tmpl" so they can be included in the generated
// code.
//----------------------------------------------------------------------------*/
//func NewARVRCameraFromPointer(ptr gdnative.Pointer) ARVRCamera {
func newARVRCameraFromPointer(ptr gdnative.Pointer) ARVRCamera {
owner := gdnative.NewObjectFromPointer(ptr)
obj := ARVRCamera{}
obj.SetBaseObject(owner)
return obj
}
/*
This is a helper spatial node for our camera, note that if stereoscopic rendering is applicable (VR-HMD) most of the camera properties are ignored as the HMD information overrides them. The only properties that can be trusted are the near and far planes. The position and orientation of this node is automatically updated by the ARVR Server to represent the location of the HMD if such tracking is available and can thus be used by game logic. Note that in contrast to the ARVR Controller the render thread has access to the most up to date tracking data of the HMD and the location of the ARVRCamera can lag a few milliseconds behind what is used for rendering as a result.
*/
type ARVRCamera struct {
Camera
owner gdnative.Object
}
func (o *ARVRCamera) BaseClass() string {
return "ARVRCamera"
}
// ARVRCameraImplementer is an interface that implements the methods
// of the ARVRCamera class.
type ARVRCameraImplementer interface {
CameraImplementer
}