Class GLFWVidMode.Buffer

All Implemented Interfaces:
Addressable, ArrayPointer
Enclosing class:
GLFWVidMode

public static class GLFWVidMode.Buffer extends GLFWVidMode implements ArrayPointer
Buffer relies on preview features of the Java platform:
Programs can only use Buffer when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
This describes video modes.
Since:
0.1.0
Author:
squid233
  • Constructor Details

    • Buffer

      public Buffer(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, long elementCount)
      Create a GLFWvidmode.Buffer instance.
      Parameters:
      address - the address.
      allocator - the allocator of this address.
      elementCount - the element count
  • Method Details

    • widthAt

      public int widthAt(long index)
      Gets the width at the given index.
      Parameters:
      index - the index
      Returns:
      The width, in screen coordinates, of the video mode.
    • heightAt

      public int heightAt(long index)
      Gets the height at the given index.
      Parameters:
      index - the index
      Returns:
      The height, in screen coordinates, of the video mode.
    • redBitsAt

      public int redBitsAt(long index)
      Gets the red bits at the given index.
      Parameters:
      index - the index
      Returns:
      The bit depth of the red channel, of the video mode.
    • greenBitsAt

      public int greenBitsAt(long index)
      Gets the green bits at the given index.
      Parameters:
      index - the index
      Returns:
      The bit depth of the green channel, of the video mode.
    • blueBitsAt

      public int blueBitsAt(long index)
      Gets the blue bits at the given index.
      Parameters:
      index - the index
      Returns:
      The bit depth of the blue channel, of the video mode.
    • refreshRateAt

      public int refreshRateAt(long index)
      Gets the refresh rate at the given index.
      Parameters:
      index - the index
      Returns:
      The refresh rate, in Hz, of the video mode.
    • width

      public int width()
      Description copied from class: GLFWVidMode
      Returns the width, in screen coordinates, of the video mode.
      Overrides:
      width in class GLFWVidMode
      Returns:
      the width, in screen coordinates, of the video mode
    • height

      public int height()
      Description copied from class: GLFWVidMode
      Returns the height, in screen coordinates, of the video mode.
      Overrides:
      height in class GLFWVidMode
      Returns:
      the height, in screen coordinates, of the video mode
    • redBits

      public int redBits()
      Description copied from class: GLFWVidMode
      Returns the bit depth of the red channel of the video mode.
      Overrides:
      redBits in class GLFWVidMode
      Returns:
      the bit depth of the red channel of the video mode
    • greenBits

      public int greenBits()
      Description copied from class: GLFWVidMode
      Returns the bit depth of the green channel of the video mode.
      Overrides:
      greenBits in class GLFWVidMode
      Returns:
      the bit depth of the green channel of the video mode
    • blueBits

      public int blueBits()
      Description copied from class: GLFWVidMode
      Returns the bit depth of the blue channel of the video mode.
      Overrides:
      blueBits in class GLFWVidMode
      Returns:
      the bit depth of the blue channel of the video mode
    • refreshRate

      public int refreshRate()
      Description copied from class: GLFWVidMode
      Returns the refresh rate, in Hz, of the video mode.
      Overrides:
      refreshRate in class GLFWVidMode
      Returns:
      the refresh rate, in Hz, of the video mode