Package org.lwjgl.nanovg
Class NVGLUFramebuffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<NVGLUFramebuffer>
org.lwjgl.nanovg.NVGLUFramebuffer
- All Implemented Interfaces:
org.lwjgl.system.Pointer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNVGLUFramebuffer(ByteBuffer container) Creates aNVGLUFramebufferinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 handleMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FBO
public static final int FBOThe struct member offsets. -
RBO
public static final int RBOThe struct member offsets. -
TEXTURE
public static final int TEXTUREThe struct member offsets. -
IMAGE
public static final int IMAGEThe struct member offsets.
-
-
Constructor Details
-
NVGLUFramebuffer
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<NVGLUFramebuffer>
-
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
Returns a newNVGLUFramebufferinstance for the specified memory address. -
createSafe
-
create
Create aNVGLUFramebuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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().
-