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.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 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
ConstructorsConstructorDescriptionNVGLUFramebufferBGFX(ByteBuffer container) Creates aNVGLUFramebufferBGFXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic NVGLUFramebufferBGFXcreate(long address) Returns a newNVGLUFramebufferBGFXinstance for the specified memory address.static NVGLUFramebufferBGFX.Buffercreate(long address, int capacity) Create aNVGLUFramebufferBGFX.Bufferinstance at the specified memory.static @Nullable NVGLUFramebufferBGFXcreateSafe(long address) static @Nullable NVGLUFramebufferBGFX.BuffercreateSafe(long address, int capacity) longctx()shorthandle()intimage()static longnctx(long struct) Unsafe version ofctx().static shortnhandle(long struct) Unsafe version ofhandle().static intnimage(long struct) Unsafe version ofimage().static shortnviewId(long struct) Unsafe version ofviewId().intsizeof()Returnssizeof(struct).shortviewId()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 aNVGLUFramebufferBGFXinstance 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<NVGLUFramebufferBGFX>
-
ctx
public long ctx()- Returns:
- the value of the
ctxfield.
-
handle
public short handle()- Returns:
- the value of the
handlefield.
-
image
public int image()- Returns:
- the value of the
imagefield.
-
viewId
public short viewId()- Returns:
- the value of the
viewIdfield.
-
create
Returns a newNVGLUFramebufferBGFXinstance for the specified memory address. -
createSafe
-
create
Create aNVGLUFramebufferBGFX.Bufferinstance 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().
-