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.StructA 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 classNVGLUFramebufferBGFX.BufferAn array ofNVGLUFramebufferBGFXstructs.
-
Constructor Summary
Constructors Constructor Description NVGLUFramebufferBGFX(java.nio.ByteBuffer container)Creates aNVGLUFramebufferBGFXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 NVGLUFramebufferBGFXcreateSafe(long address)static 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()shortviewId()
-
-
-
Constructor Detail
-
NVGLUFramebufferBGFX
public NVGLUFramebufferBGFX(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public static NVGLUFramebufferBGFX create(long address)
Returns a newNVGLUFramebufferBGFXinstance 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.Bufferinstance 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().
-
-