Package org.lwjgl.bgfx
Class BGFXResolution
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXResolution
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXResolution extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBackbuffer resolution and reset parameters.Layout
struct bgfx_resolution_t { bgfx_texture_format_tformat(); uint32_twidth(); uint32_theight(); uint32_treset(); uint8_tnumBackBuffers(); uint8_tmaxFrameLatency(); }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFORMAT
HEIGHT
MAXFRAMELATENCY
NUMBACKBUFFERS
RESETThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXResolution(java.nio.ByteBuffer container)Creates aBGFXResolutioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BGFXResolutioncalloc()Returns a newBGFXResolutioninstance allocated withmemCalloc.static BGFXResolutioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXResolutioncallocStack()Deprecated.static BGFXResolutioncallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXResolutioncreate()Returns a newBGFXResolutioninstance allocated withBufferUtils.static BGFXResolutioncreate(long address)Returns a newBGFXResolutioninstance for the specified memory address.static BGFXResolutioncreateSafe(long address)intformat()backbuffer formatBGFXResolutionformat(int value)Sets the specified value to theformat()field.intheight()backbuffer heightBGFXResolutionheight(int value)Sets the specified value to theheight()field.static BGFXResolutionmalloc()Returns a newBGFXResolutioninstance allocated withmemAlloc.static BGFXResolutionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStack.static BGFXResolutionmallocStack()Deprecated.static BGFXResolutionmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.bytemaxFrameLatency()maximum frame latencyBGFXResolutionmaxFrameLatency(byte value)Sets the specified value to themaxFrameLatency()field.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()number of back buffersBGFXResolutionnumBackBuffers(byte value)Sets the specified value to thenumBackBuffers()field.static intnwidth(long struct)Unsafe version ofwidth().static voidnwidth(long struct, int value)Unsafe version ofwidth.intreset()reset parametersBGFXResolutionreset(int value)Sets the specified value to thereset()field.BGFXResolutionset(int format, int width, int height, int reset, byte numBackBuffers, byte maxFrameLatency)Initializes this struct with the specified values.BGFXResolutionset(BGFXResolution src)Copies the specified struct data to this struct.intsizeof()intwidth()backbuffer widthBGFXResolutionwidth(int value)Sets the specified value to thewidth()field.
-
-
-
Constructor Detail
-
BGFXResolution
public BGFXResolution(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
-
format
public BGFXResolution format(int value)
Sets the specified value to theformat()field.
-
width
public BGFXResolution width(int value)
Sets the specified value to thewidth()field.
-
height
public BGFXResolution height(int value)
Sets the specified value to theheight()field.
-
reset
public BGFXResolution reset(int value)
Sets the specified value to thereset()field.
-
numBackBuffers
public BGFXResolution numBackBuffers(byte value)
Sets the specified value to thenumBackBuffers()field.
-
maxFrameLatency
public BGFXResolution maxFrameLatency(byte value)
Sets the specified value to themaxFrameLatency()field.
-
set
public BGFXResolution set(int format, int width, int height, int reset, byte numBackBuffers, byte maxFrameLatency)
Initializes this struct with the specified values.
-
set
public BGFXResolution set(BGFXResolution src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXResolution malloc()
Returns a newBGFXResolutioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXResolution calloc()
Returns a newBGFXResolutioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXResolution create()
Returns a newBGFXResolutioninstance allocated withBufferUtils.
-
create
public static BGFXResolution create(long address)
Returns a newBGFXResolutioninstance for the specified memory address.
-
createSafe
@Nullable public static BGFXResolution createSafe(long address)
-
mallocStack
@Deprecated public static BGFXResolution mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXResolution callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXResolution mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXResolution callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static BGFXResolution malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXResolutioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXResolution calloc(org.lwjgl.system.MemoryStack stack)
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().
-
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.
-
-