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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRMirrorTextureDesc extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescription used to create a mirror texture.Layout
struct ovrMirrorTextureDesc { ovrTextureFormatFormat(); int Width; int Height; unsigned intMiscFlags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRMirrorTextureDesc.BufferAn array ofOVRMirrorTextureDescstructs.
-
Constructor Summary
Constructors Constructor 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 Deprecated Methods Modifier and Type Method Description static OVRMirrorTextureDesccalloc()Returns a newOVRMirrorTextureDescinstance allocated withmemCalloc.static OVRMirrorTextureDesc.Buffercalloc(int capacity)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated withmemCalloc.static OVRMirrorTextureDesc.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesccalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRMirrorTextureDesccallocStack()Deprecated.static OVRMirrorTextureDesc.BuffercallocStack(int capacity)Deprecated.static OVRMirrorTextureDesc.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRMirrorTextureDesccallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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.static OVRMirrorTextureDesc.Buffercreate(long address, int capacity)Create aOVRMirrorTextureDesc.Bufferinstance at the specified memory.static OVRMirrorTextureDesccreateSafe(long address)static OVRMirrorTextureDesc.BuffercreateSafe(long address, int capacity)intFormat()one of:OVR.OVR_FORMAT_UNKNOWNOVR.OVR_FORMAT_B5G6R5_UNORMOVR.OVR_FORMAT_B5G5R5A1_UNORMOVR.OVR_FORMAT_B4G4R4A4_UNORMOVR.OVR_FORMAT_R8G8B8A8_UNORMOVR.OVR_FORMAT_R8G8B8A8_UNORM_SRGBOVR.OVR_FORMAT_B8G8R8A8_UNORMOVR.OVR_FORMAT_B8G8R8_UNORMOVR.OVR_FORMAT_B8G8R8A8_UNORM_SRGBOVR.OVR_FORMAT_B8G8R8X8_UNORMOVR.OVR_FORMAT_B8G8R8X8_UNORM_SRGBOVR.OVR_FORMAT_R16G16B16A16_FLOATOVR.OVR_FORMAT_R11G11B10_FLOATOVR.OVR_FORMAT_D16_UNORMOVR.OVR_FORMAT_D24_UNORM_S8_UINTOVR.OVR_FORMAT_D32_FLOATOVR.OVR_FORMAT_D32_FLOAT_S8X24_UINTOVR.OVR_FORMAT_BC1_UNORMOVR.OVR_FORMAT_BC1_UNORM_SRGBOVR.OVR_FORMAT_BC2_UNORMOVR.OVR_FORMAT_BC2_UNORM_SRGBOVR.OVR_FORMAT_BC3_UNORMOVR.OVR_FORMAT_BC3_UNORM_SRGBOVR.OVR_FORMAT_BC6H_UF16OVR.OVR_FORMAT_BC6H_SF16OVR.OVR_FORMAT_BC7_UNORMOVR.OVR_FORMAT_BC7_UNORM_SRGBOVRMirrorTextureDescFormat(int value)Sets the specified value to theFormat()field.intHeight()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 OVRMirrorTextureDesc.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStack.static OVRMirrorTextureDescmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStack.static OVRMirrorTextureDescmallocStack()Deprecated.static OVRMirrorTextureDesc.BuffermallocStack(int capacity)Deprecated.static OVRMirrorTextureDesc.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRMirrorTextureDescmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intMiscFlags()ovrTextureFlags.OVRMirrorTextureDescMiscFlags(int value)Sets the specified value to theMiscFlags()field.static intnFormat(long struct)Unsafe version ofFormat().static voidnFormat(long struct, int value)Unsafe version ofFormat.static intnHeight(long struct)Unsafe version ofHeight().static voidnHeight(long struct, int value)Unsafe version ofHeight.static intnMiscFlags(long struct)Unsafe version ofMiscFlags().static voidnMiscFlags(long struct, int value)Unsafe version ofMiscFlags.static intnWidth(long struct)Unsafe version ofWidth().static voidnWidth(long struct, int value)Unsafe version ofWidth.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()intWidth()OVRMirrorTextureDescWidth(int value)Sets the specified value to theWidthfield.
-
-
-
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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Format
public int Format()
one of:
-
Width
public int Width()
- Returns:
- the value of the
Widthfield.
-
Height
public int Height()
- Returns:
- the value of the
Heightfield.
-
MiscFlags
public int MiscFlags()
ovrTextureFlags. One or more of:TextureMisc_NoneTextureMisc_DX_TypelessTextureMisc_AllowGenerateMipsTextureMisc_ProtectedContentTextureMisc_AutoGenerateMips
-
Format
public OVRMirrorTextureDesc Format(int value)
Sets the specified value to theFormat()field.
-
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 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 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.
-
createSafe
@Nullable public static OVRMirrorTextureDesc createSafe(long address)
-
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
-
createSafe
@Nullable public static OVRMirrorTextureDesc.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRMirrorTextureDesc mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRMirrorTextureDesc callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRMirrorTextureDesc mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRMirrorTextureDesc callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRMirrorTextureDesc.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRMirrorTextureDesc.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRMirrorTextureDesc.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 OVRMirrorTextureDesc.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRMirrorTextureDesc malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRMirrorTextureDesc calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRMirrorTextureDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRMirrorTextureDesc.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRMirrorTextureDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRMirrorTextureDesc.Buffer calloc(int capacity, org.lwjgl.system.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
-
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.
-
-