Package org.lwjgl.util.ktx
Class ktxTexture
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct ktxTexture {
class_id classId;
struct ktxTexture_vtbl * vtbl;
struct ktxTexture_vvtbl * vvtbl;
struct ktxTexture_protected * _protected;
ktx_bool_t isArray;
ktx_bool_t isCubemap;
ktx_bool_t isCompressed;
ktx_bool_t generateMipmaps;
ktx_uint32_t baseWidth;
ktx_uint32_t baseHeight;
ktx_uint32_t baseDepth;
ktx_uint32_t numDimensions;
ktx_uint32_t numLevels;
ktx_uint32_t numLayers;
ktx_uint32_t numFaces;
struct ktxOrientation orientation;
ktxHashList kvDataHead;
ktx_uint32_t kvDataLen;
ktx_uint8_t * kvData;
ktx_size_t dataSize;
ktx_uint8_t * pData;
}-
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 member offsets.static 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 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 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
ConstructorsConstructorDescriptionktxTexture(ByteBuffer container) Creates aktxTextureinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription_protected(int capacity) intintintstatic ktxTexturecalloc()Returns a newktxTextureinstance allocated withmemCalloc.static ktxTexture.Buffercalloc(int capacity) Returns a newktxTexture.Bufferinstance allocated withmemCalloc.static ktxTexture.Buffercalloc(int capacity, MemoryStack stack) Returns a newktxTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxTexturecalloc(MemoryStack stack) Returns a newktxTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclassId()static ktxTexturecreate()Returns a newktxTextureinstance allocated withBufferUtils.static ktxTexture.Buffercreate(int capacity) Returns a newktxTexture.Bufferinstance allocated withBufferUtils.static ktxTexturecreate(long address) Returns a newktxTextureinstance for the specified memory address.static ktxTexture.Buffercreate(long address, int capacity) Create aktxTexture.Bufferinstance at the specified memory.static @Nullable ktxTexturecreateSafe(long address) static @Nullable ktxTexture.BuffercreateSafe(long address, int capacity) longdataSize()booleanbooleanisArray()booleanboolean@Nullable ByteBufferkvData()longintstatic ktxTexturemalloc()Returns a newktxTextureinstance allocated withmemAlloc.static ktxTexture.Buffermalloc(int capacity) Returns a newktxTexture.Bufferinstance allocated withmemAlloc.static ktxTexture.Buffermalloc(int capacity, MemoryStack stack) Returns a newktxTexture.Bufferinstance allocated on the specifiedMemoryStack.static ktxTexturemalloc(MemoryStack stack) Returns a newktxTextureinstance allocated on the specifiedMemoryStack.static PointerBuffern_protected(long struct, int capacity) Unsafe version of_protected.static intnbaseDepth(long struct) Unsafe version ofbaseDepth().static intnbaseHeight(long struct) Unsafe version ofbaseHeight().static intnbaseWidth(long struct) Unsafe version ofbaseWidth().static intnclassId(long struct) Unsafe version ofclassId().static longndataSize(long struct) Unsafe version ofdataSize().static booleanngenerateMipmaps(long struct) Unsafe version ofgenerateMipmaps().static booleannisArray(long struct) Unsafe version ofisArray().static booleannisCompressed(long struct) Unsafe version ofisCompressed().static booleannisCubemap(long struct) Unsafe version ofisCubemap().static @Nullable ByteBuffernkvData(long struct) Unsafe version ofkvData.static longnkvDataHead(long struct) Unsafe version ofkvDataHead().static intnkvDataLen(long struct) Unsafe version ofkvDataLen().static intnnumDimensions(long struct) Unsafe version ofnumDimensions().static intnnumFaces(long struct) Unsafe version ofnumFaces().static intnnumLayers(long struct) Unsafe version ofnumLayers().static intnnumLevels(long struct) Unsafe version ofnumLevels().static ktxOrientationnorientation(long struct) Unsafe version oforientation().static ByteBuffernpData(long struct) Unsafe version ofpData.intintnumFaces()intintstatic ktxTexture_vtblnvtbl(long struct) Unsafe version ofvtbl().static longnvvtbl(long struct) Unsafe version ofvvtbl().pData()intsizeof()Returnssizeof(struct).vtbl()longvvtbl()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. -
CLASSID
public static final int CLASSIDThe struct member offsets. -
VTBL
public static final int VTBLThe struct member offsets. -
VVTBL
public static final int VVTBLThe struct member offsets. -
_PROTECTED
public static final int _PROTECTEDThe struct member offsets. -
ISARRAY
public static final int ISARRAYThe struct member offsets. -
ISCUBEMAP
public static final int ISCUBEMAPThe struct member offsets. -
ISCOMPRESSED
public static final int ISCOMPRESSEDThe struct member offsets. -
GENERATEMIPMAPS
public static final int GENERATEMIPMAPSThe struct member offsets. -
BASEWIDTH
public static final int BASEWIDTHThe struct member offsets. -
BASEHEIGHT
public static final int BASEHEIGHTThe struct member offsets. -
BASEDEPTH
public static final int BASEDEPTHThe struct member offsets. -
NUMDIMENSIONS
public static final int NUMDIMENSIONSThe struct member offsets. -
NUMLEVELS
public static final int NUMLEVELSThe struct member offsets. -
NUMLAYERS
public static final int NUMLAYERSThe struct member offsets. -
NUMFACES
public static final int NUMFACESThe struct member offsets. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
KVDATAHEAD
public static final int KVDATAHEADThe struct member offsets. -
KVDATALEN
public static final int KVDATALENThe struct member offsets. -
KVDATA
public static final int KVDATAThe struct member offsets. -
DATASIZE
public static final int DATASIZEThe struct member offsets. -
PDATA
public static final int PDATAThe struct member offsets.
-
-
Constructor Details
-
ktxTexture
Creates aktxTextureinstance 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<ktxTexture>
-
classId
public int classId()- Returns:
- the value of the
classIdfield.
-
vtbl
- Returns:
- a
ktxTexture_vtblview of the struct pointed to by thevtblfield.
-
vvtbl
public long vvtbl()- Returns:
- the value of the
vvtblfield.
-
_protected
- Returns:
- a
PointerBufferview of the data pointed to by the_protectedfield.
-
isArray
public boolean isArray()- Returns:
- the value of the
isArrayfield.
-
isCubemap
public boolean isCubemap()- Returns:
- the value of the
isCubemapfield.
-
isCompressed
public boolean isCompressed()- Returns:
- the value of the
isCompressedfield.
-
generateMipmaps
public boolean generateMipmaps()- Returns:
- the value of the
generateMipmapsfield.
-
baseWidth
public int baseWidth()- Returns:
- the value of the
baseWidthfield.
-
baseHeight
public int baseHeight()- Returns:
- the value of the
baseHeightfield.
-
baseDepth
public int baseDepth()- Returns:
- the value of the
baseDepthfield.
-
numDimensions
public int numDimensions()- Returns:
- the value of the
numDimensionsfield.
-
numLevels
public int numLevels()- Returns:
- the value of the
numLevelsfield.
-
numLayers
public int numLayers()- Returns:
- the value of the
numLayersfield.
-
numFaces
public int numFaces()- Returns:
- the value of the
numFacesfield.
-
orientation
- Returns:
- a
ktxOrientationview of theorientationfield.
-
kvDataHead
public long kvDataHead()- Returns:
- the value of the
kvDataHeadfield.
-
kvDataLen
public int kvDataLen()- Returns:
- the value of the
kvDataLenfield.
-
kvData
- Returns:
- a
ByteBufferview of the data pointed to by thekvDatafield.
-
dataSize
public long dataSize()- Returns:
- the value of the
dataSizefield.
-
pData
- Returns:
- a
ByteBufferview of the data pointed to by thepDatafield.
-
malloc
Returns a newktxTextureinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxTextureinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxTextureinstance allocated withBufferUtils. -
create
Returns a newktxTextureinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxTexture.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxTexture.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxTexture.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxTexture.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxTextureinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxTextureinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxTexture.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxTexture.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nclassId
public static int nclassId(long struct) Unsafe version ofclassId(). -
nvtbl
Unsafe version ofvtbl(). -
nvvtbl
public static long nvvtbl(long struct) Unsafe version ofvvtbl(). -
n_protected
Unsafe version of_protected. -
nisArray
public static boolean nisArray(long struct) Unsafe version ofisArray(). -
nisCubemap
public static boolean nisCubemap(long struct) Unsafe version ofisCubemap(). -
nisCompressed
public static boolean nisCompressed(long struct) Unsafe version ofisCompressed(). -
ngenerateMipmaps
public static boolean ngenerateMipmaps(long struct) Unsafe version ofgenerateMipmaps(). -
nbaseWidth
public static int nbaseWidth(long struct) Unsafe version ofbaseWidth(). -
nbaseHeight
public static int nbaseHeight(long struct) Unsafe version ofbaseHeight(). -
nbaseDepth
public static int nbaseDepth(long struct) Unsafe version ofbaseDepth(). -
nnumDimensions
public static int nnumDimensions(long struct) Unsafe version ofnumDimensions(). -
nnumLevels
public static int nnumLevels(long struct) Unsafe version ofnumLevels(). -
nnumLayers
public static int nnumLayers(long struct) Unsafe version ofnumLayers(). -
nnumFaces
public static int nnumFaces(long struct) Unsafe version ofnumFaces(). -
norientation
Unsafe version oforientation(). -
nkvDataHead
public static long nkvDataHead(long struct) Unsafe version ofkvDataHead(). -
nkvDataLen
public static int nkvDataLen(long struct) Unsafe version ofkvDataLen(). -
nkvData
Unsafe version ofkvData. -
ndataSize
public static long ndataSize(long struct) Unsafe version ofdataSize(). -
npData
Unsafe version ofpData.
-