Package org.lwjgl.bgfx
Class BGFXResolution
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Backbuffer resolution and reset parameters.
Layout
struct bgfx_resolution_t {
bgfx_texture_format_t format()
;
uint32_t width()
;
uint32_t height()
;
uint32_t reset()
;
uint8_t numBackBuffers()
;
uint8_t maxFrameLatency()
;
uint8_t debugTextScale()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBGFXResolution
(ByteBuffer container) Creates aBGFXResolution
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXResolution
calloc()
Returns a newBGFXResolution
instance allocated withmemCalloc
.static BGFXResolution
calloc
(MemoryStack stack) Returns a newBGFXResolution
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BGFXResolution
Deprecated.static BGFXResolution
callocStack
(MemoryStack stack) Deprecated.static BGFXResolution
create()
Returns a newBGFXResolution
instance allocated withBufferUtils
.static BGFXResolution
create
(long address) Returns a newBGFXResolution
instance for the specified memory address.static BGFXResolution
createSafe
(long address) byte
scale factor for debug textdebugTextScale
(byte value) Sets the specified value to thedebugTextScale()
field.int
format()
backbuffer formatformat
(int value) Sets the specified value to theformat()
field.int
height()
backbuffer heightheight
(int value) Sets the specified value to theheight()
field.static BGFXResolution
malloc()
Returns a newBGFXResolution
instance allocated withmemAlloc
.static BGFXResolution
malloc
(MemoryStack stack) Returns a newBGFXResolution
instance allocated on the specifiedMemoryStack
.static BGFXResolution
Deprecated.static BGFXResolution
mallocStack
(MemoryStack stack) Deprecated.byte
maximum frame latencymaxFrameLatency
(byte value) Sets the specified value to themaxFrameLatency()
field.static byte
ndebugTextScale
(long struct) Unsafe version ofdebugTextScale()
.static void
ndebugTextScale
(long struct, byte value) Unsafe version ofdebugTextScale
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static byte
nmaxFrameLatency
(long struct) Unsafe version ofmaxFrameLatency()
.static void
nmaxFrameLatency
(long struct, byte value) Unsafe version ofmaxFrameLatency
.static byte
nnumBackBuffers
(long struct) Unsafe version ofnumBackBuffers()
.static void
nnumBackBuffers
(long struct, byte value) Unsafe version ofnumBackBuffers
.static int
nreset
(long struct) Unsafe version ofreset()
.static void
nreset
(long struct, int value) Unsafe version ofreset
.byte
number of back buffersnumBackBuffers
(byte value) Sets the specified value to thenumBackBuffers()
field.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.int
reset()
reset parametersreset
(int value) Sets the specified value to thereset()
field.set
(int format, int width, int height, int reset, byte numBackBuffers, byte maxFrameLatency, byte debugTextScale) Initializes this struct with the specified values.set
(BGFXResolution src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
width()
backbuffer widthwidth
(int value) Sets the specified value to thewidth()
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FORMAT
public static final int FORMATThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
RESET
public static final int RESETThe struct member offsets. -
NUMBACKBUFFERS
public static final int NUMBACKBUFFERSThe struct member offsets. -
MAXFRAMELATENCY
public static final int MAXFRAMELATENCYThe struct member offsets. -
DEBUGTEXTSCALE
public static final int DEBUGTEXTSCALEThe struct member offsets.
-
-
Constructor Details
-
BGFXResolution
Creates aBGFXResolution
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<BGFXResolution>
-
format
public int format()backbuffer format -
width
public int width()backbuffer width -
height
public int height()backbuffer height -
reset
public int reset()reset parameters -
numBackBuffers
public byte numBackBuffers()number of back buffers -
maxFrameLatency
public byte maxFrameLatency()maximum frame latency -
debugTextScale
public byte debugTextScale()scale factor for debug text -
format
Sets the specified value to theformat()
field. -
width
Sets the specified value to thewidth()
field. -
height
Sets the specified value to theheight()
field. -
reset
Sets the specified value to thereset()
field. -
numBackBuffers
Sets the specified value to thenumBackBuffers()
field. -
maxFrameLatency
Sets the specified value to themaxFrameLatency()
field. -
debugTextScale
Sets the specified value to thedebugTextScale()
field. -
set
public BGFXResolution set(int format, int width, int height, int reset, byte numBackBuffers, byte maxFrameLatency, byte debugTextScale) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newBGFXResolution
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newBGFXResolution
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newBGFXResolution
instance allocated withBufferUtils
. -
create
Returns a newBGFXResolution
instance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
malloc
Returns a newBGFXResolution
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newBGFXResolution
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
nreset
public static int nreset(long struct) Unsafe version ofreset()
. -
nnumBackBuffers
public static byte nnumBackBuffers(long struct) Unsafe version ofnumBackBuffers()
. -
nmaxFrameLatency
public static byte nmaxFrameLatency(long struct) Unsafe version ofmaxFrameLatency()
. -
ndebugTextScale
public static byte ndebugTextScale(long struct) Unsafe version ofdebugTextScale()
. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat
. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight
. -
nreset
public static void nreset(long struct, int value) Unsafe version ofreset
. -
nnumBackBuffers
public static void nnumBackBuffers(long struct, byte value) Unsafe version ofnumBackBuffers
. -
nmaxFrameLatency
public static void nmaxFrameLatency(long struct, byte value) Unsafe version ofmaxFrameLatency
. -
ndebugTextScale
public static void ndebugTextScale(long struct, byte value) Unsafe version ofdebugTextScale
.
-