28package com.jogamp.newt.opengl.util.stereo;
32import com.jogamp.nativewindow.util.Dimension;
33import com.jogamp.nativewindow.util.DimensionImmutable;
34import com.jogamp.nativewindow.util.PointImmutable;
35import com.jogamp.nativewindow.util.Rectangle;
36import com.jogamp.nativewindow.util.RectangleImmutable;
38import com.jogamp.newt.Display;
39import com.jogamp.newt.MonitorDevice;
40import com.jogamp.newt.MonitorMode;
41import com.jogamp.newt.NewtFactory;
42import com.jogamp.newt.Screen;
43import com.jogamp.newt.util.MonitorModeUtil;
44import com.jogamp.opengl.util.stereo.StereoDevice;
75 System.err.println(
"StereoDevice Monitor: "+monitor);
77 if( adjustRotation && deviceReqRotation != currentMode.
getRotation() ) {
78 System.err.println(
"StereoDevice Current Mode: "+currentMode+
", requires rotation: "+deviceReqRotation);
80 if( 90 == deviceReqRotation || 270 == deviceReqRotation ) {
83 deviceRotRes = deviceRes;
88 if( mmodes2.size() > 0 ) {
90 System.err.println(
"StereoDevice Set Mode: "+newMode);
94 System.err.println(
"StereoDevice Post-Set Mode: "+queriedMode);
96 System.err.println(
"StereoDevice Keeps Mode: "+currentMode);
Visual output device, i.e.
final MonitorMode getCurrentMode()
Returns the cached current MonitorMode w/o native query.
abstract MonitorMode queryCurrentMode()
Returns the current MonitorMode resulting from a native query.
abstract boolean setCurrentMode(MonitorMode mode)
Set the current com.jogamp.newt.MonitorMode.
final List< MonitorMode > getSupportedModes()
Returns a list of immutable MonitorModes supported by this monitor.
Immutable MonitorMode Class, consisting of it's read only components:
final int getRotation()
Returns the CCW rotation of this mode.
static Display createDisplay(final String name)
Create a Display entity.
static Screen createScreen(final Display display, final int index)
Create a Screen entity.
A screen may span multiple MonitorDevices representing their combined virtual size.
abstract int addReference()
See Display#addReference().
final MonitorDevice getMainMonitor(final RectangleImmutable r)
Returns the MonitorDevice with the highest viewport coverage of the given rectangle in window units,...
StereoDevice NEWT related utilities.
static MonitorDevice getMonitorDevice(final StereoDevice stereoDevice, final boolean adjustRotation)
Returns the StereoDevice's associated MonitorDevice or null, if none is attached.
Convenient com.jogamp.newt.MonitorMode utility methods, filters etc.
static List< MonitorMode > filterByResolution(final List< MonitorMode > monitorModes, final DimensionImmutable resolution)
static List< MonitorMode > filterByRotation(final List< MonitorMode > monitorModes, final int rotation)
Immutable Dimension Interface, consisting of it's read only components:
Immutable Point interface.
Immutable Rectangle interface, with its position on the top-left.
Interface describing a native stereoscopic device.
DimensionImmutable getSurfaceSize()
Returns the required surface size in pixel in target space.
PointImmutable getPosition()
If operation within a device spanning virtual desktop, returns the device position.
int getRequiredRotation()
Returns the CCW rotation as required by this display device.