Documentation ¶
Index ¶
Constants ¶
View Source
const ( VENDOR = C.ohmd_string_value(iota) PRODUCT PATH )
String values for #Context.ListGets
View Source
const ( // float64[4], get - Absolute rotation of the device, in space, as a quaternion. ROTATION_QUAT = C.ohmd_float_value(iota + 1) // float64[16], get - A "ready to use" OpenGL style 4x4 matrix with a modelview matrix for the left eye of the HMD. LEFT_EYE_GL_MODELVIEW_MATRIX // float64[16], get - A "ready to use" OpenGL style 4x4 matrix with a modelview matrix for the right eye of the HMD. RIGHT_EYE_GL_MODELVIEW_MATRIX // float64[16], get - A "ready to use" OpenGL style 4x4 matrix with a projection matrix for the left eye of the HMD. LEFT_EYE_GL_PROJECTION_MATRIX // float64[16], get - A "ready to use" OpenGL style 4x4 matrix with a projection matrix for the right eye of the HMD. RIGHT_EYE_GL_PROJECTION_MATRIX // float64[3], get - A 3-D vector representing the absolute position of the device, in space. POSITION_VECTOR // float64[1], get - Physical width of the device screen, in centimeters. SCREEN_HORIZONTAL_SIZE // float64[1], get - Physical height of the device screen, in centimeters. SCREEN_VERTICAL_SIZE // float64[1], get - Physical speration of the device lenses, in centimeters. LENS_HORIZONTAL_SEPARATION // float64[1], get - Physical vertical position of the lenses, in centimeters. LENS_VERTICAL_POSITION // float64[1], get - Physical field of view for the left eye, in degrees. LEFT_EYE_FOV // float64[1], get - Physical display aspect ratio for the left eye screen. LEFT_EYE_ASPECT_RATIO // float64[1], get - Physical field of view for the left right, in degrees. RIGHT_EYE_FOV // float64[1], get Physical display aspect ratio for the right eye screen. RIGHT_EYE_ASPECT_RATIO // float64[1], get/set - Physical interpupilary distance of the user, in centimeters. EYE_IPD // float64[1], get/set - Z-far value for the projection matrix calculations, i.e. drawing distance. PROJECTION_ZFAR // float64[1], get/set - Z-near value for the projection matrix calculations, i.e. close clipping distance. PROJECTION_ZNEAR // float64[6], get - Device specifc distortion value. DISTORTION_K )
Float values for #Device.Getf
View Source
const ( // int[1], get Physical horizontal resolution of the device screen. SCREEN_HORIZONTAL_RESOLUTION = C.ohmd_int_value(iota) // int[1], get Physical vertical resolution of the device screen. SCREEN_VERTICAL_RESOLUTION )
int values for #Device.Geti
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ListOpenDevice ¶
ListOpenDevice returns a new device pointer for the device given by idx.
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) Getf ¶
func (d *Device) Getf(t C.ohmd_float_value) ([]float64, error)
Getf queries the device for current floating point values for the given t. returns float64 instead of float32 for convenience with the math package.
Click to show internal directories.
Click to hide internal directories.