Package org.lwjgl.bgfx
Class BGFXTextureInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct bgfx_texture_info_t {
bgfx_texture_format_t format;
uint32_t storageSize;
uint16_t width;
uint16_t height;
uint16_t depth;
uint16_t numLayers;
uint8_t numMips;
uint8_t bitsPerPixel;
bool cubeMap;
}-
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 member offsets.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.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
ConstructorsConstructorDescriptionBGFXTextureInfo(ByteBuffer container) Creates aBGFXTextureInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytestatic BGFXTextureInfocalloc()Returns a newBGFXTextureInfoinstance allocated withmemCalloc.static BGFXTextureInfo.Buffercalloc(int capacity) Returns a newBGFXTextureInfo.Bufferinstance allocated withmemCalloc.static BGFXTextureInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newBGFXTextureInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTextureInfocalloc(MemoryStack stack) Returns a newBGFXTextureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTextureInfocreate()Returns a newBGFXTextureInfoinstance allocated withBufferUtils.static BGFXTextureInfo.Buffercreate(int capacity) Returns a newBGFXTextureInfo.Bufferinstance allocated withBufferUtils.static BGFXTextureInfocreate(long address) Returns a newBGFXTextureInfoinstance for the specified memory address.static BGFXTextureInfo.Buffercreate(long address, int capacity) Create aBGFXTextureInfo.Bufferinstance at the specified memory.static @Nullable BGFXTextureInfocreateSafe(long address) static @Nullable BGFXTextureInfo.BuffercreateSafe(long address, int capacity) booleancubeMap()shortdepth()intformat()shortheight()static BGFXTextureInfomalloc()Returns a newBGFXTextureInfoinstance allocated withmemAlloc.static BGFXTextureInfo.Buffermalloc(int capacity) Returns a newBGFXTextureInfo.Bufferinstance allocated withmemAlloc.static BGFXTextureInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newBGFXTextureInfo.Bufferinstance allocated on the specifiedMemoryStack.static BGFXTextureInfomalloc(MemoryStack stack) Returns a newBGFXTextureInfoinstance allocated on the specifiedMemoryStack.static bytenbitsPerPixel(long struct) Unsafe version ofbitsPerPixel().static booleanncubeMap(long struct) Unsafe version ofcubeMap().static shortndepth(long struct) Unsafe version ofdepth().static intnformat(long struct) Unsafe version offormat().static shortnheight(long struct) Unsafe version ofheight().static shortnnumLayers(long struct) Unsafe version ofnumLayers().static bytennumMips(long struct) Unsafe version ofnumMips().static intnstorageSize(long struct) Unsafe version ofstorageSize().shortbytenumMips()static shortnwidth(long struct) Unsafe version ofwidth().intsizeof()Returnssizeof(struct).intshortwidth()Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
FORMAT
public static final int FORMATThe struct member offsets. -
STORAGESIZE
public static final int STORAGESIZEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets. -
NUMLAYERS
public static final int NUMLAYERSThe struct member offsets. -
NUMMIPS
public static final int NUMMIPSThe struct member offsets. -
BITSPERPIXEL
public static final int BITSPERPIXELThe struct member offsets. -
CUBEMAP
public static final int CUBEMAPThe struct member offsets.
-
-
Constructor Details
-
BGFXTextureInfo
Creates aBGFXTextureInfoinstance 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<BGFXTextureInfo>
-
format
public int format()- Returns:
- the value of the
formatfield.
-
storageSize
public int storageSize()- Returns:
- the value of the
storageSizefield.
-
width
public short width()- Returns:
- the value of the
widthfield.
-
height
public short height()- Returns:
- the value of the
heightfield.
-
depth
public short depth()- Returns:
- the value of the
depthfield.
-
numLayers
public short numLayers()- Returns:
- the value of the
numLayersfield.
-
numMips
public byte numMips()- Returns:
- the value of the
numMipsfield.
-
bitsPerPixel
public byte bitsPerPixel()- Returns:
- the value of the
bitsPerPixelfield.
-
cubeMap
public boolean cubeMap()- Returns:
- the value of the
cubeMapfield.
-
malloc
Returns a newBGFXTextureInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBGFXTextureInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBGFXTextureInfoinstance allocated withBufferUtils. -
create
Returns a newBGFXTextureInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newBGFXTextureInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newBGFXTextureInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newBGFXTextureInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aBGFXTextureInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newBGFXTextureInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBGFXTextureInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newBGFXTextureInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newBGFXTextureInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nstorageSize
public static int nstorageSize(long struct) Unsafe version ofstorageSize(). -
nwidth
public static short nwidth(long struct) Unsafe version ofwidth(). -
nheight
public static short nheight(long struct) Unsafe version ofheight(). -
ndepth
public static short ndepth(long struct) Unsafe version ofdepth(). -
nnumLayers
public static short nnumLayers(long struct) Unsafe version ofnumLayers(). -
nnumMips
public static byte nnumMips(long struct) Unsafe version ofnumMips(). -
nbitsPerPixel
public static byte nbitsPerPixel(long struct) Unsafe version ofbitsPerPixel(). -
ncubeMap
public static boolean ncubeMap(long struct) Unsafe version ofcubeMap().
-