Package org.lwjgl.nanovg
Class NVGLUFramebufferBGFX
- All Implemented Interfaces:
Pointer
struct NVGLUframebuffer {
NVGcontext * ctx;
bgfx_frame_buffer_handle_t handle;
int image;
bgfx_view_id_t viewId;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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 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
ConstructorsConstructorDescriptionNVGLUFramebufferBGFX
(ByteBuffer container) Creates aNVGLUFramebufferBGFX
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic NVGLUFramebufferBGFX
create
(long address) Returns a newNVGLUFramebufferBGFX
instance for the specified memory address.static NVGLUFramebufferBGFX.Buffer
create
(long address, int capacity) Create aNVGLUFramebufferBGFX.Buffer
instance at the specified memory.static @Nullable NVGLUFramebufferBGFX
createSafe
(long address) static @Nullable NVGLUFramebufferBGFX.Buffer
createSafe
(long address, int capacity) long
ctx()
short
handle()
int
image()
static long
nctx
(long struct) Unsafe version ofctx()
.static short
nhandle
(long struct) Unsafe version ofhandle()
.static int
nimage
(long struct) Unsafe version ofimage()
.static short
nviewId
(long struct) Unsafe version ofviewId()
.int
sizeof()
Returnssizeof(struct)
.short
viewId()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CTX
public static final int CTXThe struct member offsets. -
HANDLE
public static final int HANDLEThe struct member offsets. -
IMAGE
public static final int IMAGEThe struct member offsets. -
VIEWID
public static final int VIEWIDThe struct member offsets.
-
-
Constructor Details
-
NVGLUFramebufferBGFX
Creates aNVGLUFramebufferBGFX
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<NVGLUFramebufferBGFX>
-
ctx
public long ctx()- Returns:
- the value of the
ctx
field.
-
handle
public short handle()- Returns:
- the value of the
handle
field.
-
image
public int image()- Returns:
- the value of the
image
field.
-
viewId
public short viewId()- Returns:
- the value of the
viewId
field.
-
create
Returns a newNVGLUFramebufferBGFX
instance for the specified memory address. -
createSafe
-
create
Create aNVGLUFramebufferBGFX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nctx
public static long nctx(long struct) Unsafe version ofctx()
. -
nhandle
public static short nhandle(long struct) Unsafe version ofhandle()
. -
nimage
public static int nimage(long struct) Unsafe version ofimage()
. -
nviewId
public static short nviewId(long struct) Unsafe version ofviewId()
.
-