public class OsvrDisplayLibrary
extends java.lang.Object
implements com.sun.jna.Library
Modifier and Type | Class and Description |
---|---|
static class |
OsvrDisplayLibrary.OSVR_ClientContext |
static class |
OsvrDisplayLibrary.OSVR_DisplayConfig |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JNA_LIBRARY_NAME |
static com.sun.jna.NativeLibrary |
JNA_NATIVE_LIB |
Constructor and Description |
---|
OsvrDisplayLibrary() |
Modifier and Type | Method and Description |
---|---|
static byte |
osvrClientCheckDisplayStartup(OsvrDisplayLibrary.OSVR_DisplayConfig disp)
Checks to see if a display is fully configured and ready, including
having received its first pose update. Once this first succeeds, it will continue to succeed for the lifetime of the display config object, so it is not necessary to keep calling once you get a successful result. |
static byte |
osvrClientCheckDisplayStartup(com.sun.jna.Pointer disp)
Deprecated.
use the safer method
osvrClientCheckDisplayStartup(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig)
instead |
static byte |
osvrClientDoesViewerEyeSurfaceWantDistortion(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
java.nio.ByteBuffer distortionRequested)
Determines if a surface seen by an eye of a viewer in a display
config requests some distortion to be performed. This simply reports true or false, and does not specify which kind of distortion implementations have been parameterized for this display. |
static byte |
osvrClientDoesViewerEyeSurfaceWantDistortion(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.Pointer distortionRequested)
Deprecated.
|
static byte |
osvrClientFreeDisplay(OsvrDisplayLibrary.OSVR_DisplayConfig disp)
Frees a display configuration object.
|
static byte |
osvrClientFreeDisplay(com.sun.jna.Pointer disp)
Deprecated.
use the safer method
osvrClientFreeDisplay(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig)
instead |
static byte |
osvrClientGetDisplay(OsvrClientKitLibrary.OSVR_ClientContext ctx,
com.sun.jna.ptr.PointerByReference disp)
Allocates a display configuration object populated with data from the
OSVR system. Before this call will succeed, your application will need to be correctly and fully connected to an OSVR server. |
static byte |
osvrClientGetDisplay(com.sun.jna.Pointer ctx,
com.sun.jna.Pointer disp)
Deprecated.
|
static byte |
osvrClientGetDisplay(com.sun.jna.Pointer ctx,
com.sun.jna.ptr.PointerByReference disp)
Allocates a display configuration object populated with data from the
OSVR system. Before this call will succeed, your application will need to be correctly and fully connected to an OSVR server. |
static byte |
osvrClientGetDisplayDimensions(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
byte displayInputIndex,
java.nio.IntBuffer width,
java.nio.IntBuffer height)
Retrieve the pixel dimensions of a given display input for a display
config |
static byte |
osvrClientGetDisplayDimensions(com.sun.jna.Pointer disp,
byte displayInputIndex,
com.sun.jna.ptr.IntByReference width,
com.sun.jna.ptr.IntByReference height)
Deprecated.
|
static byte |
osvrClientGetNumDisplayInputs(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
java.nio.ByteBuffer numDisplayInputs)
A display config can have one or more display inputs to pass pixels
over (HDMI/DVI connections, etcetera): retrieve the number of display inputs in the current configuration. |
static byte |
osvrClientGetNumDisplayInputs(com.sun.jna.Pointer disp,
com.sun.jna.Pointer numDisplayInputs)
Deprecated.
|
static byte |
osvrClientGetNumEyesForViewer(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
java.nio.ByteBuffer eyes)
Each viewer in a display config can have one or more "eyes" which
have a substantially similar pose: get the count. |
static byte |
osvrClientGetNumEyesForViewer(com.sun.jna.Pointer disp,
int viewer,
com.sun.jna.Pointer eyes)
Deprecated.
|
static byte |
osvrClientGetNumSurfacesForViewerEye(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
java.nio.IntBuffer surfaces)
Each eye of each viewer in a display config has one or more surfaces
(aka "screens") on which content should be rendered. |
static byte |
osvrClientGetNumSurfacesForViewerEye(com.sun.jna.Pointer disp,
int viewer,
byte eye,
com.sun.jna.ptr.IntByReference surfaces)
Deprecated.
|
static byte |
osvrClientGetNumViewers(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
java.nio.IntBuffer viewers)
A display config can have one (or theoretically more) viewers:
retrieve the viewer count. |
static byte |
osvrClientGetNumViewers(com.sun.jna.Pointer disp,
com.sun.jna.ptr.IntByReference viewers)
Deprecated.
use the safer method
osvrClientGetNumViewers(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, java.nio.IntBuffer)
instead |
static byte |
osvrClientGetRelativeViewportForViewerEyeSurface(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
java.nio.IntBuffer left,
java.nio.IntBuffer bottom,
java.nio.IntBuffer width,
java.nio.IntBuffer height)
Get the dimensions/location of the viewport **within the display
input** for a surface seen by an eye of a viewer in a display config. |
static byte |
osvrClientGetRelativeViewportForViewerEyeSurface(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.ptr.IntByReference left,
com.sun.jna.ptr.IntByReference bottom,
com.sun.jna.ptr.IntByReference width,
com.sun.jna.ptr.IntByReference height)
|
static byte |
osvrClientGetViewerEyePose(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
com.sun.jna.Pointer pose)
Get the "viewpoint" for the given eye of a viewer in a display
config. Will only succeed if osvrClientCheckDisplayStartup() succeeds. |
static byte |
osvrClientGetViewerEyePose(com.sun.jna.Pointer disp,
int viewer,
byte eye,
com.sun.jna.Pointer pose)
Deprecated.
|
static byte |
osvrClientGetViewerEyeSurfaceDisplayInputIndex(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
java.nio.ByteBuffer displayInput)
Get the index of the display input for a surface seen by an eye of a
viewer in a display config. This is the OSVR-assigned display input: it may not (and in practice, usually will not) match any platform-specific display indices. |
static byte |
osvrClientGetViewerEyeSurfaceDisplayInputIndex(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.Pointer displayInput)
Deprecated.
|
static byte |
osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
java.nio.DoubleBuffer left,
java.nio.DoubleBuffer right,
java.nio.DoubleBuffer bottom,
java.nio.DoubleBuffer top)
Get the clipping planes (positions at unit distance) for a surface
seen by an eye of a viewer in a display config. This is only for use in integrations that cannot accept a fully-formulated projection matrix as returned by osvrClientGetViewerEyeSurfaceProjectionMatrixf() or osvrClientGetViewerEyeSurfaceProjectionMatrixd(), and may not necessarily provide the same optimizations. As all the planes are given at unit (1) distance, before passing these planes to a consuming function in your application/engine, you will typically divide them by your near clipping plane distance. |
static byte |
osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.ptr.DoubleByReference left,
com.sun.jna.ptr.DoubleByReference right,
com.sun.jna.ptr.DoubleByReference bottom,
com.sun.jna.ptr.DoubleByReference top)
|
static byte |
osvrClientGetViewerEyeSurfaceProjectionMatrixd(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
double near,
double far,
short flags,
java.nio.DoubleBuffer matrix)
Get the projection matrix for a surface seen by an eye of a viewer
in a display config. |
static byte |
osvrClientGetViewerEyeSurfaceProjectionMatrixd(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
double near,
double far,
short flags,
com.sun.jna.ptr.DoubleByReference matrix)
|
static byte |
osvrClientGetViewerEyeSurfaceProjectionMatrixf(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
float near,
float far,
short flags,
java.nio.FloatBuffer matrix)
Get the projection matrix for a surface seen by an eye of a viewer
in a display config. |
static byte |
osvrClientGetViewerEyeSurfaceProjectionMatrixf(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
float near,
float far,
short flags,
com.sun.jna.ptr.FloatByReference matrix)
|
static byte |
osvrClientGetViewerEyeSurfaceRadialDistortion(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
com.sun.jna.Pointer params)
Returns the radial distortion parameters, if known/requested, for a
surface seen by an eye of a viewer in a display config. Will only succeed if osvrClientGetViewerEyeSurfaceRadialDistortionPriority() reports a non-negative priority. |
static byte |
osvrClientGetViewerEyeSurfaceRadialDistortion(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.Pointer params)
Deprecated.
|
static byte |
osvrClientGetViewerEyeSurfaceRadialDistortionPriority(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
int surface,
java.nio.IntBuffer priority)
Returns the priority/availability of radial distortion parameters for
a surface seen by an eye of a viewer in a display config. If osvrClientDoesViewerEyeSurfaceWantDistortion() reports false, then the display does not request distortion of any sort, and thus neither this nor any other distortion strategy priority function will report an "available" priority. |
static byte |
osvrClientGetViewerEyeSurfaceRadialDistortionPriority(com.sun.jna.Pointer disp,
int viewer,
byte eye,
int surface,
com.sun.jna.ptr.IntByReference priority)
Deprecated.
|
static byte |
osvrClientGetViewerEyeViewMatrixd(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
short flags,
java.nio.DoubleBuffer mat)
Get the view matrix (inverse of pose) for the given eye of a
viewer in a display config - matrix of **doubles**. Will only succeed if osvrClientCheckDisplayStartup() succeeds. |
static byte |
osvrClientGetViewerEyeViewMatrixd(com.sun.jna.Pointer disp,
int viewer,
byte eye,
short flags,
com.sun.jna.ptr.DoubleByReference mat)
Deprecated.
|
static byte |
osvrClientGetViewerEyeViewMatrixf(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
byte eye,
short flags,
java.nio.FloatBuffer mat)
Get the view matrix (inverse of pose) for the given eye of a
viewer in a display config - matrix of **floats**. Will only succeed if osvrClientCheckDisplayStartup() succeeds. |
static byte |
osvrClientGetViewerEyeViewMatrixf(com.sun.jna.Pointer disp,
int viewer,
byte eye,
short flags,
com.sun.jna.ptr.FloatByReference mat)
Deprecated.
|
static byte |
osvrClientGetViewerPose(OsvrDisplayLibrary.OSVR_DisplayConfig disp,
int viewer,
com.sun.jna.Pointer pose)
Get the pose of a viewer in a display config.
Note that there may not necessarily be any surfaces rendered from this pose (it's the unused "center" eye in a stereo configuration, for instance) so only use this if it makes integration into your engine or existing applications (not originally designed for stereo) easier. Will only succeed if osvrClientCheckDisplayStartup() succeeds. |
static byte |
osvrClientGetViewerPose(com.sun.jna.Pointer disp,
int viewer,
com.sun.jna.Pointer pose)
Deprecated.
|
public static final java.lang.String JNA_LIBRARY_NAME
public static final com.sun.jna.NativeLibrary JNA_NATIVE_LIB
@Deprecated public static byte osvrClientGetDisplay(com.sun.jna.Pointer ctx, com.sun.jna.Pointer disp)
osvrClientGetDisplay(com.jme3.system.osvr.osvrclientkit.OsvrClientKitLibrary.OSVR_ClientContext, com.sun.jna.ptr.PointerByReference)
insteadOSVR_ReturnCode osvrClientGetDisplay(OSVR_ClientContext, OSVR_DisplayConfig*)
public static byte osvrClientGetDisplay(OsvrClientKitLibrary.OSVR_ClientContext ctx, com.sun.jna.ptr.PointerByReference disp)
OSVR_ReturnCode osvrClientGetDisplay(OSVR_ClientContext, OSVR_DisplayConfig*)
public static byte osvrClientGetDisplay(com.sun.jna.Pointer ctx, com.sun.jna.ptr.PointerByReference disp)
OSVR_ReturnCode osvrClientGetDisplay(OSVR_ClientContext, OSVR_DisplayConfig*)
@Deprecated public static byte osvrClientFreeDisplay(com.sun.jna.Pointer disp)
osvrClientFreeDisplay(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig)
insteadOSVR_ReturnCode osvrClientFreeDisplay(OSVR_DisplayConfig)
public static byte osvrClientFreeDisplay(OsvrDisplayLibrary.OSVR_DisplayConfig disp)
OSVR_ReturnCode osvrClientFreeDisplay(OSVR_DisplayConfig)
@Deprecated public static byte osvrClientCheckDisplayStartup(com.sun.jna.Pointer disp)
osvrClientCheckDisplayStartup(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig)
insteadOSVR_ReturnCode osvrClientCheckDisplayStartup(OSVR_DisplayConfig)
public static byte osvrClientCheckDisplayStartup(OsvrDisplayLibrary.OSVR_DisplayConfig disp)
OSVR_ReturnCode osvrClientCheckDisplayStartup(OSVR_DisplayConfig)
@Deprecated public static byte osvrClientGetNumDisplayInputs(com.sun.jna.Pointer disp, com.sun.jna.Pointer numDisplayInputs)
osvrClientGetNumDisplayInputs(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, java.nio.ByteBuffer)
insteaddisp
- Display config object.numDisplayInputs
- Number of display inputs in the logical displayOSVR_ReturnCode osvrClientGetNumDisplayInputs(OSVR_DisplayConfig, OSVR_DisplayInputCount*)
public static byte osvrClientGetNumDisplayInputs(OsvrDisplayLibrary.OSVR_DisplayConfig disp, java.nio.ByteBuffer numDisplayInputs)
disp
- Display config object.numDisplayInputs
- Number of display inputs in the logical displayOSVR_ReturnCode osvrClientGetNumDisplayInputs(OSVR_DisplayConfig, OSVR_DisplayInputCount*)
@Deprecated public static byte osvrClientGetDisplayDimensions(com.sun.jna.Pointer disp, byte displayInputIndex, com.sun.jna.ptr.IntByReference width, com.sun.jna.ptr.IntByReference height)
osvrClientGetDisplayDimensions(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, byte, java.nio.IntBuffer, java.nio.IntBuffer)
insteaddisp
- Display config object.displayInputIndex
- The zero-based index of the display input.width
- Width (in pixels) of the display input.height
- Height (in pixels) of the display input.OSVR_ReturnCode osvrClientGetDisplayDimensions(OSVR_DisplayConfig, OSVR_DisplayInputCount, OSVR_DisplayDimension*, OSVR_DisplayDimension*)
public static byte osvrClientGetDisplayDimensions(OsvrDisplayLibrary.OSVR_DisplayConfig disp, byte displayInputIndex, java.nio.IntBuffer width, java.nio.IntBuffer height)
disp
- Display config object.displayInputIndex
- The zero-based index of the display input.width
- Width (in pixels) of the display input.height
- Height (in pixels) of the display input.OSVR_ReturnCode osvrClientGetDisplayDimensions(OSVR_DisplayConfig, OSVR_DisplayInputCount, OSVR_DisplayDimension*, OSVR_DisplayDimension*)
@Deprecated public static byte osvrClientGetNumViewers(com.sun.jna.Pointer disp, com.sun.jna.ptr.IntByReference viewers)
osvrClientGetNumViewers(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, java.nio.IntBuffer)
insteaddisp
- Display config object.viewers
- Number of viewers in the logical display topology,OSVR_ReturnCode osvrClientGetNumViewers(OSVR_DisplayConfig, OSVR_ViewerCount*)
public static byte osvrClientGetNumViewers(OsvrDisplayLibrary.OSVR_DisplayConfig disp, java.nio.IntBuffer viewers)
disp
- Display config object.viewers
- Number of viewers in the logical display topology,OSVR_ReturnCode osvrClientGetNumViewers(OSVR_DisplayConfig, OSVR_ViewerCount*)
@Deprecated public static byte osvrClientGetViewerPose(com.sun.jna.Pointer disp, int viewer, com.sun.jna.Pointer pose)
osvrClientGetViewerPose(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, com.sun.jna.Pointer)
insteadOSVR_ReturnCode osvrClientGetViewerPose(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_Pose3*)
public static byte osvrClientGetViewerPose(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, com.sun.jna.Pointer pose)
OSVR_ReturnCode osvrClientGetViewerPose(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_Pose3*)
@Deprecated public static byte osvrClientGetNumEyesForViewer(com.sun.jna.Pointer disp, int viewer, com.sun.jna.Pointer eyes)
osvrClientGetNumEyesForViewer(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, java.nio.ByteBuffer)
insteaddisp
- Display config object.viewer
- Viewer IDeyes
- Number of eyes for this viewer in the logical displayOSVR_ReturnCode osvrClientGetNumEyesForViewer(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount*)
public static byte osvrClientGetNumEyesForViewer(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, java.nio.ByteBuffer eyes)
disp
- Display config object.viewer
- Viewer IDeyes
- Number of eyes for this viewer in the logical displayOSVR_ReturnCode osvrClientGetNumEyesForViewer(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount*)
@Deprecated public static byte osvrClientGetViewerEyePose(com.sun.jna.Pointer disp, int viewer, byte eye, com.sun.jna.Pointer pose)
osvrClientGetViewerEyePose(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, com.sun.jna.Pointer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDpose
- Room-space pose (not relative to pose of the viewer)OSVR_ReturnCode osvrClientGetViewerEyePose(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_Pose3*)
public static byte osvrClientGetViewerEyePose(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, com.sun.jna.Pointer pose)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDpose
- Room-space pose (not relative to pose of the viewer)OSVR_ReturnCode osvrClientGetViewerEyePose(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_Pose3*)
@Deprecated public static byte osvrClientGetViewerEyeViewMatrixd(com.sun.jna.Pointer disp, int viewer, byte eye, short flags, com.sun.jna.ptr.DoubleByReference mat)
osvrClientGetViewerEyeViewMatrixd(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, short, java.nio.DoubleBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)mat
- Pass a double[::OSVR_MATRIX_SIZE] to get the transformationOSVR_ReturnCode osvrClientGetViewerEyeViewMatrixd(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_MatrixConventions, double*)
public static byte osvrClientGetViewerEyeViewMatrixd(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, short flags, java.nio.DoubleBuffer mat)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)mat
- Pass a double[::OSVR_MATRIX_SIZE] to get the transformationOSVR_ReturnCode osvrClientGetViewerEyeViewMatrixd(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_MatrixConventions, double*)
@Deprecated public static byte osvrClientGetViewerEyeViewMatrixf(com.sun.jna.Pointer disp, int viewer, byte eye, short flags, com.sun.jna.ptr.FloatByReference mat)
osvrClientGetViewerEyeViewMatrixf(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, short, java.nio.FloatBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)mat
- Pass a float[::OSVR_MATRIX_SIZE] to get the transformationOSVR_ReturnCode osvrClientGetViewerEyeViewMatrixf(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_MatrixConventions, float*)
public static byte osvrClientGetViewerEyeViewMatrixf(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, short flags, java.nio.FloatBuffer mat)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)mat
- Pass a float[::OSVR_MATRIX_SIZE] to get the transformationOSVR_ReturnCode osvrClientGetViewerEyeViewMatrixf(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_MatrixConventions, float*)
@Deprecated public static byte osvrClientGetNumSurfacesForViewerEye(com.sun.jna.Pointer disp, int viewer, byte eye, com.sun.jna.ptr.IntByReference surfaces)
osvrClientGetNumSurfacesForViewerEye(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, java.nio.IntBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurfaces
- Number of surfaces (numbered [0, surfaces - 1]) for theOSVR_ReturnCode osvrClientGetNumSurfacesForViewerEye(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount*)
public static byte osvrClientGetNumSurfacesForViewerEye(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, java.nio.IntBuffer surfaces)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurfaces
- Number of surfaces (numbered [0, surfaces - 1]) for theOSVR_ReturnCode osvrClientGetNumSurfacesForViewerEye(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount*)
@Deprecated public static byte osvrClientGetRelativeViewportForViewerEyeSurface(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.ptr.IntByReference left, com.sun.jna.ptr.IntByReference bottom, com.sun.jna.ptr.IntByReference width, com.sun.jna.ptr.IntByReference height)
osvrClientGetRelativeViewportForViewerEyeSurface(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDleft
- Output: Distance in pixels from the left of the video inputbottom
- Output: Distance in pixels from the bottom of the videowidth
- Output: Width of viewport in pixels.height
- Output: Height of viewport in pixels.OSVR_ReturnCode osvrClientGetRelativeViewportForViewerEyeSurface(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_ViewportDimension*, OSVR_ViewportDimension*, OSVR_ViewportDimension*, OSVR_ViewportDimension*)
public static byte osvrClientGetRelativeViewportForViewerEyeSurface(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, java.nio.IntBuffer left, java.nio.IntBuffer bottom, java.nio.IntBuffer width, java.nio.IntBuffer height)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDleft
- Output: Distance in pixels from the left of the video inputbottom
- Output: Distance in pixels from the bottom of the videowidth
- Output: Width of viewport in pixels.height
- Output: Height of viewport in pixels.OSVR_ReturnCode osvrClientGetRelativeViewportForViewerEyeSurface(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_ViewportDimension*, OSVR_ViewportDimension*, OSVR_ViewportDimension*, OSVR_ViewportDimension*)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceDisplayInputIndex(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.Pointer displayInput)
osvrClientGetViewerEyeSurfaceDisplayInputIndex(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.ByteBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDdisplayInput
- Zero-based index of the display input pixels forOSVR_ReturnCode osvrClientGetViewerEyeSurfaceDisplayInputIndex(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_DisplayInputCount*)
osvrClientGetNumDisplayInputs(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, java.nio.ByteBuffer)
,
osvrClientGetRelativeViewportForViewerEyeSurface(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer)
public static byte osvrClientGetViewerEyeSurfaceDisplayInputIndex(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, java.nio.ByteBuffer displayInput)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDdisplayInput
- Zero-based index of the display input pixels forOSVR_ReturnCode osvrClientGetViewerEyeSurfaceDisplayInputIndex(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_DisplayInputCount*)
osvrClientGetNumDisplayInputs(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, java.nio.ByteBuffer)
,
osvrClientGetRelativeViewportForViewerEyeSurface(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer, java.nio.IntBuffer)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceProjectionMatrixd(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, double near, double far, short flags, com.sun.jna.ptr.DoubleByReference matrix)
osvrClientGetViewerEyeSurfaceProjectionMatrixd(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, double, double, short, java.nio.DoubleBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDnear
- Distance from viewpoint to near clipping plane - must befar
- Distance from viewpoint to far clipping plane - must be positiveflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)matrix
- Output projection matrix: supply an array of 16OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixd(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, double, double, OSVR_MatrixConventions, double*)
public static byte osvrClientGetViewerEyeSurfaceProjectionMatrixd(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, double near, double far, short flags, java.nio.DoubleBuffer matrix)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDnear
- Distance from viewpoint to near clipping plane - must befar
- Distance from viewpoint to far clipping plane - must be positiveflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)matrix
- Output projection matrix: supply an array of 16OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixd(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, double, double, OSVR_MatrixConventions, double*)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceProjectionMatrixf(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, float near, float far, short flags, com.sun.jna.ptr.FloatByReference matrix)
osvrClientGetViewerEyeSurfaceProjectionMatrixf(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, float, float, short, java.nio.FloatBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDnear
- Distance to near clipping plane - must be nonzero, typicallyfar
- Distance to far clipping plane - must be nonzero, typicallyflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)matrix
- Output projection matrix: supply an array of 16OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixf(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, float, float, OSVR_MatrixConventions, float*)
public static byte osvrClientGetViewerEyeSurfaceProjectionMatrixf(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, float near, float far, short flags, java.nio.FloatBuffer matrix)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDnear
- Distance to near clipping plane - must be nonzero, typicallyfar
- Distance to far clipping plane - must be nonzero, typicallyflags
- Bitwise OR of matrix convention flags (see @ref MatrixFlags)matrix
- Output projection matrix: supply an array of 16OSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionMatrixf(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, float, float, OSVR_MatrixConventions, float*)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.ptr.DoubleByReference left, com.sun.jna.ptr.DoubleByReference right, com.sun.jna.ptr.DoubleByReference bottom, com.sun.jna.ptr.DoubleByReference top)
osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.DoubleBuffer, java.nio.DoubleBuffer, java.nio.DoubleBuffer, java.nio.DoubleBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDleft
- Distance to left clipping planeright
- Distance to right clipping planebottom
- Distance to bottom clipping planetop
- Distance to top clipping planeOSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, double*, double*, double*, double*)
public static byte osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, java.nio.DoubleBuffer left, java.nio.DoubleBuffer right, java.nio.DoubleBuffer bottom, java.nio.DoubleBuffer top)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDleft
- Distance to left clipping planeright
- Distance to right clipping planebottom
- Distance to bottom clipping planetop
- Distance to top clipping planeOSVR_ReturnCode osvrClientGetViewerEyeSurfaceProjectionClippingPlanes(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, double*, double*, double*, double*)
@Deprecated public static byte osvrClientDoesViewerEyeSurfaceWantDistortion(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.Pointer distortionRequested)
osvrClientDoesViewerEyeSurfaceWantDistortion(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.ByteBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDdistortionRequested
- Output parameter: whether distortion isOSVR_ReturnCode osvrClientDoesViewerEyeSurfaceWantDistortion(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_CBool*)
public static byte osvrClientDoesViewerEyeSurfaceWantDistortion(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, java.nio.ByteBuffer distortionRequested)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDdistortionRequested
- Output parameter: whether distortion isOSVR_ReturnCode osvrClientDoesViewerEyeSurfaceWantDistortion(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_CBool*)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceRadialDistortionPriority(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.ptr.IntByReference priority)
osvrClientGetViewerEyeSurfaceRadialDistortionPriority(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, java.nio.IntBuffer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDpriority
- Output: the priority level. Negative valuesOSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortionPriority(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_DistortionPriority*)
public static byte osvrClientGetViewerEyeSurfaceRadialDistortionPriority(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, java.nio.IntBuffer priority)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDpriority
- Output: the priority level. Negative valuesOSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortionPriority(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_DistortionPriority*)
@Deprecated public static byte osvrClientGetViewerEyeSurfaceRadialDistortion(com.sun.jna.Pointer disp, int viewer, byte eye, int surface, com.sun.jna.Pointer params)
osvrClientGetViewerEyeSurfaceRadialDistortion(com.jme3.system.osvr.osvrdisplay.OsvrDisplayLibrary.OSVR_DisplayConfig, int, byte, int, com.sun.jna.Pointer)
insteaddisp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDparams
- Output: the parameters for radial distortionOSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortion(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_RadialDistortionParameters*)
public static byte osvrClientGetViewerEyeSurfaceRadialDistortion(OsvrDisplayLibrary.OSVR_DisplayConfig disp, int viewer, byte eye, int surface, com.sun.jna.Pointer params)
disp
- Display config objectviewer
- Viewer IDeye
- Eye IDsurface
- Surface IDparams
- Output: the parameters for radial distortionOSVR_ReturnCode osvrClientGetViewerEyeSurfaceRadialDistortion(OSVR_DisplayConfig, OSVR_ViewerCount, OSVR_EyeCount, OSVR_SurfaceCount, OSVR_RadialDistortionParameters*)