Top Description Inners Fields Constructors Methods
org.lwjgl.openvr

public Class RenderModelTextureMap

extends Struct<RenderModelTextureMap>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct RenderModel_TextureMap_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

A texture map for use on a render model.

Layout


struct RenderModel_TextureMap_t {
    uint16_t unWidth;
    uint16_t unHeight;
    uint8_t const * rubTextureMapData;
    EVRRenderModelTextureFormat format;
    uint16_t unMipLevels;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FORMAT

The struct member offsets.

public static final int
RUBTEXTUREMAPDATA

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UNHEIGHT

The struct member offsets.

public static final int
UNMIPLEVELS

The struct member offsets.

public static final int
UNWIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
RenderModelTextureMap(long address, ByteBuffer container)

public
RenderModelTextureMap(ByteBuffer container)

Creates a RenderModelTextureMap instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static RenderModelTextureMap
calloc()

Returns a new RenderModelTextureMap instance allocated with memCalloc.

public static RenderModelTextureMap.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new RenderModelTextureMap.Buffer instance allocated with memCalloc.

public static RenderModelTextureMap
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new RenderModelTextureMap instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static RenderModelTextureMap.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new RenderModelTextureMap.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static RenderModelTextureMap
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected RenderModelTextureMap
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static RenderModelTextureMap
create()

Returns a new RenderModelTextureMap instance allocated with BufferUtils.

public static RenderModelTextureMap
create(long address)

Returns a new RenderModelTextureMap instance for the specified memory address.

public static RenderModelTextureMap.Buffer
create(int
the buffer capacity
capacity
)

Returns a new RenderModelTextureMap.Buffer instance allocated with BufferUtils.

public static RenderModelTextureMap.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a RenderModelTextureMap.Buffer instance at the specified memory.

public static RenderModelTextureMap
createSafe(long address)

Like create, but returns null if address is NULL.

public static RenderModelTextureMap.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
public static RenderModelTextureMap
malloc()

Returns a new RenderModelTextureMap instance allocated with memAlloc.

public static RenderModelTextureMap.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new RenderModelTextureMap.Buffer instance allocated with memAlloc.

public static RenderModelTextureMap
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new RenderModelTextureMap instance allocated on the specified MemoryStack.

public static RenderModelTextureMap.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new RenderModelTextureMap.Buffer instance allocated on the specified MemoryStack.

public static RenderModelTextureMap
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static RenderModelTextureMap.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nformat(long struct)

Unsafe version of format.

public static ByteBuffer
nrubTextureMapData(long struct, int capacity)

Unsafe version of rubTextureMapData.

public static short
nunHeight(long struct)

Unsafe version of unHeight.

public static short
nunMipLevels(long struct)

Unsafe version of unMipLevels.

public static short
nunWidth(long struct)

Unsafe version of unWidth.

public ByteBuffer

Returns:

Map texture data.
rubTextureMapData
(int
the number of elements in the returned buffer
capacity
)

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public short
unHeight()

width and height of the texture map in pixels

public short

Returns:

the value of the unMipLevels field.
unMipLevels
()

public short

Returns:

the value of the unWidth field.
unWidth
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FORMATback to summary
public static final int FORMAT

The struct member offsets.

RUBTEXTUREMAPDATAback to summary
public static final int RUBTEXTUREMAPDATA

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UNHEIGHTback to summary
public static final int UNHEIGHT

The struct member offsets.

UNMIPLEVELSback to summary
public static final int UNMIPLEVELS

The struct member offsets.

UNWIDTHback to summary
public static final int UNWIDTH

The struct member offsets.

Constructor Detail

RenderModelTextureMapback to summary
protected RenderModelTextureMap(long address, ByteBuffer container)
RenderModelTextureMapback to summary
public RenderModelTextureMap(ByteBuffer container)

Creates a RenderModelTextureMap instance at the current position of the specified ByteBuffer 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 Detail

callocback to summary
public static RenderModelTextureMap calloc()

Returns a new RenderModelTextureMap instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static RenderModelTextureMap.Buffer calloc(int capacity)

Returns a new RenderModelTextureMap.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static RenderModelTextureMap calloc(MemoryStack stack)

Returns a new RenderModelTextureMap instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static RenderModelTextureMap.Buffer calloc(int capacity, MemoryStack stack)

Returns a new RenderModelTextureMap.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

callocStackback to summary
public static RenderModelTextureMap callocStack()

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static RenderModelTextureMap callocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static RenderModelTextureMap.Buffer callocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
callocStackback to summary
public static RenderModelTextureMap.Buffer callocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.

Annotations
@Deprecated
createback to summary
protected RenderModelTextureMap create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static RenderModelTextureMap create()

Returns a new RenderModelTextureMap instance allocated with BufferUtils.

createback to summary
public static RenderModelTextureMap create(long address)

Returns a new RenderModelTextureMap instance for the specified memory address.

createback to summary
public static RenderModelTextureMap.Buffer create(int capacity)

Returns a new RenderModelTextureMap.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static RenderModelTextureMap.Buffer create(long address, int capacity)

Create a RenderModelTextureMap.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static RenderModelTextureMap createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static RenderModelTextureMap.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
formatback to summary
public int format()

one of:

VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_RGBA8_SRGB
VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC2
VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC4
VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7
VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7_SRGB
VR#EVRRenderModelTextureFormat_VRRenderModelTextureFormat_RGBA16_FLOAT
Annotations
@NativeType:EVRRenderModelTextureFormat
mallocback to summary
public static RenderModelTextureMap malloc()

Returns a new RenderModelTextureMap instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static RenderModelTextureMap.Buffer malloc(int capacity)

Returns a new RenderModelTextureMap.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static RenderModelTextureMap malloc(MemoryStack stack)

Returns a new RenderModelTextureMap instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static RenderModelTextureMap.Buffer malloc(int capacity, MemoryStack stack)

Returns a new RenderModelTextureMap.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

mallocStackback to summary
public static RenderModelTextureMap mallocStack()

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static RenderModelTextureMap mallocStack(MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static RenderModelTextureMap.Buffer mallocStack(int capacity)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
mallocStackback to summary
public static RenderModelTextureMap.Buffer mallocStack(int capacity, MemoryStack stack)

Deprecated

Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.

Annotations
@Deprecated
nformatback to summary
public static int nformat(long struct)

Unsafe version of format.

nrubTextureMapDataback to summary
public static ByteBuffer nrubTextureMapData(long struct, int capacity)

Unsafe version of rubTextureMapData.

nunHeightback to summary
public static short nunHeight(long struct)

Unsafe version of unHeight.

nunMipLevelsback to summary
public static short nunMipLevels(long struct)

Unsafe version of unMipLevels.

nunWidthback to summary
public static short nunWidth(long struct)

Unsafe version of unWidth.

rubTextureMapDataback to summary
public ByteBuffer rubTextureMapData(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:ByteBuffer

Map texture data.

Annotations
@NativeType:uint8_t const *
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
unHeightback to summary
public short unHeight()

width and height of the texture map in pixels

Annotations
@NativeType:uint16_t
unMipLevelsback to summary
public short unMipLevels()
Returns:short

the value of the unMipLevels field.

Annotations
@NativeType:uint16_t
unWidthback to summary
public short unWidth()
Returns:short

the value of the unWidth field.

Annotations
@NativeType:uint16_t
org.lwjgl.openvr back to summary

public Class RenderModelTextureMap.Buffer

extends StructBuffer<RenderModelTextureMap, RenderModelTextureMap.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of RenderModelTextureMap structs.

Field Summary

Modifier and TypeField and Description
private static final RenderModelTextureMap

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new RenderModelTextureMap.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the RenderModelTextureMap#format field.
format
()

protected RenderModelTextureMap
public ByteBuffer

Returns:

a ByteBuffer view of the data pointed to by the RenderModelTextureMap#rubTextureMapData field.
rubTextureMapData
(int
the number of elements in the returned buffer
capacity
)

protected RenderModelTextureMap.Buffer
public short

Returns:

the value of the RenderModelTextureMap#unHeight field.
unHeight
()

public short

Returns:

the value of the unMipLevels field.
unMipLevels
()

public short

Returns:

the value of the unWidth field.
unWidth
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final RenderModelTextureMap ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new RenderModelTextureMap.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 RenderModelTextureMap#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

formatback to summary
public int format()
Returns:int

the value of the RenderModelTextureMap#format field.

Annotations
@NativeType:EVRRenderModelTextureFormat
getElementFactoryback to summary
protected RenderModelTextureMap getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
rubTextureMapDataback to summary
public ByteBuffer rubTextureMapData(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:ByteBuffer

a ByteBuffer view of the data pointed to by the RenderModelTextureMap#rubTextureMapData field.

Annotations
@NativeType:uint8_t const *
selfback to summary
protected RenderModelTextureMap.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
unHeightback to summary
public short unHeight()
Returns:short

the value of the RenderModelTextureMap#unHeight field.

Annotations
@NativeType:uint16_t
unMipLevelsback to summary
public short unMipLevels()
Returns:short

the value of the unMipLevels field.

Annotations
@NativeType:uint16_t
unWidthback to summary
public short unWidth()
Returns:short

the value of the unWidth field.

Annotations
@NativeType:uint16_t