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 = SizeUpMember documentation
WarpLeft– left W warpingWarpRight– right W warpingWarpUp– up W warpingWarpDown– down W warpingSizeLeft– left W quadrant sizeSizeRight– right W quadrant sizeSizeUp– up W quadrant sizeSizeDown– down W quadrant size
Layout
struct ovrTextureLayoutOctilinear { float WarpLeft; float WarpRight; float WarpUp; float WarpDown; float SizeLeft; float SizeRight; float SizeUp; float SizeDown; }
-
-
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 Modifier and Type Method Description static OVRTextureLayoutOctilinearcalloc()Returns a newOVRTextureLayoutOctilinearinstance allocated withmemCalloc.static OVRTextureLayoutOctilinear.Buffercalloc(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemCalloc.static OVRTextureLayoutOctilinearcallocStack()Returns a newOVRTextureLayoutOctilinearinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureLayoutOctilinear.BuffercallocStack(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRTextureLayoutOctilinear.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRTextureLayoutOctilinearcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 OVRTextureLayoutOctilinearmallocStack()Returns a newOVRTextureLayoutOctilinearinstance allocated on the thread-localMemoryStack.static OVRTextureLayoutOctilinear.BuffermallocStack(int capacity)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the thread-localMemoryStack.static OVRTextureLayoutOctilinear.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the specifiedMemoryStack.static OVRTextureLayoutOctilinearmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStack.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()Returns the value of theSizeDownfield.OVRTextureLayoutOctilinearSizeDown(float value)Sets the specified value to theSizeDownfield.floatSizeLeft()Returns the value of theSizeLeftfield.OVRTextureLayoutOctilinearSizeLeft(float value)Sets the specified value to theSizeLeftfield.intsizeof()floatSizeRight()Returns the value of theSizeRightfield.OVRTextureLayoutOctilinearSizeRight(float value)Sets the specified value to theSizeRightfield.floatSizeUp()Returns the value of theSizeUpfield.OVRTextureLayoutOctilinearSizeUp(float value)Sets the specified value to theSizeUpfield.floatWarpDown()Returns the value of theWarpDownfield.OVRTextureLayoutOctilinearWarpDown(float value)Sets the specified value to theWarpDownfield.floatWarpLeft()Returns the value of theWarpLeftfield.OVRTextureLayoutOctilinearWarpLeft(float value)Sets the specified value to theWarpLeftfield.floatWarpRight()Returns the value of theWarpRightfield.OVRTextureLayoutOctilinearWarpRight(float value)Sets the specified value to theWarpRightfield.floatWarpUp()Returns the value of theWarpUpfield.OVRTextureLayoutOctilinearWarpUp(float value)Sets the specified value to theWarpUpfield.
-
-
-
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()
Returns the value of theWarpLeftfield.
-
WarpRight
public float WarpRight()
Returns the value of theWarpRightfield.
-
WarpUp
public float WarpUp()
Returns the value of theWarpUpfield.
-
WarpDown
public float WarpDown()
Returns the value of theWarpDownfield.
-
SizeLeft
public float SizeLeft()
Returns the value of theSizeLeftfield.
-
SizeRight
public float SizeRight()
Returns the value of theSizeRightfield.
-
SizeUp
public float SizeUp()
Returns the value of theSizeUpfield.
-
SizeDown
public float SizeDown()
Returns the value of theSizeDownfield.
-
WarpLeft
public OVRTextureLayoutOctilinear WarpLeft(float value)
Sets the specified value to theWarpLeftfield.
-
WarpRight
public OVRTextureLayoutOctilinear WarpRight(float value)
Sets the specified value to theWarpRightfield.
-
WarpUp
public OVRTextureLayoutOctilinear WarpUp(float value)
Sets the specified value to theWarpUpfield.
-
WarpDown
public OVRTextureLayoutOctilinear WarpDown(float value)
Sets the specified value to theWarpDownfield.
-
SizeLeft
public OVRTextureLayoutOctilinear SizeLeft(float value)
Sets the specified value to theSizeLeftfield.
-
SizeRight
public OVRTextureLayoutOctilinear SizeRight(float value)
Sets the specified value to theSizeRightfield.
-
SizeUp
public OVRTextureLayoutOctilinear SizeUp(float value)
Sets the specified value to theSizeUpfield.
-
SizeDown
public OVRTextureLayoutOctilinear SizeDown(float value)
Sets the specified value to theSizeDownfield.
-
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
public static OVRTextureLayoutOctilinear mallocStack()
Returns a newOVRTextureLayoutOctilinearinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRTextureLayoutOctilinear callocStack()
Returns a newOVRTextureLayoutOctilinearinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRTextureLayoutOctilinear mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRTextureLayoutOctilinear callocStack(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
-
mallocStack
public static OVRTextureLayoutOctilinear.Buffer mallocStack(int capacity)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRTextureLayoutOctilinear.Buffer callocStack(int capacity)
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRTextureLayoutOctilinear.Buffer mallocStack(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
-
callocStack
public static OVRTextureLayoutOctilinear.Buffer callocStack(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.
-
-