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.NativeResource
Multiresolution descriptor for Octilinear.Usage of this layer must be successfully enabled via
EnableExtension
before 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 = SizeUp
Member 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 class
OVRTextureLayoutOctilinear.Buffer
An array ofOVRTextureLayoutOctilinear
structs.
-
Constructor Summary
Constructors Constructor Description OVRTextureLayoutOctilinear(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutOctilinear
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 OVRTextureLayoutOctilinear
calloc()
Returns a newOVRTextureLayoutOctilinear
instance allocated withmemCalloc
.static OVRTextureLayoutOctilinear.Buffer
calloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withmemCalloc
.static OVRTextureLayoutOctilinear
callocStack()
Returns a newOVRTextureLayoutOctilinear
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutOctilinear.Buffer
callocStack(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutOctilinear.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutOctilinear
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRTextureLayoutOctilinear
create()
Returns a newOVRTextureLayoutOctilinear
instance allocated withBufferUtils
.static OVRTextureLayoutOctilinear.Buffer
create(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withBufferUtils
.static OVRTextureLayoutOctilinear
create(long address)
Returns a newOVRTextureLayoutOctilinear
instance for the specified memory address.static OVRTextureLayoutOctilinear.Buffer
create(long address, int capacity)
Create aOVRTextureLayoutOctilinear.Buffer
instance at the specified memory.static OVRTextureLayoutOctilinear
createSafe(long address)
static OVRTextureLayoutOctilinear.Buffer
createSafe(long address, int capacity)
static OVRTextureLayoutOctilinear
malloc()
Returns a newOVRTextureLayoutOctilinear
instance allocated withmemAlloc
.static OVRTextureLayoutOctilinear.Buffer
malloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withmemAlloc
.static OVRTextureLayoutOctilinear
mallocStack()
Returns a newOVRTextureLayoutOctilinear
instance allocated on the thread-localMemoryStack
.static OVRTextureLayoutOctilinear.Buffer
mallocStack(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated on the thread-localMemoryStack
.static OVRTextureLayoutOctilinear.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated on the specifiedMemoryStack
.static OVRTextureLayoutOctilinear
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear
instance allocated on the specifiedMemoryStack
.static float
nSizeDown(long struct)
Unsafe version ofSizeDown()
.static void
nSizeDown(long struct, float value)
Unsafe version ofSizeDown
.static float
nSizeLeft(long struct)
Unsafe version ofSizeLeft()
.static void
nSizeLeft(long struct, float value)
Unsafe version ofSizeLeft
.static float
nSizeRight(long struct)
Unsafe version ofSizeRight()
.static void
nSizeRight(long struct, float value)
Unsafe version ofSizeRight
.static float
nSizeUp(long struct)
Unsafe version ofSizeUp()
.static void
nSizeUp(long struct, float value)
Unsafe version ofSizeUp
.static float
nWarpDown(long struct)
Unsafe version ofWarpDown()
.static void
nWarpDown(long struct, float value)
Unsafe version ofWarpDown
.static float
nWarpLeft(long struct)
Unsafe version ofWarpLeft()
.static void
nWarpLeft(long struct, float value)
Unsafe version ofWarpLeft
.static float
nWarpRight(long struct)
Unsafe version ofWarpRight()
.static void
nWarpRight(long struct, float value)
Unsafe version ofWarpRight
.static float
nWarpUp(long struct)
Unsafe version ofWarpUp()
.static void
nWarpUp(long struct, float value)
Unsafe version ofWarpUp
.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.OVRTextureLayoutOctilinear
set(OVRTextureLayoutOctilinear src)
Copies the specified struct data to this struct.float
SizeDown()
Returns the value of theSizeDown
field.OVRTextureLayoutOctilinear
SizeDown(float value)
Sets the specified value to theSizeDown
field.float
SizeLeft()
Returns the value of theSizeLeft
field.OVRTextureLayoutOctilinear
SizeLeft(float value)
Sets the specified value to theSizeLeft
field.int
sizeof()
float
SizeRight()
Returns the value of theSizeRight
field.OVRTextureLayoutOctilinear
SizeRight(float value)
Sets the specified value to theSizeRight
field.float
SizeUp()
Returns the value of theSizeUp
field.OVRTextureLayoutOctilinear
SizeUp(float value)
Sets the specified value to theSizeUp
field.float
WarpDown()
Returns the value of theWarpDown
field.OVRTextureLayoutOctilinear
WarpDown(float value)
Sets the specified value to theWarpDown
field.float
WarpLeft()
Returns the value of theWarpLeft
field.OVRTextureLayoutOctilinear
WarpLeft(float value)
Sets the specified value to theWarpLeft
field.float
WarpRight()
Returns the value of theWarpRight
field.OVRTextureLayoutOctilinear
WarpRight(float value)
Sets the specified value to theWarpRight
field.float
WarpUp()
Returns the value of theWarpUp
field.OVRTextureLayoutOctilinear
WarpUp(float value)
Sets the specified value to theWarpUp
field.
-
-
-
Constructor Detail
-
OVRTextureLayoutOctilinear
public OVRTextureLayoutOctilinear(java.nio.ByteBuffer container)
Creates aOVRTextureLayoutOctilinear
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()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
WarpLeft
public float WarpLeft()
Returns the value of theWarpLeft
field.
-
WarpRight
public float WarpRight()
Returns the value of theWarpRight
field.
-
WarpUp
public float WarpUp()
Returns the value of theWarpUp
field.
-
WarpDown
public float WarpDown()
Returns the value of theWarpDown
field.
-
SizeLeft
public float SizeLeft()
Returns the value of theSizeLeft
field.
-
SizeRight
public float SizeRight()
Returns the value of theSizeRight
field.
-
SizeUp
public float SizeUp()
Returns the value of theSizeUp
field.
-
SizeDown
public float SizeDown()
Returns the value of theSizeDown
field.
-
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 newOVRTextureLayoutOctilinear
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRTextureLayoutOctilinear calloc()
Returns a newOVRTextureLayoutOctilinear
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRTextureLayoutOctilinear create()
Returns a newOVRTextureLayoutOctilinear
instance allocated withBufferUtils
.
-
create
public static OVRTextureLayoutOctilinear create(long address)
Returns a newOVRTextureLayoutOctilinear
instance for the specified memory address.
-
createSafe
@Nullable public static OVRTextureLayoutOctilinear createSafe(long address)
-
malloc
public static OVRTextureLayoutOctilinear.Buffer malloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRTextureLayoutOctilinear.Buffer calloc(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureLayoutOctilinear.Buffer create(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRTextureLayoutOctilinear.Buffer create(long address, int capacity)
Create aOVRTextureLayoutOctilinear.Buffer
instance 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 newOVRTextureLayoutOctilinear
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRTextureLayoutOctilinear callocStack()
Returns a newOVRTextureLayoutOctilinear
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRTextureLayoutOctilinear mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRTextureLayoutOctilinear callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRTextureLayoutOctilinear
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRTextureLayoutOctilinear.Buffer callocStack(int capacity)
Returns a newOVRTextureLayoutOctilinear.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-