Package org.lwjgl.bgfx
Class BGFXResolution
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBGFXResolution(ByteBuffer container) Creates aBGFXResolutioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXResolutioncalloc()Returns a newBGFXResolutioninstance allocated withmemCalloc.static BGFXResolutioncalloc(MemoryStack stack) Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXResolutionDeprecated.static BGFXResolutioncallocStack(MemoryStack stack) Deprecated.static BGFXResolutioncreate()Returns a newBGFXResolutioninstance allocated withBufferUtils.static BGFXResolutioncreate(long address) Returns a newBGFXResolutioninstance for the specified memory address.static @Nullable BGFXResolutioncreateSafe(long address) bytedebugTextScale(byte value) Sets the specified value to thedebugTextScalefield.intformat()format(int value) Sets the specified value to theformatfield.intheight()height(int value) Sets the specified value to theheightfield.static BGFXResolutionmalloc()Returns a newBGFXResolutioninstance allocated withmemAlloc.static BGFXResolutionmalloc(MemoryStack stack) Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStack.static BGFXResolutionDeprecated.static BGFXResolutionmallocStack(MemoryStack stack) Deprecated.bytemaxFrameLatency(byte value) Sets the specified value to themaxFrameLatencyfield.static bytendebugTextScale(long struct) Unsafe version ofdebugTextScale().static voidndebugTextScale(long struct, byte value) Unsafe version ofdebugTextScale.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static bytenmaxFrameLatency(long struct) Unsafe version ofmaxFrameLatency().static voidnmaxFrameLatency(long struct, byte value) Unsafe version ofmaxFrameLatency.static bytennumBackBuffers(long struct) Unsafe version ofnumBackBuffers().static voidnnumBackBuffers(long struct, byte value) Unsafe version ofnumBackBuffers.static intnreset(long struct) Unsafe version ofreset().static voidnreset(long struct, int value) Unsafe version ofreset.bytenumBackBuffers(byte value) Sets the specified value to thenumBackBuffersfield.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.intreset()reset(int value) Sets the specified value to theresetfield.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.intsizeof()Returnssizeof(struct).intwidth()width(int value) Sets the specified value to thewidthfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aBGFXResolutioninstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<BGFXResolution>
-
format
public int format()- Returns:
- the value of the
formatfield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
reset
public int reset()- Returns:
- the value of the
resetfield.
-
numBackBuffers
public byte numBackBuffers()- Returns:
- the value of the
numBackBuffersfield.
-
maxFrameLatency
public byte maxFrameLatency()- Returns:
- the value of the
maxFrameLatencyfield.
-
debugTextScale
public byte debugTextScale()- Returns:
- the value of the
debugTextScalefield.
-
format
Sets the specified value to theformatfield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
reset
Sets the specified value to theresetfield. -
numBackBuffers
Sets the specified value to thenumBackBuffersfield. -
maxFrameLatency
Sets the specified value to themaxFrameLatencyfield. -
debugTextScale
Sets the specified value to thedebugTextScalefield. -
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 newBGFXResolutioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBGFXResolutioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBGFXResolutioninstance allocated withBufferUtils. -
create
Returns a newBGFXResolutioninstance 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 newBGFXResolutioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStackand 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.
-