Package org.lwjgl.nanovg
Class NVGLUFramebuffer
- All Implemented Interfaces:
Pointer
struct NVGLUframebuffer {
GLuint fbo;
GLuint rbo;
GLuint texture;
int image;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 @Nullable NVGLUFramebuffercreateSafe(long address) static @Nullable NVGLUFramebuffer.BuffercreateSafe(long address, int capacity) intfbo()intimage()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()intsizeof()Returnssizeof(struct).inttexture()Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NVGLUFramebuffer>
-
fbo
public int fbo()- Returns:
- the value of the
fbofield.
-
rbo
public int rbo()- Returns:
- the value of the
rbofield.
-
texture
public int texture()- Returns:
- the value of the
texturefield.
-
image
public int image()- Returns:
- the value of the
imagefield.
-
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().
-