Package org.lwjgl.ovr
Class OVRTextureLayoutOctilinear
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.OVRTextureLayoutOctilinear
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTextureLayoutOctilinear extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMultiresolution descriptor for Octilinear.Usage of this layer must be successfully enabled via
EnableExtensionbefore it can be used.Size of W quadrants:
SizeLeft + SizeRight <= Viewport.Size.w SizeUp + sizeDown <= Viewport.Size.h Clip space (0,0) is located at Viewport.Pos + (SizeLeft,SizeUp) where Viewport is given in the layer description. Viewport Top left +-----------------------------------------------------+ | ^ | | | | | | | 0 SizeUp 1 | | | | |<--Portion of viewport | | | determined by sizes | | | | |<--------SizeLeft-------+-------SizeRight------>| | | | | | | | | | | 2 SizeDown 3 | | | | | | | | | | | v | | +------------------------------------------------+ | | | +-----------------------------------------------------+ Viewport bottom right For example, when rendering quadrant 0 its scissor rectangle will be Top = 0 Left = 0 Right = SizeLeft Bottom = SizeUp and the scissor rectangle for quadrant 1 will be: Top = 0 Left = SizeLeft Right = SizeLeft + SizeRight Bottom = SizeUpLayout
struct ovrTextureLayoutOctilinear { floatWarpLeft(); floatWarpRight(); floatWarpUp(); floatWarpDown(); floatSizeLeft(); floatSizeRight(); floatSizeUp(); floatSizeDown(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRTextureLayoutOctilinear.BufferAn array ofOVRTextureLayoutOctilinearstructs.
-
Constructor Summary
Constructors Constructor Description OVRTextureLayoutOctilinear(java.nio.ByteBuffer container)Creates aOVRTextureLayoutOctilinearinstance 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 OVRTextureLayoutOctilinearcalloc()Returns a newOVRTextureLayoutOctilinearinstance allocated withmemCalloc.static OVRTextureLayoutOctilinear.Buffercalloc(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemCalloc.static OVRTextureLayoutOctilinear.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureLayoutOctilinearcalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureLayoutOctilinearcallocStack()Deprecated.static OVRTextureLayoutOctilinear.BuffercallocStack(int capacity)Deprecated.static OVRTextureLayoutOctilinear.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTextureLayoutOctilinearcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTextureLayoutOctilinearcreate()Returns a newOVRTextureLayoutOctilinearinstance allocated withBufferUtils.static OVRTextureLayoutOctilinear.Buffercreate(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withBufferUtils.static OVRTextureLayoutOctilinearcreate(long address)Returns a newOVRTextureLayoutOctilinearinstance for the specified memory address.static OVRTextureLayoutOctilinear.Buffercreate(long address, int capacity)Create aOVRTextureLayoutOctilinear.Bufferinstance at the specified memory.static OVRTextureLayoutOctilinearcreateSafe(long address)static OVRTextureLayoutOctilinear.BuffercreateSafe(long address, int capacity)static OVRTextureLayoutOctilinearmalloc()Returns a newOVRTextureLayoutOctilinearinstance allocated withmemAlloc.static OVRTextureLayoutOctilinear.Buffermalloc(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemAlloc.static OVRTextureLayoutOctilinear.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStack.static OVRTextureLayoutOctilinearmalloc(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStack.static OVRTextureLayoutOctilinearmallocStack()Deprecated.static OVRTextureLayoutOctilinear.BuffermallocStack(int capacity)Deprecated.static OVRTextureLayoutOctilinear.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static OVRTextureLayoutOctilinearmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatnSizeDown(long struct)Unsafe version ofSizeDown().static voidnSizeDown(long struct, float value)Unsafe version ofSizeDown.static floatnSizeLeft(long struct)Unsafe version ofSizeLeft().static voidnSizeLeft(long struct, float value)Unsafe version ofSizeLeft.static floatnSizeRight(long struct)Unsafe version ofSizeRight().static voidnSizeRight(long struct, float value)Unsafe version ofSizeRight.static floatnSizeUp(long struct)Unsafe version ofSizeUp().static voidnSizeUp(long struct, float value)Unsafe version ofSizeUp.static floatnWarpDown(long struct)Unsafe version ofWarpDown().static voidnWarpDown(long struct, float value)Unsafe version ofWarpDown.static floatnWarpLeft(long struct)Unsafe version ofWarpLeft().static voidnWarpLeft(long struct, float value)Unsafe version ofWarpLeft.static floatnWarpRight(long struct)Unsafe version ofWarpRight().static voidnWarpRight(long struct, float value)Unsafe version ofWarpRight.static floatnWarpUp(long struct)Unsafe version ofWarpUp().static voidnWarpUp(long struct, float value)Unsafe version ofWarpUp.OVRTextureLayoutOctilinearset(float WarpLeft, float WarpRight, float WarpUp, float WarpDown, float SizeLeft, float SizeRight, float SizeUp, float SizeDown)Initializes this struct with the specified values.OVRTextureLayoutOctilinearset(OVRTextureLayoutOctilinear src)Copies the specified struct data to this struct.floatSizeDown()down W quadrant sizeOVRTextureLayoutOctilinearSizeDown(float value)Sets the specified value to theSizeDown()field.floatSizeLeft()left W quadrant sizeOVRTextureLayoutOctilinearSizeLeft(float value)Sets the specified value to theSizeLeft()field.intsizeof()floatSizeRight()right W quadrant sizeOVRTextureLayoutOctilinearSizeRight(float value)Sets the specified value to theSizeRight()field.floatSizeUp()up W quadrant sizeOVRTextureLayoutOctilinearSizeUp(float value)Sets the specified value to theSizeUp()field.floatWarpDown()down W warpingOVRTextureLayoutOctilinearWarpDown(float value)Sets the specified value to theWarpDown()field.floatWarpLeft()left W warpingOVRTextureLayoutOctilinearWarpLeft(float value)Sets the specified value to theWarpLeft()field.floatWarpRight()right W warpingOVRTextureLayoutOctilinearWarpRight(float value)Sets the specified value to theWarpRight()field.floatWarpUp()up W warpingOVRTextureLayoutOctilinearWarpUp(float value)Sets the specified value to theWarpUp()field.
-
-
-
Constructor Detail
-
OVRTextureLayoutOctilinear
public OVRTextureLayoutOctilinear(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutOctilinearinstance 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
-
WarpLeft
public float WarpLeft()
left W warping
-
WarpRight
public float WarpRight()
right W warping
-
WarpUp
public float WarpUp()
up W warping
-
WarpDown
public float WarpDown()
down W warping
-
SizeLeft
public float SizeLeft()
left W quadrant size
-
SizeRight
public float SizeRight()
right W quadrant size
-
SizeUp
public float SizeUp()
up W quadrant size
-
SizeDown
public float SizeDown()
down W quadrant size
-
WarpLeft
public OVRTextureLayoutOctilinear WarpLeft(float value)
Sets the specified value to theWarpLeft()field.
-
WarpRight
public OVRTextureLayoutOctilinear WarpRight(float value)
Sets the specified value to theWarpRight()field.
-
WarpUp
public OVRTextureLayoutOctilinear WarpUp(float value)
Sets the specified value to theWarpUp()field.
-
WarpDown
public OVRTextureLayoutOctilinear WarpDown(float value)
Sets the specified value to theWarpDown()field.
-
SizeLeft
public OVRTextureLayoutOctilinear SizeLeft(float value)
Sets the specified value to theSizeLeft()field.
-
SizeRight
public OVRTextureLayoutOctilinear SizeRight(float value)
Sets the specified value to theSizeRight()field.
-
SizeUp
public OVRTextureLayoutOctilinear SizeUp(float value)
Sets the specified value to theSizeUp()field.
-
SizeDown
public OVRTextureLayoutOctilinear SizeDown(float value)
Sets the specified value to theSizeDown()field.
-
set
public OVRTextureLayoutOctilinear set(float WarpLeft, float WarpRight, float WarpUp, float WarpDown, float SizeLeft, float SizeRight, float SizeUp, float SizeDown)
Initializes this struct with the specified values.
-
set
public OVRTextureLayoutOctilinear set(OVRTextureLayoutOctilinear src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static OVRTextureLayoutOctilinear malloc()
Returns a newOVRTextureLayoutOctilinearinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRTextureLayoutOctilinear calloc()
Returns a newOVRTextureLayoutOctilinearinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRTextureLayoutOctilinear create()
Returns a newOVRTextureLayoutOctilinearinstance allocated withBufferUtils.
-
create
public static OVRTextureLayoutOctilinear create(long address)
Returns a newOVRTextureLayoutOctilinearinstance for the specified memory address.
-
createSafe
@Nullable public static OVRTextureLayoutOctilinear createSafe(long address)
-
malloc
public static OVRTextureLayoutOctilinear.Buffer malloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRTextureLayoutOctilinear.Buffer calloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureLayoutOctilinear.Buffer create(int capacity)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRTextureLayoutOctilinear.Buffer create(long address, int capacity)
Create aOVRTextureLayoutOctilinear.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRTextureLayoutOctilinear.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static OVRTextureLayoutOctilinear mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTextureLayoutOctilinear callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTextureLayoutOctilinear mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTextureLayoutOctilinear callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTextureLayoutOctilinear.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRTextureLayoutOctilinear.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRTextureLayoutOctilinear.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 OVRTextureLayoutOctilinear.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static OVRTextureLayoutOctilinear malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRTextureLayoutOctilinear calloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static OVRTextureLayoutOctilinear.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static OVRTextureLayoutOctilinear.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nWarpLeft
public static float nWarpLeft(long struct)
Unsafe version ofWarpLeft().
-
nWarpRight
public static float nWarpRight(long struct)
Unsafe version ofWarpRight().
-
nWarpUp
public static float nWarpUp(long struct)
Unsafe version ofWarpUp().
-
nWarpDown
public static float nWarpDown(long struct)
Unsafe version ofWarpDown().
-
nSizeLeft
public static float nSizeLeft(long struct)
Unsafe version ofSizeLeft().
-
nSizeRight
public static float nSizeRight(long struct)
Unsafe version ofSizeRight().
-
nSizeUp
public static float nSizeUp(long struct)
Unsafe version ofSizeUp().
-
nSizeDown
public static float nSizeDown(long struct)
Unsafe version ofSizeDown().
-
nWarpLeft
public static void nWarpLeft(long struct, float value)Unsafe version ofWarpLeft.
-
nWarpRight
public static void nWarpRight(long struct, float value)Unsafe version ofWarpRight.
-
nWarpUp
public static void nWarpUp(long struct, float value)Unsafe version ofWarpUp.
-
nWarpDown
public static void nWarpDown(long struct, float value)Unsafe version ofWarpDown.
-
nSizeLeft
public static void nSizeLeft(long struct, float value)Unsafe version ofSizeLeft.
-
nSizeRight
public static void nSizeRight(long struct, float value)Unsafe version ofSizeRight.
-
nSizeUp
public static void nSizeUp(long struct, float value)Unsafe version ofSizeUp.
-
nSizeDown
public static void nSizeDown(long struct, float value)Unsafe version ofSizeDown.
-
-