Package org.lwjgl.openvr
Class RenderModelTextureMap
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.RenderModelTextureMap
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class RenderModelTextureMap extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA texture map for use on a render model.Layout
struct RenderModel_TextureMap_t { uint16_t unWidth; uint16_tunHeight(); uint8_t const *rubTextureMapData(int); EVRRenderModelTextureFormatformat(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderModelTextureMap.BufferAn array ofRenderModelTextureMapstructs.
-
Constructor Summary
Constructors Constructor Description RenderModelTextureMap(java.nio.ByteBuffer container)Creates aRenderModelTextureMapinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 RenderModelTextureMapcallocStack()Deprecated.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 RenderModelTextureMapcreateSafe(long address)static 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_SRGBstatic 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 RenderModelTextureMapmallocStack()Deprecated.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 java.nio.ByteBuffernrubTextureMapData(long struct, int capacity)Unsafe version ofrubTextureMapData.static shortnunHeight(long struct)Unsafe version ofunHeight().static shortnunWidth(long struct)Unsafe version ofunWidth().java.nio.ByteBufferrubTextureMapData(int capacity)intsizeof()shortunHeight()width and height of the texture map in pixelsshortunWidth()
-
-
-
Constructor Detail
-
RenderModelTextureMap
public RenderModelTextureMap(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
unWidth
public short unWidth()
- Returns:
- the value of the
unWidthfield.
-
unHeight
public short unHeight()
width and height of the texture map in pixels
-
rubTextureMapData
public java.nio.ByteBuffer rubTextureMapData(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- Map texture data.
-
format
public int format()
one of:
-
malloc
public static RenderModelTextureMap malloc()
Returns a newRenderModelTextureMapinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static RenderModelTextureMap calloc()
Returns a newRenderModelTextureMapinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static RenderModelTextureMap create()
Returns a newRenderModelTextureMapinstance allocated withBufferUtils.
-
create
public static RenderModelTextureMap create(long address)
Returns a newRenderModelTextureMapinstance for the specified memory address.
-
createSafe
@Nullable public static RenderModelTextureMap createSafe(long address)
-
malloc
public static RenderModelTextureMap.Buffer malloc(int capacity)
Returns a newRenderModelTextureMap.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static RenderModelTextureMap.Buffer calloc(int capacity)
Returns a newRenderModelTextureMap.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelTextureMap.Buffer create(int capacity)
Returns a newRenderModelTextureMap.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static RenderModelTextureMap.Buffer create(long address, int capacity)
Create aRenderModelTextureMap.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static RenderModelTextureMap.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static RenderModelTextureMap mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelTextureMap callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RenderModelTextureMap mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelTextureMap callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RenderModelTextureMap.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static RenderModelTextureMap.Buffer callocStack(int capacity)
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
public static RenderModelTextureMap malloc(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static RenderModelTextureMap calloc(org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelTextureMapinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static RenderModelTextureMap.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static RenderModelTextureMap.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRenderModelTextureMap.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nunWidth
public static short nunWidth(long struct)
Unsafe version ofunWidth().
-
nunHeight
public static short nunHeight(long struct)
Unsafe version ofunHeight().
-
nrubTextureMapData
public static java.nio.ByteBuffer nrubTextureMapData(long struct, int capacity)Unsafe version ofrubTextureMapData.
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
-