Package org.lwjgl.bgfx
Class BGFXAttachment
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXAttachment
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXAttachment extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXAttachment.BufferAn array ofBGFXAttachmentstructs.
-
Constructor Summary
Constructors Constructor Description BGFXAttachment(java.nio.ByteBuffer container)Creates aBGFXAttachmentinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intaccess()attachment accessBGFXAttachmentaccess(int value)Sets the specified value to theaccess()field.static BGFXAttachmentcalloc()Returns a newBGFXAttachmentinstance allocated withmemCalloc.static BGFXAttachment.Buffercalloc(int capacity)Returns a newBGFXAttachment.Bufferinstance allocated withmemCalloc.static BGFXAttachment.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXAttachment.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXAttachmentcalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXAttachmentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXAttachmentcallocStack()Deprecated.static BGFXAttachment.BuffercallocStack(int capacity)Deprecated.static BGFXAttachment.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXAttachmentcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXAttachmentcreate()Returns a newBGFXAttachmentinstance allocated withBufferUtils.static BGFXAttachment.Buffercreate(int capacity)Returns a newBGFXAttachment.Bufferinstance allocated withBufferUtils.static BGFXAttachmentcreate(long address)Returns a newBGFXAttachmentinstance for the specified memory address.static BGFXAttachment.Buffercreate(long address, int capacity)Create aBGFXAttachment.Bufferinstance at the specified memory.static BGFXAttachmentcreateSafe(long address)static BGFXAttachment.BuffercreateSafe(long address, int capacity)shorthandle()render target texture handleBGFXAttachmenthandle(short value)Sets the specified value to thehandle()field.shortlayer()cubemap side or depth layer/slice to useBGFXAttachmentlayer(short value)Sets the specified value to thelayer()field.static BGFXAttachmentmalloc()Returns a newBGFXAttachmentinstance allocated withmemAlloc.static BGFXAttachment.Buffermalloc(int capacity)Returns a newBGFXAttachment.Bufferinstance allocated withmemAlloc.static BGFXAttachment.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXAttachment.Bufferinstance allocated on the specifiedMemoryStack.static BGFXAttachmentmalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXAttachmentinstance allocated on the specifiedMemoryStack.static BGFXAttachmentmallocStack()Deprecated.static BGFXAttachment.BuffermallocStack(int capacity)Deprecated.static BGFXAttachment.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXAttachmentmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.shortmip()mip levelBGFXAttachmentmip(short value)Sets the specified value to themip()field.static intnaccess(long struct)Unsafe version ofaccess().static voidnaccess(long struct, int value)Unsafe version ofaccess.static shortnhandle(long struct)Unsafe version ofhandle().static voidnhandle(long struct, short value)Unsafe version ofhandle.static shortnlayer(long struct)Unsafe version oflayer().static voidnlayer(long struct, short value)Unsafe version oflayer.static shortnmip(long struct)Unsafe version ofmip().static voidnmip(long struct, short value)Unsafe version ofmip.static shortnnumLayers(long struct)Unsafe version ofnumLayers().static voidnnumLayers(long struct, short value)Unsafe version ofnumLayers.static bytenresolve(long struct)Unsafe version ofresolve().static voidnresolve(long struct, byte value)Unsafe version ofresolve.shortnumLayers()number of texture layer/slice(s) in array to useBGFXAttachmentnumLayers(short value)Sets the specified value to thenumLayers()field.byteresolve()resolve flags.BGFXAttachmentresolve(byte value)Sets the specified value to theresolve()field.BGFXAttachmentset(int access, short handle, short mip, short layer, short numLayers, byte resolve)Initializes this struct with the specified values.BGFXAttachmentset(BGFXAttachment src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
BGFXAttachment
public BGFXAttachment(java.nio.ByteBuffer container)
Creates aBGFXAttachmentinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
access
public int access()
attachment access
-
handle
public short handle()
render target texture handle
-
mip
public short mip()
mip level
-
layer
public short layer()
cubemap side or depth layer/slice to use
-
numLayers
public short numLayers()
number of texture layer/slice(s) in array to use
-
resolve
public byte resolve()
resolve flags. One of:RESOLVE_NONERESOLVE_AUTO_GEN_MIPS
-
access
public BGFXAttachment access(int value)
Sets the specified value to theaccess()field.
-
handle
public BGFXAttachment handle(short value)
Sets the specified value to thehandle()field.
-
mip
public BGFXAttachment mip(short value)
Sets the specified value to themip()field.
-
layer
public BGFXAttachment layer(short value)
Sets the specified value to thelayer()field.
-
numLayers
public BGFXAttachment numLayers(short value)
Sets the specified value to thenumLayers()field.
-
resolve
public BGFXAttachment resolve(byte value)
Sets the specified value to theresolve()field.
-
set
public BGFXAttachment set(int access, short handle, short mip, short layer, short numLayers, byte resolve)
Initializes this struct with the specified values.
-
set
public BGFXAttachment set(BGFXAttachment src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXAttachment malloc()
Returns a newBGFXAttachmentinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXAttachment calloc()
Returns a newBGFXAttachmentinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXAttachment create()
Returns a newBGFXAttachmentinstance allocated withBufferUtils.
-
create
public static BGFXAttachment create(long address)
Returns a newBGFXAttachmentinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXAttachment createSafe(long address)
-
malloc
public static BGFXAttachment.Buffer malloc(int capacity)
Returns a newBGFXAttachment.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BGFXAttachment.Buffer calloc(int capacity)
Returns a newBGFXAttachment.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXAttachment.Buffer create(int capacity)
Returns a newBGFXAttachment.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXAttachment.Buffer create(long address, int capacity)
Create aBGFXAttachment.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXAttachment.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BGFXAttachment mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXAttachment callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXAttachment mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXAttachment callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXAttachment.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXAttachment.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXAttachment.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXAttachment.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BGFXAttachment malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXAttachmentinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXAttachment calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXAttachmentinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BGFXAttachment.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXAttachment.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BGFXAttachment.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXAttachment.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
naccess
public static int naccess(long struct)
Unsafe version ofaccess().
-
nhandle
public static short nhandle(long struct)
Unsafe version ofhandle().
-
nmip
public static short nmip(long struct)
Unsafe version ofmip().
-
nlayer
public static short nlayer(long struct)
Unsafe version oflayer().
-
nnumLayers
public static short nnumLayers(long struct)
Unsafe version ofnumLayers().
-
nresolve
public static byte nresolve(long struct)
Unsafe version ofresolve().
-
naccess
public static void naccess(long struct, int value)Unsafe version ofaccess.
-
nhandle
public static void nhandle(long struct, short value)Unsafe version ofhandle.
-
nmip
public static void nmip(long struct, short value)Unsafe version ofmip.
-
nlayer
public static void nlayer(long struct, short value)Unsafe version oflayer.
-
nnumLayers
public static void nnumLayers(long struct, short value)Unsafe version ofnumLayers.
-
nresolve
public static void nresolve(long struct, byte value)Unsafe version ofresolve.
-
-