Package org.lwjgl.ovr
Class OVRMirrorTextureDesc
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRMirrorTextureDesc
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class OVRMirrorTextureDesc extends Struct
Description used to create a mirror texture.Member documentation
MiscFlags–ovrTextureFlags. One or more of:TextureMisc_AllowGenerateMipsTextureMisc_DX_TypelessTextureMisc_NoneTextureMisc_ProtectedContent
Layout
struct ovrMirrorTextureDesc { ovrTextureFormat Format; int Width; int Height; unsigned int MiscFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classOVRMirrorTextureDesc.BufferAn array ofOVRMirrorTextureDescstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description OVRMirrorTextureDesc(java.nio.ByteBuffer container)Creates aOVRMirrorTextureDescinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static OVRMirrorTextureDesccalloc()Returns a newOVRMirrorTextureDescinstance allocated withmemCalloc.static OVRMirrorTextureDesc.Buffercalloc(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withmemCalloc.static OVRMirrorTextureDesccallocStack()Returns a newOVRMirrorTextureDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesc.BuffercallocStack(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesc.BuffercallocStack(int capacity, MemoryStack stack)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesccallocStack(MemoryStack stack)Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesccreate()Returns a newOVRMirrorTextureDescinstance allocated withBufferUtils.static OVRMirrorTextureDesc.Buffercreate(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withBufferUtils.static OVRMirrorTextureDesccreate(long address)Returns a newOVRMirrorTextureDescinstance for the specified memory address ornullif the address isNULL.static OVRMirrorTextureDesc.Buffercreate(long address, int capacity)Create aOVRMirrorTextureDesc.Bufferinstance at the specified memory.intFormat()Returns the value of theFormatfield.OVRMirrorTextureDescFormat(int value)Sets the specified value to theFormatfield.intHeight()Returns the value of theHeightfield.OVRMirrorTextureDescHeight(int value)Sets the specified value to theHeightfield.static OVRMirrorTextureDescmalloc()Returns a newOVRMirrorTextureDescinstance allocated withmemAlloc.static OVRMirrorTextureDesc.Buffermalloc(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withmemAlloc.static OVRMirrorTextureDescmallocStack()Returns a newOVRMirrorTextureDescinstance allocated on the thread-localMemoryStack.static OVRMirrorTextureDesc.BuffermallocStack(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the thread-localMemoryStack.static OVRMirrorTextureDesc.BuffermallocStack(int capacity, MemoryStack stack)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRMirrorTextureDescmallocStack(MemoryStack stack)Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStack.intMiscFlags()Returns the value of theMiscFlagsfield.OVRMirrorTextureDescMiscFlags(int value)Sets the specified value to theMiscFlagsfield.OVRMirrorTextureDescnset(long struct)Unsafe version ofset.OVRMirrorTextureDescset(int Format, int Width, int Height, int MiscFlags)Initializes this struct with the specified values.OVRMirrorTextureDescset(OVRMirrorTextureDesc src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intWidth()Returns the value of theWidthfield.OVRMirrorTextureDescWidth(int value)Sets the specified value to theWidthfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
OVRMirrorTextureDesc
public OVRMirrorTextureDesc(java.nio.ByteBuffer container)
Creates aOVRMirrorTextureDescinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
Format
public int Format()
Returns the value of theFormatfield.
-
Width
public int Width()
Returns the value of theWidthfield.
-
Height
public int Height()
Returns the value of theHeightfield.
-
MiscFlags
public int MiscFlags()
Returns the value of theMiscFlagsfield.
-
Format
public OVRMirrorTextureDesc Format(int value)
Sets the specified value to theFormatfield.
-
Width
public OVRMirrorTextureDesc Width(int value)
Sets the specified value to theWidthfield.
-
Height
public OVRMirrorTextureDesc Height(int value)
Sets the specified value to theHeightfield.
-
MiscFlags
public OVRMirrorTextureDesc MiscFlags(int value)
Sets the specified value to theMiscFlagsfield.
-
set
public OVRMirrorTextureDesc set(int Format, int Width, int Height, int MiscFlags)
Initializes this struct with the specified values.
-
nset
public OVRMirrorTextureDesc nset(long struct)
Unsafe version ofset.
-
set
public OVRMirrorTextureDesc set(OVRMirrorTextureDesc src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRMirrorTextureDesc malloc()
Returns a newOVRMirrorTextureDescinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRMirrorTextureDesc calloc()
Returns a newOVRMirrorTextureDescinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRMirrorTextureDesc create()
Returns a newOVRMirrorTextureDescinstance allocated withBufferUtils.
-
create
public static OVRMirrorTextureDesc create(long address)
Returns a newOVRMirrorTextureDescinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static OVRMirrorTextureDesc.Buffer malloc(int capacity)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRMirrorTextureDesc.Buffer calloc(int capacity)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRMirrorTextureDesc.Buffer create(int capacity)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRMirrorTextureDesc.Buffer create(long address, int capacity)
Create aOVRMirrorTextureDesc.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static OVRMirrorTextureDesc mallocStack()
Returns a newOVRMirrorTextureDescinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRMirrorTextureDesc callocStack()
Returns a newOVRMirrorTextureDescinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRMirrorTextureDesc mallocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRMirrorTextureDesc callocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRMirrorTextureDesc.Buffer mallocStack(int capacity)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRMirrorTextureDesc.Buffer callocStack(int capacity)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRMirrorTextureDesc.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRMirrorTextureDesc.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-