public class GLFWVidMode
extends org.lwjgl.system.Struct
width – the width, in screen coordinates, of the video modeheight – the height, in screen coordinates, of the video moderedBits – the bit depth of the red channel of the video modegreenBits – the bit depth of the green channel of the video modeblueBits – the bit depth of the blue channel of the video moderefreshRate – the refresh rate, in Hz, of the video mode
struct GLFWvidmode {
int width;
int height;
int redBits;
int greenBits;
int blueBits;
int refreshRate;
}| Modifier and Type | Class and Description |
|---|---|
static class |
GLFWVidMode.Buffer
An array of
GLFWVidMode structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BLUEBITS
The struct member offsets.
|
static int |
GREENBITS
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
REDBITS
The struct member offsets.
|
static int |
REFRESHRATE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
GLFWVidMode(java.nio.ByteBuffer container)
Creates a
GLFWVidMode instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
blueBits()
Returns the value of the
blueBits field. |
static GLFWVidMode |
create(long address)
Returns a new
GLFWVidMode instance for the specified memory address. |
static GLFWVidMode.Buffer |
create(long address,
int capacity)
Create a
GLFWVidMode.Buffer instance at the specified memory. |
static GLFWVidMode |
createSafe(long address)
|
static GLFWVidMode.Buffer |
createSafe(long address,
int capacity)
|
int |
greenBits()
Returns the value of the
greenBits field. |
int |
height()
Returns the value of the
height field. |
static int |
nblueBits(long struct)
Unsafe version of
blueBits(). |
static int |
ngreenBits(long struct)
Unsafe version of
greenBits(). |
static int |
nheight(long struct)
Unsafe version of
height(). |
static int |
nredBits(long struct)
Unsafe version of
redBits(). |
static int |
nrefreshRate(long struct)
Unsafe version of
refreshRate(). |
static int |
nwidth(long struct)
Unsafe version of
width(). |
int |
redBits()
Returns the value of the
redBits field. |
int |
refreshRate()
Returns the value of the
refreshRate field. |
int |
sizeof() |
int |
width()
Returns the value of the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int WIDTH
public static final int HEIGHT
public static final int REDBITS
public static final int GREENBITS
public static final int BLUEBITS
public static final int REFRESHRATE
public GLFWVidMode(java.nio.ByteBuffer container)
GLFWVidMode instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int width()
width field.public int height()
height field.public int redBits()
redBits field.public int greenBits()
greenBits field.public int blueBits()
blueBits field.public int refreshRate()
refreshRate field.public static GLFWVidMode create(long address)
GLFWVidMode instance for the specified memory address.@Nullable public static GLFWVidMode createSafe(long address)
public static GLFWVidMode.Buffer create(long address, int capacity)
GLFWVidMode.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static GLFWVidMode.Buffer createSafe(long address, int capacity)
public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nredBits(long struct)
redBits().public static int ngreenBits(long struct)
greenBits().public static int nblueBits(long struct)
blueBits().public static int nrefreshRate(long struct)
refreshRate().Copyright LWJGL. All Rights Reserved. License terms.