public class BGFXTextureInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
format – texture format. One of:storageSize – total amount of bytes required to store texturewidth – texture widthheight – texture heightdepth – texture depthnumLayers – number of layers in texture arraynumMips – number of MIP mapsbitsPerPixel – format bits per pixelcubeMap – texture is cubemap
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXTextureInfo.Buffer
An array of
BGFXTextureInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BITSPERPIXEL
The struct member offsets.
|
static int |
CUBEMAP
The struct member offsets.
|
static int |
DEPTH
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
NUMLAYERS
The struct member offsets.
|
static int |
NUMMIPS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STORAGESIZE
The struct member offsets.
|
static int |
WIDTH
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXTextureInfo(java.nio.ByteBuffer container)
Creates a
BGFXTextureInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
byte |
bitsPerPixel()
Returns the value of the
bitsPerPixel field. |
static BGFXTextureInfo |
calloc()
Returns a new
BGFXTextureInfo instance allocated with memCalloc. |
static BGFXTextureInfo.Buffer |
calloc(int capacity)
Returns a new
BGFXTextureInfo.Buffer instance allocated with memCalloc. |
static BGFXTextureInfo |
callocStack()
Returns a new
BGFXTextureInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTextureInfo.Buffer |
callocStack(int capacity)
Returns a new
BGFXTextureInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTextureInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTextureInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTextureInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTextureInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTextureInfo |
create()
Returns a new
BGFXTextureInfo instance allocated with BufferUtils. |
static BGFXTextureInfo.Buffer |
create(int capacity)
Returns a new
BGFXTextureInfo.Buffer instance allocated with BufferUtils. |
static BGFXTextureInfo |
create(long address)
Returns a new
BGFXTextureInfo instance for the specified memory address. |
static BGFXTextureInfo.Buffer |
create(long address,
int capacity)
Create a
BGFXTextureInfo.Buffer instance at the specified memory. |
static BGFXTextureInfo |
createSafe(long address)
|
static BGFXTextureInfo.Buffer |
createSafe(long address,
int capacity)
|
boolean |
cubeMap()
Returns the value of the
cubeMap field. |
short |
depth()
Returns the value of the
depth field. |
int |
format()
Returns the value of the
format field. |
short |
height()
Returns the value of the
height field. |
static BGFXTextureInfo |
malloc()
Returns a new
BGFXTextureInfo instance allocated with memAlloc. |
static BGFXTextureInfo.Buffer |
malloc(int capacity)
Returns a new
BGFXTextureInfo.Buffer instance allocated with memAlloc. |
static BGFXTextureInfo |
mallocStack()
Returns a new
BGFXTextureInfo instance allocated on the thread-local MemoryStack. |
static BGFXTextureInfo.Buffer |
mallocStack(int capacity)
Returns a new
BGFXTextureInfo.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXTextureInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTextureInfo.Buffer instance allocated on the specified MemoryStack. |
static BGFXTextureInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTextureInfo instance allocated on the specified MemoryStack. |
static byte |
nbitsPerPixel(long struct)
Unsafe version of
bitsPerPixel(). |
static boolean |
ncubeMap(long struct)
Unsafe version of
cubeMap(). |
static short |
ndepth(long struct)
Unsafe version of
depth(). |
static int |
nformat(long struct)
Unsafe version of
format(). |
static short |
nheight(long struct)
Unsafe version of
height(). |
static short |
nnumLayers(long struct)
Unsafe version of
numLayers(). |
static byte |
nnumMips(long struct)
Unsafe version of
numMips(). |
static int |
nstorageSize(long struct)
Unsafe version of
storageSize(). |
short |
numLayers()
Returns the value of the
numLayers field. |
byte |
numMips()
Returns the value of the
numMips field. |
static short |
nwidth(long struct)
Unsafe version of
width(). |
int |
sizeof() |
int |
storageSize()
Returns the value of the
storageSize field. |
short |
width()
Returns the value of the
width field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FORMAT
public static final int STORAGESIZE
public static final int WIDTH
public static final int HEIGHT
public static final int DEPTH
public static final int NUMLAYERS
public static final int NUMMIPS
public static final int BITSPERPIXEL
public static final int CUBEMAP
public BGFXTextureInfo(java.nio.ByteBuffer container)
BGFXTextureInfo instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int format()
format field.public int storageSize()
storageSize field.public short width()
width field.public short height()
height field.public short depth()
depth field.public short numLayers()
numLayers field.public byte numMips()
numMips field.public byte bitsPerPixel()
bitsPerPixel field.public boolean cubeMap()
cubeMap field.public static BGFXTextureInfo malloc()
BGFXTextureInfo instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXTextureInfo calloc()
BGFXTextureInfo instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXTextureInfo create()
BGFXTextureInfo instance allocated with BufferUtils.public static BGFXTextureInfo create(long address)
BGFXTextureInfo instance for the specified memory address.@Nullable public static BGFXTextureInfo createSafe(long address)
public static BGFXTextureInfo.Buffer malloc(int capacity)
BGFXTextureInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTextureInfo.Buffer calloc(int capacity)
BGFXTextureInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTextureInfo.Buffer create(int capacity)
BGFXTextureInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXTextureInfo.Buffer create(long address, int capacity)
BGFXTextureInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXTextureInfo.Buffer createSafe(long address, int capacity)
public static BGFXTextureInfo mallocStack()
BGFXTextureInfo instance allocated on the thread-local MemoryStack.public static BGFXTextureInfo callocStack()
BGFXTextureInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXTextureInfo mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXTextureInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXTextureInfo callocStack(org.lwjgl.system.MemoryStack stack)
BGFXTextureInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXTextureInfo.Buffer mallocStack(int capacity)
BGFXTextureInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXTextureInfo.Buffer callocStack(int capacity)
BGFXTextureInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXTextureInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTextureInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXTextureInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTextureInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nformat(long struct)
format().public static int nstorageSize(long struct)
storageSize().public static short nwidth(long struct)
width().public static short nheight(long struct)
height().public static short ndepth(long struct)
depth().public static short nnumLayers(long struct)
numLayers().public static byte nnumMips(long struct)
numMips().public static byte nbitsPerPixel(long struct)
bitsPerPixel().public static boolean ncubeMap(long struct)
cubeMap().Copyright LWJGL. All Rights Reserved. License terms.