Package org.lwjgl.ovr
Class OVRTextureLayoutOctilinear
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRTextureLayoutOctilinear>
org.lwjgl.ovr.OVRTextureLayoutOctilinear
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRTextureLayoutOctilinear
extends org.lwjgl.system.Struct<OVRTextureLayoutOctilinear>
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
Layout
struct ovrTextureLayoutOctilinear {
float WarpLeft();
float WarpRight();
float WarpUp();
float WarpDown();
float SizeLeft();
float SizeRight();
float SizeUp();
float SizeDown();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRTextureLayoutOctilinear(ByteBuffer container) Creates aOVRTextureLayoutOctilinearinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRTextureLayoutOctilinearcalloc()Returns a newOVRTextureLayoutOctilinearinstance allocated withmemCalloc.calloc(int capacity) Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemCalloc.calloc(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 OVRTextureLayoutOctilinearDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTextureLayoutOctilinearcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRTextureLayoutOctilinearcreate()Returns a newOVRTextureLayoutOctilinearinstance allocated withBufferUtils.create(int capacity) Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withBufferUtils.static OVRTextureLayoutOctilinearcreate(long address) Returns a newOVRTextureLayoutOctilinearinstance for the specified memory address.create(long address, int capacity) Create aOVRTextureLayoutOctilinear.Bufferinstance at the specified memory.static @Nullable OVRTextureLayoutOctilinearcreateSafe(long address) static @Nullable OVRTextureLayoutOctilinear.BuffercreateSafe(long address, int capacity) static OVRTextureLayoutOctilinearmalloc()Returns a newOVRTextureLayoutOctilinearinstance allocated withmemAlloc.malloc(int capacity) Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemAlloc.malloc(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 OVRTextureLayoutOctilinearDeprecated.mallocStack(int capacity) Deprecated.mallocStack(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.set(float WarpLeft, float WarpRight, float WarpUp, float WarpDown, float SizeLeft, float SizeRight, float SizeUp, float SizeDown) Initializes this struct with the specified values.Copies the specified struct data to this struct.floatSizeDown()down W quadrant sizeSizeDown(float value) Sets the specified value to theSizeDown()field.floatSizeLeft()left W quadrant sizeSizeLeft(float value) Sets the specified value to theSizeLeft()field.intsizeof()floatright W quadrant sizeSizeRight(float value) Sets the specified value to theSizeRight()field.floatSizeUp()up W quadrant sizeSizeUp(float value) Sets the specified value to theSizeUp()field.floatWarpDown()down W warpingWarpDown(float value) Sets the specified value to theWarpDown()field.floatWarpLeft()left W warpingWarpLeft(float value) Sets the specified value to theWarpLeft()field.floatright W warpingWarpRight(float value) Sets the specified value to theWarpRight()field.floatWarpUp()up W warpingWarpUp(float value) Sets the specified value to theWarpUp()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
WARPLEFT
public static final int WARPLEFTThe struct member offsets. -
WARPRIGHT
public static final int WARPRIGHTThe struct member offsets. -
WARPUP
public static final int WARPUPThe struct member offsets. -
WARPDOWN
public static final int WARPDOWNThe struct member offsets. -
SIZELEFT
public static final int SIZELEFTThe struct member offsets. -
SIZERIGHT
public static final int SIZERIGHTThe struct member offsets. -
SIZEUP
public static final int SIZEUPThe struct member offsets. -
SIZEDOWN
public static final int SIZEDOWNThe struct member offsets.
-
-
Constructor Details
-
OVRTextureLayoutOctilinear
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<OVRTextureLayoutOctilinear>
-
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
Sets the specified value to theWarpLeft()field. -
WarpRight
Sets the specified value to theWarpRight()field. -
WarpUp
Sets the specified value to theWarpUp()field. -
WarpDown
Sets the specified value to theWarpDown()field. -
SizeLeft
Sets the specified value to theSizeLeft()field. -
SizeRight
Sets the specified value to theSizeRight()field. -
SizeUp
Sets the specified value to theSizeUp()field. -
SizeDown
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRTextureLayoutOctilinearinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRTextureLayoutOctilinearinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRTextureLayoutOctilinearinstance allocated withBufferUtils. -
create
Returns a newOVRTextureLayoutOctilinearinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRTextureLayoutOctilinear.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRTextureLayoutOctilinear.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newOVRTextureLayoutOctilinearinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-