Package org.lwjgl.util.ktx
Class ktxTexture2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct ktxTexture2 {
class_id classId;
{@link ktxTexture_vtbl 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;
{@link ktxOrientation struct ktxOrientation} orientation;
ktxHashList kvDataHead;
ktx_uint32_t kvDataLen;
ktx_uint8_t * kvData;
ktx_size_t dataSize;
ktx_uint8_t * pData;
ktx_uint32_t vkFormat;
ktx_uint32_t * pDfd;
ktxSupercmpScheme supercompressionScheme;
ktx_bool_t isVideo;
ktx_uint32_t duration;
ktx_uint32_t timescale;
ktx_uint32_t loopcount;
struct ktxTexture2_private * _private;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionktxTexture2
(ByteBuffer container) Creates aktxTexture2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescription_protected
(int capacity) int
int
int
static ktxTexture2
calloc()
Returns a newktxTexture2
instance allocated withmemCalloc
.static ktxTexture2.Buffer
calloc
(int capacity) Returns a newktxTexture2.Buffer
instance allocated withmemCalloc
.static ktxTexture2.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newktxTexture2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxTexture2
calloc
(MemoryStack stack) Returns a newktxTexture2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
classId()
static ktxTexture2
create()
Returns a newktxTexture2
instance allocated withBufferUtils
.static ktxTexture2.Buffer
create
(int capacity) Returns a newktxTexture2.Buffer
instance allocated withBufferUtils
.static ktxTexture2
create
(long address) Returns a newktxTexture2
instance for the specified memory address.static ktxTexture2.Buffer
create
(long address, int capacity) Create aktxTexture2.Buffer
instance at the specified memory.static @Nullable ktxTexture2
createSafe
(long address) static @Nullable ktxTexture2.Buffer
createSafe
(long address, int capacity) long
dataSize()
int
duration()
boolean
boolean
isArray()
boolean
boolean
boolean
isVideo()
@Nullable ByteBuffer
kvData()
long
int
int
static ktxTexture2
malloc()
Returns a newktxTexture2
instance allocated withmemAlloc
.static ktxTexture2.Buffer
malloc
(int capacity) Returns a newktxTexture2.Buffer
instance allocated withmemAlloc
.static ktxTexture2.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newktxTexture2.Buffer
instance allocated on the specifiedMemoryStack
.static ktxTexture2
malloc
(MemoryStack stack) Returns a newktxTexture2
instance allocated on the specifiedMemoryStack
.static PointerBuffer
n_private
(long struct, int capacity) static PointerBuffer
n_protected
(long struct, int capacity) Unsafe version of_protected
.static int
nbaseDepth
(long struct) Unsafe version ofbaseDepth()
.static int
nbaseHeight
(long struct) Unsafe version ofbaseHeight()
.static int
nbaseWidth
(long struct) Unsafe version ofbaseWidth()
.static int
nclassId
(long struct) Unsafe version ofclassId()
.static long
ndataSize
(long struct) Unsafe version ofdataSize()
.static int
nduration
(long struct) Unsafe version ofduration()
.static boolean
ngenerateMipmaps
(long struct) Unsafe version ofgenerateMipmaps()
.static boolean
nisArray
(long struct) Unsafe version ofisArray()
.static boolean
nisCompressed
(long struct) Unsafe version ofisCompressed()
.static boolean
nisCubemap
(long struct) Unsafe version ofisCubemap()
.static boolean
nisVideo
(long struct) Unsafe version ofisVideo()
.static @Nullable ByteBuffer
nkvData
(long struct) Unsafe version ofkvData
.static long
nkvDataHead
(long struct) Unsafe version ofkvDataHead()
.static int
nkvDataLen
(long struct) Unsafe version ofkvDataLen()
.static int
nloopcount
(long struct) Unsafe version ofloopcount()
.static int
nnumDimensions
(long struct) Unsafe version ofnumDimensions()
.static int
nnumFaces
(long struct) Unsafe version ofnumFaces()
.static int
nnumLayers
(long struct) Unsafe version ofnumLayers()
.static int
nnumLevels
(long struct) Unsafe version ofnumLevels()
.static ktxOrientation
norientation
(long struct) Unsafe version oforientation()
.static ByteBuffer
npData
(long struct) Unsafe version ofpData
.static @Nullable IntBuffer
npDfd
(long struct, int capacity) Unsafe version ofpDfd
.static int
nsupercompressionScheme
(long struct) Unsafe version ofsupercompressionScheme()
.static int
ntimescale
(long struct) Unsafe version oftimescale()
.int
int
numFaces()
int
int
static int
nvkFormat
(long struct) Unsafe version ofvkFormat()
.static ktxTexture_vtbl
nvtbl
(long struct) Unsafe version ofvtbl()
.static long
nvvtbl
(long struct) Unsafe version ofvvtbl()
.pData()
@Nullable IntBuffer
pDfd
(int capacity) int
sizeof()
Returnssizeof(struct)
.int
int
int
vkFormat()
vtbl()
long
vvtbl()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
VKFORMAT
public static final int VKFORMATThe struct member offsets. -
PDFD
public static final int PDFDThe struct member offsets. -
SUPERCOMPRESSIONSCHEME
public static final int SUPERCOMPRESSIONSCHEMEThe struct member offsets. -
ISVIDEO
public static final int ISVIDEOThe struct member offsets. -
DURATION
public static final int DURATIONThe struct member offsets. -
TIMESCALE
public static final int TIMESCALEThe struct member offsets. -
LOOPCOUNT
public static final int LOOPCOUNTThe struct member offsets. -
_PRIVATE
public static final int _PRIVATEThe struct member offsets.
-
-
Constructor Details
-
ktxTexture2
Creates aktxTexture2
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ktxTexture2>
-
classId
public int classId()- Returns:
- the value of the
classId
field.
-
vtbl
- Returns:
- a
ktxTexture_vtbl
view of the struct pointed to by thevtbl
field.
-
vvtbl
public long vvtbl()- Returns:
- the value of the
vvtbl
field.
-
_protected
- Returns:
- a
PointerBuffer
view of the data pointed to by the_protected
field.
-
isArray
public boolean isArray()- Returns:
- the value of the
isArray
field.
-
isCubemap
public boolean isCubemap()- Returns:
- the value of the
isCubemap
field.
-
isCompressed
public boolean isCompressed()- Returns:
- the value of the
isCompressed
field.
-
generateMipmaps
public boolean generateMipmaps()- Returns:
- the value of the
generateMipmaps
field.
-
baseWidth
public int baseWidth()- Returns:
- the value of the
baseWidth
field.
-
baseHeight
public int baseHeight()- Returns:
- the value of the
baseHeight
field.
-
baseDepth
public int baseDepth()- Returns:
- the value of the
baseDepth
field.
-
numDimensions
public int numDimensions()- Returns:
- the value of the
numDimensions
field.
-
numLevels
public int numLevels()- Returns:
- the value of the
numLevels
field.
-
numLayers
public int numLayers()- Returns:
- the value of the
numLayers
field.
-
numFaces
public int numFaces()- Returns:
- the value of the
numFaces
field.
-
orientation
- Returns:
- a
ktxOrientation
view of theorientation
field.
-
kvDataHead
public long kvDataHead()- Returns:
- the value of the
kvDataHead
field.
-
kvDataLen
public int kvDataLen()- Returns:
- the value of the
kvDataLen
field.
-
kvData
- Returns:
- a
ByteBuffer
view of the data pointed to by thekvData
field.
-
dataSize
public long dataSize()- Returns:
- the value of the
dataSize
field.
-
pData
- Returns:
- a
ByteBuffer
view of the data pointed to by thepData
field.
-
vkFormat
public int vkFormat()- Returns:
- the value of the
vkFormat
field.
-
pDfd
- Returns:
- a
IntBuffer
view of the data pointed to by thepDfd
field.
-
supercompressionScheme
public int supercompressionScheme()- Returns:
- the value of the
supercompressionScheme
field.
-
isVideo
public boolean isVideo()- Returns:
- the value of the
isVideo
field.
-
duration
public int duration()- Returns:
- the value of the
duration
field.
-
timescale
public int timescale()- Returns:
- the value of the
timescale
field.
-
loopcount
public int loopcount()- Returns:
- the value of the
loopcount
field.
-
malloc
Returns a newktxTexture2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxTexture2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxTexture2
instance allocated withBufferUtils
. -
create
Returns a newktxTexture2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxTexture2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxTexture2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxTexture2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxTexture2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newktxTexture2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxTexture2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxTexture2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxTexture2.Buffer
instance allocated on the specifiedMemoryStack
and 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
. -
nvkFormat
public static int nvkFormat(long struct) Unsafe version ofvkFormat()
. -
npDfd
Unsafe version ofpDfd
. -
nsupercompressionScheme
public static int nsupercompressionScheme(long struct) Unsafe version ofsupercompressionScheme()
. -
nisVideo
public static boolean nisVideo(long struct) Unsafe version ofisVideo()
. -
nduration
public static int nduration(long struct) Unsafe version ofduration()
. -
ntimescale
public static int ntimescale(long struct) Unsafe version oftimescale()
. -
nloopcount
public static int nloopcount(long struct) Unsafe version ofloopcount()
. -
n_private
-