public class
HeadMountedDisplay
Encapsulates the parameters describing a head mounted stereoscopic display device composed of a screen and a Cardboard-compatible device holding it.
Instead of creating an instance of this class yourself, consider using
HeadMountedDisplayManager
instead.
Public Constructors
Public Methods
boolean | |
CardboardDeviceParams | |
ScreenParams | |
void |
setCardboardDeviceParams(CardboardDeviceParams cardboardDeviceParams)
|
void |
setScreenParams(ScreenParams screen)
|
Inherited Methods
Public Constructors
public HeadMountedDisplay (ScreenParams screenParams, CardboardDeviceParamscardboardDevice)
Creates a new head mounted display object with the provided objects.
Parameters
screenParams | Screen params to use. |
---|---|
cardboardDevice | Cardboard device params to use. |
public HeadMountedDisplay (HeadMountedDisplay hmd)
Creates a new head mounted display object by copying the contents of another.
Parameters
hmd | Head mounted display object to copy from. |
---|
Public Methods
public boolean equals (Object other)
Compares this instance with the specified object and indicates if they are equal.
Parameters
other | The object to compare this instance with. |
---|
Returns
true
if the objects are equal,false
otherwise.
public CardboardDeviceParams getCardboardDeviceParams ()
Returns the parameters describing the Cardboard device.
Returns
- The parameters describing the Cardboard device.
public ScreenParams getScreenParams ()
Returns the parameters describing the screen.
Returns
- The parameters describing the screen.
public void setCardboardDeviceParams (CardboardDeviceParamscardboardDeviceParams)
Sets the parameters describing the Cardboard device.
Parameters
cardboardDeviceParams | The parameters describing the Cardboard device. |
---|
public void setScreenParams (ScreenParams screen)
Sets the parameters describing the screen.
Parameters
screen | The parameters describing the screen. |
---|