Package org.lwjgl.openvr
Class RenderModelTextureMap
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RenderModelTextureMap>
org.lwjgl.openvr.RenderModelTextureMap
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class RenderModelTextureMap
extends org.lwjgl.system.Struct<RenderModelTextureMap>
implements org.lwjgl.system.NativeResource
A texture map for use on a render model.
Layout
struct RenderModel_TextureMap_t {
uint16_t unWidth;
uint16_t unHeight();
uint8_t const * rubTextureMapData(int);
EVRRenderModelTextureFormat format();
uint16_t unMipLevels;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRenderModelTextureMap(ByteBuffer container) Creates aRenderModelTextureMapinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderModelTextureMapcalloc()Returns a newRenderModelTextureMapinstance allocated withmemCalloc.static RenderModelTextureMap.Buffercalloc(int capacity) Returns a newRenderModelTextureMap.Bufferinstance allocated withmemCalloc.static RenderModelTextureMap.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelTextureMapcalloc(org.lwjgl.system.MemoryStack stack) Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RenderModelTextureMapDeprecated.static RenderModelTextureMap.BuffercallocStack(int capacity) Deprecated.static RenderModelTextureMap.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static RenderModelTextureMapcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static RenderModelTextureMapcreate()Returns a newRenderModelTextureMapinstance allocated withBufferUtils.static RenderModelTextureMap.Buffercreate(int capacity) Returns a newRenderModelTextureMap.Bufferinstance allocated withBufferUtils.static RenderModelTextureMapcreate(long address) Returns a newRenderModelTextureMapinstance for the specified memory address.static RenderModelTextureMap.Buffercreate(long address, int capacity) Create aRenderModelTextureMap.Bufferinstance at the specified memory.static @Nullable RenderModelTextureMapcreateSafe(long address) static @Nullable RenderModelTextureMap.BuffercreateSafe(long address, int capacity) intformat()one of:VR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_RGBA8_SRGBVR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC2VR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC4VR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7VR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7_SRGBVR.EVRRenderModelTextureFormat_VRRenderModelTextureFormat_RGBA16_FLOATstatic RenderModelTextureMapmalloc()Returns a newRenderModelTextureMapinstance allocated withmemAlloc.static RenderModelTextureMap.Buffermalloc(int capacity) Returns a newRenderModelTextureMap.Bufferinstance allocated withmemAlloc.static RenderModelTextureMap.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStack.static RenderModelTextureMapmalloc(org.lwjgl.system.MemoryStack stack) Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStack.static RenderModelTextureMapDeprecated.static RenderModelTextureMap.BuffermallocStack(int capacity) Deprecated.static RenderModelTextureMap.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static RenderModelTextureMapmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnformat(long struct) Unsafe version offormat().static ByteBuffernrubTextureMapData(long struct, int capacity) Unsafe version ofrubTextureMapData.static shortnunHeight(long struct) Unsafe version ofunHeight().static shortnunMipLevels(long struct) Unsafe version ofunMipLevels().static shortnunWidth(long struct) Unsafe version ofunWidth().rubTextureMapData(int capacity) intsizeof()shortunHeight()width and height of the texture map in pixelsshortshortunWidth()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
UNWIDTH
public static final int UNWIDTHThe struct member offsets. -
UNHEIGHT
public static final int UNHEIGHTThe struct member offsets. -
RUBTEXTUREMAPDATA
public static final int RUBTEXTUREMAPDATAThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
UNMIPLEVELS
public static final int UNMIPLEVELSThe struct member offsets.
-
-
Constructor Details
-
RenderModelTextureMap
Creates aRenderModelTextureMapinstance at the current position of the specifiedByteBuffercontainer. 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<RenderModelTextureMap>
-
unWidth
public short unWidth()- Returns:
- the value of the
unWidthfield.
-
unHeight
public short unHeight()width and height of the texture map in pixels -
rubTextureMapData
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- Map texture data.
-
format
public int format()one of: -
unMipLevels
public short unMipLevels()- Returns:
- the value of the
unMipLevelsfield.
-
malloc
Returns a newRenderModelTextureMapinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newRenderModelTextureMapinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newRenderModelTextureMapinstance allocated withBufferUtils. -
create
Returns a newRenderModelTextureMapinstance for the specified memory address. -
createSafe
-
malloc
Returns a newRenderModelTextureMap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newRenderModelTextureMap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newRenderModelTextureMap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aRenderModelTextureMap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static RenderModelTextureMap.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static RenderModelTextureMap.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nunWidth
public static short nunWidth(long struct) Unsafe version ofunWidth(). -
nunHeight
public static short nunHeight(long struct) Unsafe version ofunHeight(). -
nrubTextureMapData
Unsafe version ofrubTextureMapData. -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nunMipLevels
public static short nunMipLevels(long struct) Unsafe version ofunMipLevels().
-