Package org.lwjgl.util.ktx
Class ktxTexture1.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<ktxTexture1>,NativeResource,Pointer
- Enclosing class:
ktxTexture1
public static class ktxTexture1.Buffer
extends StructBuffer<ktxTexture1,ktxTexture1.Buffer>
implements NativeResource
An array of
ktxTexture1 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 newktxTexture1.Bufferinstance backed by the specified container. -
Method Summary
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 newktxTexture1.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
ktxTexture1.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
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.
-
glFormat
public int glFormat()- Returns:
- the value of the
glFormatfield.
-
glInternalformat
public int glInternalformat()- Returns:
- the value of the
glInternalformatfield.
-
glBaseInternalformat
public int glBaseInternalformat()- Returns:
- the value of the
glBaseInternalformatfield.
-
glType
public int glType()- Returns:
- the value of the
glTypefield.
-