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 ofBGFXAttachmentstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaccess()BGFXAttachment.Bufferaccess(int value)Sets the specified value to theBGFXAttachment.access()field.shorthandle()BGFXAttachment.Bufferhandle(short value)Sets the specified value to theBGFXAttachment.handle()field.shortlayer()BGFXAttachment.Bufferlayer(short value)Sets the specified value to theBGFXAttachment.layer()field.shortmip()BGFXAttachment.Buffermip(short value)Sets the specified value to theBGFXAttachment.mip()field.shortnumLayers()BGFXAttachment.BuffernumLayers(short value)Sets the specified value to theBGFXAttachment.numLayers()field.byteresolve()BGFXAttachment.Bufferresolve(byte value)Sets the specified value to theBGFXAttachment.resolve()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newBGFXAttachment.Bufferinstance 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 the
BGFXAttachment.access()field.
-
handle
public short handle()
- Returns:
- the value of the
BGFXAttachment.handle()field.
-
mip
public short mip()
- Returns:
- the value of the
BGFXAttachment.mip()field.
-
layer
public short layer()
- Returns:
- the value of the
BGFXAttachment.layer()field.
-
numLayers
public short numLayers()
- Returns:
- the value of the
BGFXAttachment.numLayers()field.
-
resolve
public byte resolve()
- Returns:
- the value of the
BGFXAttachment.resolve()field.
-
access
public BGFXAttachment.Buffer access(int value)
Sets the specified value to theBGFXAttachment.access()field.
-
handle
public BGFXAttachment.Buffer handle(short value)
Sets the specified value to theBGFXAttachment.handle()field.
-
mip
public BGFXAttachment.Buffer mip(short value)
Sets the specified value to theBGFXAttachment.mip()field.
-
layer
public BGFXAttachment.Buffer layer(short value)
Sets the specified value to theBGFXAttachment.layer()field.
-
numLayers
public BGFXAttachment.Buffer numLayers(short value)
Sets the specified value to theBGFXAttachment.numLayers()field.
-
resolve
public BGFXAttachment.Buffer resolve(byte value)
Sets the specified value to theBGFXAttachment.resolve()field.
-
-