Package org.lwjgl.util.ktx
Class ktxTexture.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxTexture.Buffer>
org.lwjgl.system.StructBuffer<ktxTexture,ktxTexture.Buffer>
org.lwjgl.util.ktx.ktxTexture.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<ktxTexture>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
ktxTexture
public static class ktxTexture.Buffer
extends org.lwjgl.system.StructBuffer<ktxTexture,ktxTexture.Buffer>
implements org.lwjgl.system.NativeResource
An array of
ktxTexture structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 newktxTexture.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionorg.lwjgl.PointerBuffer_protected(int capacity) intintintintclassId()longdataSize()booleanbooleanisArray()booleanboolean@Nullable ByteBufferkvData()longintintintnumFaces()intintpData()vtbl()longvvtbl()Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxTexture.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
ktxTexture.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
ktxTexture.classId()field.
-
vtbl
- Returns:
- a
ktxTexture_vtblview of the struct pointed to by thektxTexture.vtbl()field.
-
vvtbl
public long vvtbl()- Returns:
- the value of the
ktxTexture.vvtbl()field.
-
_protected
public org.lwjgl.PointerBuffer _protected(int capacity) - Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
PointerBufferview of the data pointed to by thektxTexture._protected(int)field.
-
isArray
public boolean isArray()- Returns:
- the value of the
ktxTexture.isArray()field.
-
isCubemap
public boolean isCubemap()- Returns:
- the value of the
ktxTexture.isCubemap()field.
-
isCompressed
public boolean isCompressed()- Returns:
- the value of the
ktxTexture.isCompressed()field.
-
generateMipmaps
public boolean generateMipmaps()- Returns:
- the value of the
ktxTexture.generateMipmaps()field.
-
baseWidth
public int baseWidth()- Returns:
- the value of the
ktxTexture.baseWidth()field.
-
baseHeight
public int baseHeight()- Returns:
- the value of the
ktxTexture.baseHeight()field.
-
baseDepth
public int baseDepth()- Returns:
- the value of the
ktxTexture.baseDepth()field.
-
numDimensions
public int numDimensions()- Returns:
- the value of the
ktxTexture.numDimensions()field.
-
numLevels
public int numLevels()- Returns:
- the value of the
ktxTexture.numLevels()field.
-
numLayers
public int numLayers()- Returns:
- the value of the
ktxTexture.numLayers()field.
-
numFaces
public int numFaces()- Returns:
- the value of the
ktxTexture.numFaces()field.
-
orientation
- Returns:
- a
ktxOrientationview of thektxTexture.orientation()field.
-
kvDataHead
public long kvDataHead()- Returns:
- the value of the
ktxTexture.kvDataHead()field.
-
kvDataLen
public int kvDataLen()- Returns:
- the value of the
ktxTexture.kvDataLen()field.
-
kvData
- Returns:
- a
ByteBufferview of the data pointed to by thektxTexture.kvData()field.
-
dataSize
public long dataSize()- Returns:
- the value of the
ktxTexture.dataSize()field.
-
pData
- Returns:
- a
ByteBufferview of the data pointed to by thektxTexture.pData()field.
-