Class ktxTexture2.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxTexture2.Buffer>
org.lwjgl.system.StructBuffer<ktxTexture2, ktxTexture2.Buffer>
org.lwjgl.util.ktx.ktxTexture2.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<ktxTexture2>, NativeResource, Pointer
- Enclosing class:
ktxTexture2
public static class ktxTexture2.Buffer
extends StructBuffer<ktxTexture2, ktxTexture2.Buffer>
implements NativeResource
An array of
ktxTexture2 structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newktxTexture2.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription_protected(int capacity) intintintintclassId()longdataSize()intduration()booleanbooleanisArray()booleanbooleanbooleanisVideo()@Nullable ByteBufferkvData()longintintintintnumFaces()intintpData()@Nullable IntBufferpDfd(int capacity) intintintvkFormat()vtbl()longvvtbl()Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxTexture2.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
ktxTexture2.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
classId
- Returns:
- the value of the
classIdfield.
-
vtbl
- Returns:
- a
ktxTexture_vtblview of the struct pointed to by thevtblfield.
-
vvtbl
- Returns:
- the value of the
vvtblfield.
-
_protected
- Returns:
- a
PointerBufferview of the data pointed to by the_protectedfield.
-
isArray
- Returns:
- the value of the
isArrayfield.
-
isCubemap
- Returns:
- the value of the
isCubemapfield.
-
isCompressed
- Returns:
- the value of the
isCompressedfield.
-
generateMipmaps
- Returns:
- the value of the
generateMipmapsfield.
-
baseWidth
- Returns:
- the value of the
baseWidthfield.
-
baseHeight
- Returns:
- the value of the
baseHeightfield.
-
baseDepth
- Returns:
- the value of the
baseDepthfield.
-
numDimensions
- Returns:
- the value of the
numDimensionsfield.
-
numLevels
- Returns:
- the value of the
numLevelsfield.
-
numLayers
- Returns:
- the value of the
numLayersfield.
-
numFaces
- Returns:
- the value of the
numFacesfield.
-
orientation
- Returns:
- a
ktxOrientationview of theorientationfield.
-
kvDataHead
- Returns:
- the value of the
kvDataHeadfield.
-
kvDataLen
- Returns:
- the value of the
kvDataLenfield.
-
kvData
- Returns:
- a
ByteBufferview of the data pointed to by thekvDatafield.
-
dataSize
- Returns:
- the value of the
dataSizefield.
-
pData
- Returns:
- a
ByteBufferview of the data pointed to by thepDatafield.
-
vkFormat
- Returns:
- the value of the
vkFormatfield.
-
pDfd
- Returns:
- a
IntBufferview of the data pointed to by thepDfdfield.
-
supercompressionScheme
- Returns:
- the value of the
supercompressionSchemefield.
-
isVideo
- Returns:
- the value of the
isVideofield.
-
duration
- Returns:
- the value of the
durationfield.
-
timescale
- Returns:
- the value of the
timescalefield.
-
loopcount
- Returns:
- the value of the
loopcountfield.
-