Package org.lwjgl.nanovg
Class NVGLUFramebuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nanovg.NVGLUFramebuffer
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NVGLUFramebuffer extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNVGLUFramebuffer.BufferAn array ofNVGLUFramebufferstructs.
-
Constructor Summary
Constructors Constructor Description NVGLUFramebuffer(java.nio.ByteBuffer container)Creates aNVGLUFramebufferinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NVGLUFramebuffercreate(long address)Returns a newNVGLUFramebufferinstance for the specified memory address.static NVGLUFramebuffer.Buffercreate(long address, int capacity)Create aNVGLUFramebuffer.Bufferinstance at the specified memory.static NVGLUFramebuffercreateSafe(long address)static NVGLUFramebuffer.BuffercreateSafe(long address, int capacity)intfbo()the OpenGL framebuffer object handleintimage()the NanoVG image handlestatic intnfbo(long struct)Unsafe version offbo().static intnimage(long struct)Unsafe version ofimage().static intnrbo(long struct)Unsafe version ofrbo().static intntexture(long struct)Unsafe version oftexture().intrbo()the OpenGL renderbuffer handleintsizeof()inttexture()the OpenGL texture handle
-
-
-
Constructor Detail
-
NVGLUFramebuffer
public NVGLUFramebuffer(java.nio.ByteBuffer container)
Creates aNVGLUFramebufferinstance 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
-
fbo
public int fbo()
the OpenGL framebuffer object handle
-
rbo
public int rbo()
the OpenGL renderbuffer handle
-
texture
public int texture()
the OpenGL texture handle
-
image
public int image()
the NanoVG image handle
-
create
public static NVGLUFramebuffer create(long address)
Returns a newNVGLUFramebufferinstance for the specified memory address.
-
createSafe
@Nullable public static NVGLUFramebuffer createSafe(long address)
-
create
public static NVGLUFramebuffer.Buffer create(long address, int capacity)
Create aNVGLUFramebuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NVGLUFramebuffer.Buffer createSafe(long address, int capacity)
-
nfbo
public static int nfbo(long struct)
Unsafe version offbo().
-
nrbo
public static int nrbo(long struct)
Unsafe version ofrbo().
-
ntexture
public static int ntexture(long struct)
Unsafe version oftexture().
-
nimage
public static int nimage(long struct)
Unsafe version ofimage().
-
-