Class GLFWVidMode

All Implemented Interfaces:
Addressable
Direct Known Subclasses:
GLFWVidMode.Buffer

public class GLFWVidMode extends Struct
GLFWVidMode relies on preview features of the Java platform:
Programs can only use GLFWVidMode 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 a single video mode.

Layout


 struct GLFWvidmode {
     int width();
     int height();
     int redBits();
     int greenBits();
     int blueBits();
     int refreshRate();
 }
Since:
0.1.0
Author:
squid233
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static GLFWVidMode create(SegmentAllocatorPREVIEW allocator)
      Creates a GLFWVidMode instance with the given allocator.
      Parameters:
      allocator - the allocator
      Returns:
      the instance
    • create

      public static GLFWVidMode.Buffer create(SegmentAllocatorPREVIEW allocator, long count)
      Creates a GLFWVidMode.Buffer instance with the given allocator and count.
      Parameters:
      allocator - the allocator
      count - the count
      Returns:
      the instance
    • value

      public GLFWVidMode.Value value()
      Returns an immutable state of this struct.
      Returns:
      an immutable state of this struct
    • width

      public int width()
      Returns the width, in screen coordinates, of the video mode.
      Returns:
      the width, in screen coordinates, of the video mode
    • height

      public int height()
      Returns the height, in screen coordinates, of the video mode.
      Returns:
      the height, in screen coordinates, of the video mode
    • redBits

      public int redBits()
      Returns the bit depth of the red channel of the video mode.
      Returns:
      the bit depth of the red channel of the video mode
    • greenBits

      public int greenBits()
      Returns the bit depth of the green channel of the video mode.
      Returns:
      the bit depth of the green channel of the video mode
    • blueBits

      public int blueBits()
      Returns the bit depth of the blue channel of the video mode.
      Returns:
      the bit depth of the blue channel of the video mode
    • refreshRate

      public int refreshRate()
      Returns the refresh rate, in Hz, of the video mode.
      Returns:
      the refresh rate, in Hz, of the video mode