Package com.ardor3d.framework
Class DisplaySettings
java.lang.Object
com.ardor3d.framework.DisplaySettings
-
Constructor Summary
ConstructorDescriptionDisplaySettings
(int width, int height, int depthBits, int samples) Convenience methodDisplaySettings
(int width, int height, int colorDepth, int frequency, boolean fullScreen) Convenience methodDisplaySettings
(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo) Convenience method equivalent toDisplaySettings(width, height, colorDepth, frequency, alphaBits, depthBits, stencilBits, samples, fullScreen, stereo, null, 0)
DisplaySettings
(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo, CanvasRenderer shareContext) Creates a newDisplaySettings
object with no rotation.DisplaySettings
(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo, CanvasRenderer shareContext, int rotation) Creates a newDisplaySettings
object. -
Method Summary
-
Constructor Details
-
DisplaySettings
public DisplaySettings(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo, CanvasRenderer shareContext, int rotation) Creates a newDisplaySettings
object.- Parameters:
width
- the canvas (unrotated) widthheight
- the canvas (unrotated) heightcolorDepth
- the number of color bits used to represent the color of a single pixelfrequency
- the number of times per second to repaint the canvasalphaBits
- the numner of bits used to represent the translucency of a single pixeldepthBits
- the number of bits making up the z-bufferstencilBits
- the number of bits making up the stencil buffersamples
- the number of samples used to anti-aliasfullScreen
- true if the canvas should assume exclusive access to the screenstereo
- true if the canvas should be rendered stereoscopically (for 3D glasses)shareContext
- the renderer used to render the canvas (see "ardor3d.useMultipleContexts" property)rotation
- the rotation of the first monitor- See Also:
-
DisplaySettings
public DisplaySettings(int width, int height, int depthBits, int samples) Convenience method- Parameters:
width
- the canvas (unrotated) widthheight
- the canvas (unrotated) heightdepthBits
- the number of bits making up the z-buffersamples
- the number of samples used to anti-alias- See Also:
-
DisplaySettings
public DisplaySettings(int width, int height, int colorDepth, int frequency, boolean fullScreen) Convenience method- Parameters:
width
- the canvas (unrotated) widthheight
- the canvas (unrotated) heightcolorDepth
- the number of color bits used to represent the color of a single pixelfrequency
- the number of times per second to repaint the canvasfullScreen
- true if the canvas should assume exclusive access to the screen- See Also:
-
DisplaySettings
public DisplaySettings(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo) Convenience method equivalent toDisplaySettings(width, height, colorDepth, frequency, alphaBits, depthBits, stencilBits, samples, fullScreen, stereo, null, 0)
- Parameters:
width
- the canvas (unrotated) widthheight
- the canvas (unrotated) heightcolorDepth
- the number of color bits used to represent the color of a single pixelfrequency
- the number of times per second to repaint the canvasalphaBits
- the numner of bits used to represent the translucency of a single pixeldepthBits
- the number of bits making up the z-bufferstencilBits
- the number of bits making up the stencil buffersamples
- the number of samples used to anti-aliasfullScreen
- true if the canvas should assume exclusive access to the screenstereo
- true if the canvas should be rendered stereoscopically (for 3D glasses)- See Also:
-
DisplaySettings
public DisplaySettings(int width, int height, int colorDepth, int frequency, int alphaBits, int depthBits, int stencilBits, int samples, boolean fullScreen, boolean stereo, CanvasRenderer shareContext) Creates a newDisplaySettings
object with no rotation.- Parameters:
width
- the canvas (unrotated) widthheight
- the canvas (unrotated) heightcolorDepth
- the number of color bits used to represent the color of a single pixelfrequency
- the number of times per second to repaint the canvasalphaBits
- the numner of bits used to represent the translucency of a single pixeldepthBits
- the number of bits making up the z-bufferstencilBits
- the number of bits making up the stencil buffersamples
- the number of samples used to anti-aliasfullScreen
- true if the canvas should assume exclusive access to the screenstereo
- true if the canvas should be rendered stereoscopically (for 3D glasses)shareContext
- the renderer used to render the canvas (see "ardor3d.useMultipleContexts" property)- See Also:
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getColorDepth
public int getColorDepth() -
getFrequency
public int getFrequency() -
getAlphaBits
public int getAlphaBits() -
getDepthBits
public int getDepthBits() -
getStencilBits
public int getStencilBits() -
getSamples
public int getSamples() -
isFullScreen
public boolean isFullScreen() -
isStereo
public boolean isStereo() -
getRotation
public int getRotation() -
getRotatedWidth
public int getRotatedWidth() -
getRotatedHeight
public int getRotatedHeight() -
equals
-
hashCode
public int hashCode()