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 implements NativeResource
Description used to create a mirror texture.Member documentation
Format
– one of:MiscFlags
–ovrTextureFlags
. One or more of:TextureMisc_None
TextureMisc_DX_Typeless
TextureMisc_AllowGenerateMips
TextureMisc_ProtectedContent
TextureMisc_AutoGenerateMips
Layout
struct ovrMirrorTextureDesc { ovrTextureFormat Format; int Width; int Height; unsigned int MiscFlags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRMirrorTextureDesc.Buffer
An array ofOVRMirrorTextureDesc
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FORMAT
HEIGHT
MISCFLAGSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
WIDTH
The struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor Description OVRMirrorTextureDesc(java.nio.ByteBuffer container)
Creates aOVRMirrorTextureDesc
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRMirrorTextureDesc
calloc()
Returns a newOVRMirrorTextureDesc
instance allocated withmemCalloc
.static OVRMirrorTextureDesc.Buffer
calloc(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withmemCalloc
.static OVRMirrorTextureDesc
callocStack()
Returns a newOVRMirrorTextureDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRMirrorTextureDesc.Buffer
callocStack(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRMirrorTextureDesc.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRMirrorTextureDesc
callocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRMirrorTextureDesc
create()
Returns a newOVRMirrorTextureDesc
instance allocated withBufferUtils
.static OVRMirrorTextureDesc.Buffer
create(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withBufferUtils
.static OVRMirrorTextureDesc
create(long address)
Returns a newOVRMirrorTextureDesc
instance for the specified memory address.static OVRMirrorTextureDesc.Buffer
create(long address, int capacity)
Create aOVRMirrorTextureDesc.Buffer
instance at the specified memory.static OVRMirrorTextureDesc
createSafe(long address)
static OVRMirrorTextureDesc.Buffer
createSafe(long address, int capacity)
int
Format()
Returns the value of theFormat
field.OVRMirrorTextureDesc
Format(int value)
Sets the specified value to theFormat
field.int
Height()
Returns the value of theHeight
field.OVRMirrorTextureDesc
Height(int value)
Sets the specified value to theHeight
field.static OVRMirrorTextureDesc
malloc()
Returns a newOVRMirrorTextureDesc
instance allocated withmemAlloc
.static OVRMirrorTextureDesc.Buffer
malloc(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withmemAlloc
.static OVRMirrorTextureDesc
mallocStack()
Returns a newOVRMirrorTextureDesc
instance allocated on the thread-localMemoryStack
.static OVRMirrorTextureDesc.Buffer
mallocStack(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated on the thread-localMemoryStack
.static OVRMirrorTextureDesc.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated on the specifiedMemoryStack
.static OVRMirrorTextureDesc
mallocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDesc
instance allocated on the specifiedMemoryStack
.int
MiscFlags()
Returns the value of theMiscFlags
field.OVRMirrorTextureDesc
MiscFlags(int value)
Sets the specified value to theMiscFlags
field.static int
nFormat(long struct)
Unsafe version ofFormat()
.static void
nFormat(long struct, int value)
Unsafe version ofFormat
.static int
nHeight(long struct)
Unsafe version ofHeight()
.static void
nHeight(long struct, int value)
Unsafe version ofHeight
.static int
nMiscFlags(long struct)
Unsafe version ofMiscFlags()
.static void
nMiscFlags(long struct, int value)
Unsafe version ofMiscFlags
.static int
nWidth(long struct)
Unsafe version ofWidth()
.static void
nWidth(long struct, int value)
Unsafe version ofWidth
.OVRMirrorTextureDesc
set(int Format, int Width, int Height, int MiscFlags)
Initializes this struct with the specified values.OVRMirrorTextureDesc
set(OVRMirrorTextureDesc src)
Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
Width()
Returns the value of theWidth
field.OVRMirrorTextureDesc
Width(int value)
Sets the specified value to theWidth
field.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
OVRMirrorTextureDesc
public OVRMirrorTextureDesc(java.nio.ByteBuffer container)
Creates aOVRMirrorTextureDesc
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()
Description copied from class:Struct
Returnssizeof(struct)
.
-
Format
public int Format()
Returns the value of theFormat
field.
-
Width
public int Width()
Returns the value of theWidth
field.
-
Height
public int Height()
Returns the value of theHeight
field.
-
MiscFlags
public int MiscFlags()
Returns the value of theMiscFlags
field.
-
Format
public OVRMirrorTextureDesc Format(int value)
Sets the specified value to theFormat
field.
-
Width
public OVRMirrorTextureDesc Width(int value)
Sets the specified value to theWidth
field.
-
Height
public OVRMirrorTextureDesc Height(int value)
Sets the specified value to theHeight
field.
-
MiscFlags
public OVRMirrorTextureDesc MiscFlags(int value)
Sets the specified value to theMiscFlags
field.
-
set
public OVRMirrorTextureDesc set(int Format, int Width, int Height, int MiscFlags)
Initializes this struct with the specified values.
-
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 newOVRMirrorTextureDesc
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRMirrorTextureDesc calloc()
Returns a newOVRMirrorTextureDesc
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRMirrorTextureDesc create()
Returns a newOVRMirrorTextureDesc
instance allocated withBufferUtils
.
-
create
public static OVRMirrorTextureDesc create(long address)
Returns a newOVRMirrorTextureDesc
instance for the specified memory address.
-
createSafe
@Nullable public static OVRMirrorTextureDesc createSafe(long address)
-
malloc
public static OVRMirrorTextureDesc.Buffer malloc(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRMirrorTextureDesc.Buffer calloc(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRMirrorTextureDesc.Buffer create(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRMirrorTextureDesc.Buffer create(long address, int capacity)
Create aOVRMirrorTextureDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static OVRMirrorTextureDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRMirrorTextureDesc mallocStack()
Returns a newOVRMirrorTextureDesc
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRMirrorTextureDesc callocStack()
Returns a newOVRMirrorTextureDesc
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRMirrorTextureDesc mallocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRMirrorTextureDesc callocStack(MemoryStack stack)
Returns a newOVRMirrorTextureDesc
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRMirrorTextureDesc.Buffer callocStack(int capacity)
Returns a newOVRMirrorTextureDesc.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static OVRMirrorTextureDesc.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nFormat
public static int nFormat(long struct)
Unsafe version ofFormat()
.
-
nWidth
public static int nWidth(long struct)
Unsafe version ofWidth()
.
-
nHeight
public static int nHeight(long struct)
Unsafe version ofHeight()
.
-
nMiscFlags
public static int nMiscFlags(long struct)
Unsafe version ofMiscFlags()
.
-
nFormat
public static void nFormat(long struct, int value)
Unsafe version ofFormat
.
-
nWidth
public static void nWidth(long struct, int value)
Unsafe version ofWidth
.
-
nHeight
public static void nHeight(long struct, int value)
Unsafe version ofHeight
.
-
nMiscFlags
public static void nMiscFlags(long struct, int value)
Unsafe version ofMiscFlags
.
-
-