java.lang.Object
overrungl.Pointer
overrungl.Struct
overrungl.glfw.GLFWVidMode
overrungl.glfw.GLFWVidMode.Buffer
- All Implemented Interfaces:
Addressable,ArrayPointer
- Enclosing class:
GLFWVidMode
Buffer relies on preview features of the Java platform:
Bufferrefers to one or more preview APIs:MemorySegment,SegmentAllocator.
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
-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.glfw.GLFWVidMode
GLFWVidMode.Buffer, GLFWVidMode.Value -
Field Summary
Fields inherited from class overrungl.glfw.GLFWVidMode
LAYOUTFields inherited from class overrungl.Pointer
address, allocator, managedSegment -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, long elementCount) Create aGLFWvidmode.Bufferinstance. -
Method Summary
Modifier and TypeMethodDescriptionintblueBits()Returns the bit depth of the blue channel of the video mode.intblueBitsAt(long index) Gets the blue bits at the given index.intReturns the bit depth of the green channel of the video mode.intgreenBitsAt(long index) Gets the green bits at the given index.intheight()Returns the height, in screen coordinates, of the video mode.intheightAt(long index) Gets the height at the given index.intredBits()Returns the bit depth of the red channel of the video mode.intredBitsAt(long index) Gets the red bits at the given index.intReturns the refresh rate, in Hz, of the video mode.intrefreshRateAt(long index) Gets the refresh rate at the given index.intwidth()Returns the width, in screen coordinates, of the video mode.intwidthAt(long index) Gets the width at the given index.Methods inherited from class overrungl.glfw.GLFWVidMode
create, create, valueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overrungl.Addressable
addressMethods inherited from interface overrungl.ArrayPointer
elementCount
-
Constructor Details
-
Buffer
Create aGLFWvidmode.Bufferinstance.- 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:GLFWVidModeReturns the width, in screen coordinates, of the video mode.- Overrides:
widthin classGLFWVidMode- Returns:
- the width, in screen coordinates, of the video mode
-
height
public int height()Description copied from class:GLFWVidModeReturns the height, in screen coordinates, of the video mode.- Overrides:
heightin classGLFWVidMode- Returns:
- the height, in screen coordinates, of the video mode
-
redBits
public int redBits()Description copied from class:GLFWVidModeReturns the bit depth of the red channel of the video mode.- Overrides:
redBitsin classGLFWVidMode- Returns:
- the bit depth of the red channel of the video mode
-
greenBits
public int greenBits()Description copied from class:GLFWVidModeReturns the bit depth of the green channel of the video mode.- Overrides:
greenBitsin classGLFWVidMode- Returns:
- the bit depth of the green channel of the video mode
-
blueBits
public int blueBits()Description copied from class:GLFWVidModeReturns the bit depth of the blue channel of the video mode.- Overrides:
blueBitsin classGLFWVidMode- Returns:
- the bit depth of the blue channel of the video mode
-
refreshRate
public int refreshRate()Description copied from class:GLFWVidModeReturns the refresh rate, in Hz, of the video mode.- Overrides:
refreshRatein classGLFWVidMode- Returns:
- the refresh rate, in Hz, of the video mode
-
Bufferwhen preview features are enabled.