Package org.lwjgl.bgfx
Class BGFXAttachment.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<BGFXAttachment,BGFXAttachment.Buffer>
-
- org.lwjgl.bgfx.BGFXAttachment.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<BGFXAttachment>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- BGFXAttachment
public static class BGFXAttachment.Buffer extends org.lwjgl.system.StructBuffer<BGFXAttachment,BGFXAttachment.Buffer> implements org.lwjgl.system.NativeResource
An array ofBGFXAttachment
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
access()
Returns the value of theaccess
field.BGFXAttachment.Buffer
access(int value)
Sets the specified value to theaccess
field.short
handle()
Returns the value of thehandle
field.BGFXAttachment.Buffer
handle(short value)
Sets the specified value to thehandle
field.short
layer()
Returns the value of thelayer
field.BGFXAttachment.Buffer
layer(short value)
Sets the specified value to thelayer
field.short
mip()
Returns the value of themip
field.BGFXAttachment.Buffer
mip(short value)
Sets the specified value to themip
field.byte
resolve()
Returns the value of theresolve
field.BGFXAttachment.Buffer
resolve(byte value)
Sets the specified value to theresolve
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBGFXAttachment.Buffer
instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byBGFXAttachment.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
access
public int access()
Returns the value of theaccess
field.
-
handle
public short handle()
Returns the value of thehandle
field.
-
mip
public short mip()
Returns the value of themip
field.
-
layer
public short layer()
Returns the value of thelayer
field.
-
resolve
public byte resolve()
Returns the value of theresolve
field.
-
access
public BGFXAttachment.Buffer access(int value)
Sets the specified value to theaccess
field.
-
handle
public BGFXAttachment.Buffer handle(short value)
Sets the specified value to thehandle
field.
-
mip
public BGFXAttachment.Buffer mip(short value)
Sets the specified value to themip
field.
-
layer
public BGFXAttachment.Buffer layer(short value)
Sets the specified value to thelayer
field.
-
resolve
public BGFXAttachment.Buffer resolve(byte value)
Sets the specified value to theresolve
field.
-
-