public class BGFXResolution
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
format – backbuffer formatwidth – backbuffer widthheight – backbuffer heightreset – reset parametersnumBackBuffers – number of back buffersmaxFrameLatency – maximum frame latency
struct bgfx_resolution_t {
bgfx_texture_format_t format;
uint32_t width;
uint32_t height;
uint32_t reset;
uint8_t numBackBuffers;
uint8_t maxFrameLatency;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FORMAT
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
MAXFRAMELATENCY
The struct member offsets.
|
static int |
NUMBACKBUFFERS
The struct member offsets.
|
static int |
RESET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXResolution(java.nio.ByteBuffer container)
Creates a
BGFXResolution instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXResolution |
calloc()
Returns a new
BGFXResolution instance allocated with memCalloc. |
static BGFXResolution |
callocStack()
Returns a new
BGFXResolution instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXResolution |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXResolution instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXResolution |
create()
Returns a new
BGFXResolution instance allocated with BufferUtils. |
static BGFXResolution |
create(long address)
Returns a new
BGFXResolution instance for the specified memory address. |
static BGFXResolution |
createSafe(long address)
|
int |
format()
Returns the value of the
format field. |
BGFXResolution |
format(int value)
Sets the specified value to the
format field. |
int |
height()
Returns the value of the
height field. |
BGFXResolution |
height(int value)
Sets the specified value to the
height field. |
static BGFXResolution |
malloc()
Returns a new
BGFXResolution instance allocated with memAlloc. |
static BGFXResolution |
mallocStack()
Returns a new
BGFXResolution instance allocated on the thread-local MemoryStack. |
static BGFXResolution |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXResolution instance allocated on the specified MemoryStack. |
byte |
maxFrameLatency()
Returns the value of the
maxFrameLatency field. |
BGFXResolution |
maxFrameLatency(byte value)
Sets the specified value to the
maxFrameLatency field. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static int |
nheight(long struct)
Unsafe version of
height(). |
static void |
nheight(long struct,
int value)
Unsafe version of
height. |
static byte |
nmaxFrameLatency(long struct)
Unsafe version of
maxFrameLatency(). |
static void |
nmaxFrameLatency(long struct,
byte value)
Unsafe version of
maxFrameLatency. |
static byte |
nnumBackBuffers(long struct)
Unsafe version of
numBackBuffers(). |
static void |
nnumBackBuffers(long struct,
byte value)
Unsafe version of
numBackBuffers. |
static int |
nreset(long struct)
Unsafe version of
reset(). |
static void |
nreset(long struct,
int value)
Unsafe version of
reset. |
byte |
numBackBuffers()
Returns the value of the
numBackBuffers field. |
BGFXResolution |
numBackBuffers(byte value)
Sets the specified value to the
numBackBuffers field. |
static int |
nwidth(long struct)
Unsafe version of
width(). |
static void |
nwidth(long struct,
int value)
Unsafe version of
width. |
int |
reset()
Returns the value of the
reset field. |
BGFXResolution |
reset(int value)
Sets the specified value to the
reset field. |
BGFXResolution |
set(BGFXResolution src)
Copies the specified struct data to this struct.
|
BGFXResolution |
set(int format,
int width,
int height,
int reset,
byte numBackBuffers,
byte maxFrameLatency)
Initializes this struct with the specified values.
|
int |
sizeof() |
int |
width()
Returns the value of the
width field. |
BGFXResolution |
width(int value)
Sets the specified value to the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FORMAT
public static final int WIDTH
public static final int HEIGHT
public static final int RESET
public static final int NUMBACKBUFFERS
public static final int MAXFRAMELATENCY
public BGFXResolution(java.nio.ByteBuffer container)
BGFXResolution 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 format()
format field.public int width()
width field.public int height()
height field.public int reset()
reset field.public byte numBackBuffers()
numBackBuffers field.public byte maxFrameLatency()
maxFrameLatency field.public BGFXResolution format(int value)
format field.public BGFXResolution width(int value)
width field.public BGFXResolution height(int value)
height field.public BGFXResolution reset(int value)
reset field.public BGFXResolution numBackBuffers(byte value)
numBackBuffers field.public BGFXResolution maxFrameLatency(byte value)
maxFrameLatency field.public BGFXResolution set(int format, int width, int height, int reset, byte numBackBuffers, byte maxFrameLatency)
public BGFXResolution set(BGFXResolution src)
src - the source structpublic static BGFXResolution malloc()
BGFXResolution instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXResolution calloc()
BGFXResolution instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXResolution create()
BGFXResolution instance allocated with BufferUtils.public static BGFXResolution create(long address)
BGFXResolution instance for the specified memory address.@Nullable public static BGFXResolution createSafe(long address)
public static BGFXResolution mallocStack()
BGFXResolution instance allocated on the thread-local MemoryStack.public static BGFXResolution callocStack()
BGFXResolution instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXResolution mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXResolution instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXResolution callocStack(org.lwjgl.system.MemoryStack stack)
BGFXResolution instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static int nformat(long struct)
format().public static int nwidth(long struct)
width().public static int nheight(long struct)
height().public static int nreset(long struct)
reset().public static byte nnumBackBuffers(long struct)
numBackBuffers().public static byte nmaxFrameLatency(long struct)
maxFrameLatency().public static void nformat(long struct,
int value)
format.public static void nwidth(long struct,
int value)
width.public static void nheight(long struct,
int value)
height.public static void nreset(long struct,
int value)
reset.public static void nnumBackBuffers(long struct,
byte value)
numBackBuffers.public static void nmaxFrameLatency(long struct,
byte value)
maxFrameLatency.Copyright LWJGL. All Rights Reserved. License terms.