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.StructA framebuffer object.Member documentation
fbo– the OpenGL framebuffer object handlerbo– the OpenGL renderbuffer handletexture– the OpenGL texture handleimage– the NanoVG image handle
Layout
struct NVGLUframebuffer { GLuint fbo; GLuint rbo; GLuint texture; int image; }
-
-
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()Returns the value of thefbofield.intimage()Returns the value of theimagefield.static 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()Returns the value of therbofield.intsizeof()inttexture()Returns the value of thetexturefield.
-
-
-
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()
Returns the value of thefbofield.
-
rbo
public int rbo()
Returns the value of therbofield.
-
texture
public int texture()
Returns the value of thetexturefield.
-
image
public int image()
Returns the value of theimagefield.
-
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().
-
-