Package org.lwjgl.util.ktx
Class 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 org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newktxTexture2.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription_protected
(int capacity) int
int
int
int
classId()
long
dataSize()
int
duration()
boolean
boolean
isArray()
boolean
boolean
boolean
isVideo()
@Nullable ByteBuffer
kvData()
long
int
int
int
int
numFaces()
int
int
pData()
@Nullable IntBuffer
pDfd
(int capacity) int
int
int
vkFormat()
vtbl()
long
vvtbl()
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxTexture2.Buffer
instance 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
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.
-