Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRTextureSwapChainDesc

extends Struct<OVRTextureSwapChainDesc>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct ovrTextureSwapChainDesc
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Description used to create a texture swap chain.

Layout


struct ovrTextureSwapChainDesc {
    ovrTextureType Type;
    ovrTextureFormat Format;
    int ArraySize;
    int Width;
    int Height;
    int MipLevels;
    int SampleCount;
    ovrBool StaticImage;
    unsigned int MiscFlags;
    unsigned int BindFlags;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ARRAYSIZE

The struct member offsets.

public static final int
BINDFLAGS

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
MIPLEVELS

The struct member offsets.

public static final int
MISCFLAGS

The struct member offsets.

public static final int
SAMPLECOUNT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STATICIMAGE

The struct member offsets.

public static final int
TYPE

The struct member offsets.

public static final int
WIDTH

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
OVRTextureSwapChainDesc(long address, ByteBuffer container)

public
OVRTextureSwapChainDesc(ByteBuffer container)

Creates a OVRTextureSwapChainDesc instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
ArraySize()

must be 6 for Texture_Cube, size of texture array otherwise

public OVRTextureSwapChainDesc
ArraySize(int value)

Sets the specified value to the ArraySize field.

public int
BindFlags()

ovrTextureBindFlags.

public OVRTextureSwapChainDesc
BindFlags(int value)

Sets the specified value to the BindFlags field.

public static OVRTextureSwapChainDesc
calloc()

Returns a new OVRTextureSwapChainDesc instance allocated with memCalloc.

public static OVRTextureSwapChainDesc.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new OVRTextureSwapChainDesc.Buffer instance allocated with memCalloc.

public static OVRTextureSwapChainDesc
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRTextureSwapChainDesc instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRTextureSwapChainDesc.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRTextureSwapChainDesc.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRTextureSwapChainDesc
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected OVRTextureSwapChainDesc
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static OVRTextureSwapChainDesc
create()

Returns a new OVRTextureSwapChainDesc instance allocated with BufferUtils.

public static OVRTextureSwapChainDesc
create(long address)

Returns a new OVRTextureSwapChainDesc instance for the specified memory address.

public static OVRTextureSwapChainDesc.Buffer
create(int
the buffer capacity
capacity
)

Returns a new OVRTextureSwapChainDesc.Buffer instance allocated with BufferUtils.

public static OVRTextureSwapChainDesc.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a OVRTextureSwapChainDesc.Buffer instance at the specified memory.

public static OVRTextureSwapChainDesc
createSafe(long address)

Like create, but returns null if address is NULL.

public static OVRTextureSwapChainDesc.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
public OVRTextureSwapChainDesc
Format(int value)

Sets the specified value to the Format field.

public int

Returns:

the value of the Height field.
Height
()

public OVRTextureSwapChainDesc
Height(int value)

Sets the specified value to the Height field.

public static OVRTextureSwapChainDesc
malloc()

Returns a new OVRTextureSwapChainDesc instance allocated with memAlloc.

public static OVRTextureSwapChainDesc.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new OVRTextureSwapChainDesc.Buffer instance allocated with memAlloc.

public static OVRTextureSwapChainDesc
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRTextureSwapChainDesc instance allocated on the specified MemoryStack.

public static OVRTextureSwapChainDesc.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRTextureSwapChainDesc.Buffer instance allocated on the specified MemoryStack.

public static OVRTextureSwapChainDesc
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRTextureSwapChainDesc.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the MipLevels field.
MipLevels
()

public OVRTextureSwapChainDesc
MipLevels(int value)

Sets the specified value to the MipLevels field.

public int
MiscFlags()

ovrTextureFlags.

public OVRTextureSwapChainDesc
MiscFlags(int value)

Sets the specified value to the MiscFlags field.

public static int
nArraySize(long struct)

Unsafe version of ArraySize.

public static void
nArraySize(long struct, int value)

Unsafe version of ArraySize.

public static int
nBindFlags(long struct)

Unsafe version of BindFlags.

public static void
nBindFlags(long struct, int value)

Unsafe version of BindFlags.

public static int
nFormat(long struct)

Unsafe version of Format.

public static void
nFormat(long struct, int value)

Unsafe version of Format.

public static int
nHeight(long struct)

Unsafe version of Height.

public static void
nHeight(long struct, int value)

Unsafe version of Height.

public static int
nMipLevels(long struct)

Unsafe version of MipLevels.

public static void
nMipLevels(long struct, int value)

Unsafe version of MipLevels.

public static int
nMiscFlags(long struct)

Unsafe version of MiscFlags.

public static void
nMiscFlags(long struct, int value)

Unsafe version of MiscFlags.

public static int
nSampleCount(long struct)

Unsafe version of SampleCount.

public static void
nSampleCount(long struct, int value)

Unsafe version of SampleCount.

public static boolean
nStaticImage(long struct)

Unsafe version of StaticImage.

public static void
nStaticImage(long struct, boolean value)

Unsafe version of StaticImage.

public static int
nType(long struct)

Unsafe version of Type.

public static void
nType(long struct, int value)

Unsafe version of Type.

public static int
nWidth(long struct)

Unsafe version of Width.

public static void
nWidth(long struct, int value)

Unsafe version of Width.

public int

Returns:

the value of the SampleCount field.
SampleCount
()

public OVRTextureSwapChainDesc
SampleCount(int value)

Sets the specified value to the SampleCount field.

public OVRTextureSwapChainDesc
set(int Type, int Format, int ArraySize, int Width, int Height, int MipLevels, int SampleCount, boolean StaticImage, int MiscFlags, int BindFlags)

Initializes this struct with the specified values.

public OVRTextureSwapChainDesc

Returns:

this struct
set
(OVRTextureSwapChainDesc
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public boolean
StaticImage()

not buffered in a chain.

public OVRTextureSwapChainDesc
StaticImage(boolean value)

Sets the specified value to the StaticImage field.

public int
public OVRTextureSwapChainDesc
Type(int value)

Sets the specified value to the Type field.

public int

Returns:

the value of the Width field.
Width
()

public OVRTextureSwapChainDesc
Width(int value)

Sets the specified value to the Width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate