Class DisplaySettings

java.lang.Object
com.ardor3d.framework.DisplaySettings

public class DisplaySettings extends Object
  • 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 new DisplaySettings object.
      Parameters:
      width - the canvas (unrotated) width
      height - the canvas (unrotated) height
      colorDepth - the number of color bits used to represent the color of a single pixel
      frequency - the number of times per second to repaint the canvas
      alphaBits - the numner of bits used to represent the translucency of a single pixel
      depthBits - the number of bits making up the z-buffer
      stencilBits - the number of bits making up the stencil buffer
      samples - the number of samples used to anti-alias
      fullScreen - true if the canvas should assume exclusive access to the screen
      stereo - 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) width
      height - the canvas (unrotated) height
      depthBits - the number of bits making up the z-buffer
      samples - 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) width
      height - the canvas (unrotated) height
      colorDepth - the number of color bits used to represent the color of a single pixel
      frequency - the number of times per second to repaint the canvas
      fullScreen - 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 to DisplaySettings(width, height, colorDepth, frequency, alphaBits, depthBits, stencilBits, samples, fullScreen, stereo, null, 0)
      Parameters:
      width - the canvas (unrotated) width
      height - the canvas (unrotated) height
      colorDepth - the number of color bits used to represent the color of a single pixel
      frequency - the number of times per second to repaint the canvas
      alphaBits - the numner of bits used to represent the translucency of a single pixel
      depthBits - the number of bits making up the z-buffer
      stencilBits - the number of bits making up the stencil buffer
      samples - the number of samples used to anti-alias
      fullScreen - true if the canvas should assume exclusive access to the screen
      stereo - 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 new DisplaySettings object with no rotation.
      Parameters:
      width - the canvas (unrotated) width
      height - the canvas (unrotated) height
      colorDepth - the number of color bits used to represent the color of a single pixel
      frequency - the number of times per second to repaint the canvas
      alphaBits - the numner of bits used to represent the translucency of a single pixel
      depthBits - the number of bits making up the z-buffer
      stencilBits - the number of bits making up the stencil buffer
      samples - the number of samples used to anti-alias
      fullScreen - true if the canvas should assume exclusive access to the screen
      stereo - 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

    • getShareContext

      public CanvasRenderer getShareContext()
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object