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:
Buffer
refers 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
LAYOUT
Fields inherited from class overrungl.Pointer
address, allocator, managedSegment
-
Constructor Summary
ConstructorDescriptionBuffer
(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, long elementCount) Create aGLFWvidmode.Buffer
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
blueBits()
Returns the bit depth of the blue channel of the video mode.int
blueBitsAt
(long index) Gets the blue bits at the given index.int
Returns the bit depth of the green channel of the video mode.int
greenBitsAt
(long index) Gets the green bits at the given index.int
height()
Returns the height, in screen coordinates, of the video mode.int
heightAt
(long index) Gets the height at the given index.int
redBits()
Returns the bit depth of the red channel of the video mode.int
redBitsAt
(long index) Gets the red bits at the given index.int
Returns the refresh rate, in Hz, of the video mode.int
refreshRateAt
(long index) Gets the refresh rate at the given index.int
width()
Returns the width, in screen coordinates, of the video mode.int
widthAt
(long index) Gets the width at the given index.Methods inherited from class overrungl.glfw.GLFWVidMode
create, create, value
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface overrungl.Addressable
address
Methods inherited from interface overrungl.ArrayPointer
elementCount
-
Constructor Details
-
Buffer
Create aGLFWvidmode.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 classGLFWVidMode
- 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 classGLFWVidMode
- 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 classGLFWVidMode
- 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 classGLFWVidMode
- 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 classGLFWVidMode
- 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 classGLFWVidMode
- Returns:
- the refresh rate, in Hz, of the video mode
-
Buffer
when preview features are enabled.