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
A 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 class
NVGLUFramebuffer.Buffer
An array ofNVGLUFramebuffer
structs.
-
Constructor Summary
Constructors Constructor Description NVGLUFramebuffer(java.nio.ByteBuffer container)
Creates aNVGLUFramebuffer
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 NVGLUFramebuffer
create(long address)
Returns a newNVGLUFramebuffer
instance for the specified memory address.static NVGLUFramebuffer.Buffer
create(long address, int capacity)
Create aNVGLUFramebuffer.Buffer
instance at the specified memory.static NVGLUFramebuffer
createSafe(long address)
static NVGLUFramebuffer.Buffer
createSafe(long address, int capacity)
int
fbo()
Returns the value of thefbo
field.int
image()
Returns the value of theimage
field.static int
nfbo(long struct)
Unsafe version offbo()
.static int
nimage(long struct)
Unsafe version ofimage()
.static int
nrbo(long struct)
Unsafe version ofrbo()
.static int
ntexture(long struct)
Unsafe version oftexture()
.int
rbo()
Returns the value of therbo
field.int
sizeof()
int
texture()
Returns the value of thetexture
field.
-
-
-
Constructor Detail
-
NVGLUFramebuffer
public NVGLUFramebuffer(java.nio.ByteBuffer container)
Creates aNVGLUFramebuffer
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
-
fbo
public int fbo()
Returns the value of thefbo
field.
-
rbo
public int rbo()
Returns the value of therbo
field.
-
texture
public int texture()
Returns the value of thetexture
field.
-
image
public int image()
Returns the value of theimage
field.
-
create
public static NVGLUFramebuffer create(long address)
Returns a newNVGLUFramebuffer
instance 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.Buffer
instance 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()
.
-
-