Package org.lwjgl.nanovg
Class NVGLUFramebufferBGFX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nanovg.NVGLUFramebufferBGFX
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NVGLUFramebufferBGFX extends org.lwjgl.system.Struct
A framebuffer object.Layout
struct NVGLUframebuffer { NVGcontext * ctx; bgfx_frame_buffer_handle_t handle; int image; bgfx_view_id_t viewId; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NVGLUFramebufferBGFX.Buffer
An array ofNVGLUFramebufferBGFX
structs.
-
Constructor Summary
Constructors Constructor Description NVGLUFramebufferBGFX(java.nio.ByteBuffer container)
Creates aNVGLUFramebufferBGFX
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 NVGLUFramebufferBGFX
createSafe(long address)
static NVGLUFramebufferBGFX.Buffer
createSafe(long address, int capacity)
long
ctx()
Returns the value of thectx
field.short
handle()
Returns the value of thehandle
field.int
image()
Returns the value of theimage
field.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()
short
viewId()
Returns the value of theviewId
field.
-
-
-
Constructor Detail
-
NVGLUFramebufferBGFX
public NVGLUFramebufferBGFX(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
ctx
public long ctx()
Returns the value of thectx
field.
-
handle
public short handle()
Returns the value of thehandle
field.
-
image
public int image()
Returns the value of theimage
field.
-
viewId
public short viewId()
Returns the value of theviewId
field.
-
create
public static NVGLUFramebufferBGFX create(long address)
Returns a newNVGLUFramebufferBGFX
instance for the specified memory address.
-
createSafe
@Nullable public static NVGLUFramebufferBGFX createSafe(long address)
-
create
public static NVGLUFramebufferBGFX.Buffer create(long address, int capacity)
Create aNVGLUFramebufferBGFX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NVGLUFramebufferBGFX.Buffer createSafe(long address, int capacity)
-
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()
.
-
-