Package org.lwjgl.bgfx
Class BGFXUniformInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXUniformInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXUniformInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXUniformInfo.BufferAn array ofBGFXUniformInfostructs.
-
Constructor Summary
Constructors Constructor Description BGFXUniformInfo(java.nio.ByteBuffer container)Creates aBGFXUniformInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BGFXUniformInfocalloc()Returns a newBGFXUniformInfoinstance allocated withmemCalloc.static BGFXUniformInfo.Buffercalloc(int capacity)Returns a newBGFXUniformInfo.Bufferinstance allocated withmemCalloc.static BGFXUniformInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXUniformInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXUniformInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXUniformInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXUniformInfocallocStack()Deprecated.static BGFXUniformInfo.BuffercallocStack(int capacity)Deprecated.static BGFXUniformInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXUniformInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXUniformInfocreate()Returns a newBGFXUniformInfoinstance allocated withBufferUtils.static BGFXUniformInfo.Buffercreate(int capacity)Returns a newBGFXUniformInfo.Bufferinstance allocated withBufferUtils.static BGFXUniformInfocreate(long address)Returns a newBGFXUniformInfoinstance for the specified memory address.static BGFXUniformInfo.Buffercreate(long address, int capacity)Create aBGFXUniformInfo.Bufferinstance at the specified memory.static BGFXUniformInfocreateSafe(long address)static BGFXUniformInfo.BuffercreateSafe(long address, int capacity)static BGFXUniformInfomalloc()Returns a newBGFXUniformInfoinstance allocated withmemAlloc.static BGFXUniformInfo.Buffermalloc(int capacity)Returns a newBGFXUniformInfo.Bufferinstance allocated withmemAlloc.static BGFXUniformInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXUniformInfo.Bufferinstance allocated on the specifiedMemoryStack.static BGFXUniformInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXUniformInfoinstance allocated on the specifiedMemoryStack.static BGFXUniformInfomallocStack()Deprecated.static BGFXUniformInfo.BuffermallocStack(int capacity)Deprecated.static BGFXUniformInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXUniformInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffername()uniform nameBGFXUniformInfoname(java.nio.ByteBuffer value)Copies the specified encoded string to thename()field.java.lang.StringnameString()uniform namestatic java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static shortnnum(long struct)Unsafe version ofnum().static voidnnum(long struct, short value)Unsafe version ofnum.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.shortnum()number of elements in arrayBGFXUniformInfonum(short value)Sets the specified value to thenum()field.BGFXUniformInfoset(java.nio.ByteBuffer name, int type, short num)Initializes this struct with the specified values.BGFXUniformInfoset(BGFXUniformInfo src)Copies the specified struct data to this struct.intsizeof()inttype()uniform typeBGFXUniformInfotype(int value)Sets the specified value to thetype()field.
-
-
-
Constructor Detail
-
BGFXUniformInfo
public BGFXUniformInfo(java.nio.ByteBuffer container)
Creates aBGFXUniformInfoinstance 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
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
uniform name
-
type
public int type()
uniform type
-
num
public short num()
number of elements in array
-
name
public BGFXUniformInfo name(java.nio.ByteBuffer value)
Copies the specified encoded string to thename()field.
-
type
public BGFXUniformInfo type(int value)
Sets the specified value to thetype()field.
-
num
public BGFXUniformInfo num(short value)
Sets the specified value to thenum()field.
-
set
public BGFXUniformInfo set(java.nio.ByteBuffer name, int type, short num)
Initializes this struct with the specified values.
-
set
public BGFXUniformInfo set(BGFXUniformInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXUniformInfo malloc()
Returns a newBGFXUniformInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXUniformInfo calloc()
Returns a newBGFXUniformInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXUniformInfo create()
Returns a newBGFXUniformInfoinstance allocated withBufferUtils.
-
create
public static BGFXUniformInfo create(long address)
Returns a newBGFXUniformInfoinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXUniformInfo createSafe(long address)
-
malloc
public static BGFXUniformInfo.Buffer malloc(int capacity)
Returns a newBGFXUniformInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BGFXUniformInfo.Buffer calloc(int capacity)
Returns a newBGFXUniformInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXUniformInfo.Buffer create(int capacity)
Returns a newBGFXUniformInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXUniformInfo.Buffer create(long address, int capacity)
Create aBGFXUniformInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXUniformInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BGFXUniformInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXUniformInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXUniformInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXUniformInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXUniformInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXUniformInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXUniformInfo.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 BGFXUniformInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BGFXUniformInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXUniformInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXUniformInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXUniformInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BGFXUniformInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXUniformInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BGFXUniformInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXUniformInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnum
public static short nnum(long struct)
Unsafe version ofnum().
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnum
public static void nnum(long struct, short value)Unsafe version ofnum.
-
-