Package org.lwjgl.openvr
Class CompositorOverlaySettings
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.CompositorOverlaySettings
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CompositorOverlaySettings extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Allows the application to customize how the overlay appears in the compositor.Member documentation
size
–sizeof(Compositor_OverlaySettings)
Layout
struct Compositor_OverlaySettings { uint32_t size; bool curved; bool antialias; float scale; float distance; float alpha; float uOffset; float vOffset; float uScale; float vScale; float gridDivs; float gridWidth; float gridScale;
HmdMatrix44_t
transform; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositorOverlaySettings.Buffer
An array ofCompositorOverlaySettings
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ALPHA
ANTIALIAS
CURVED
DISTANCE
GRIDDIVS
GRIDSCALE
GRIDWIDTH
SCALE
SIZEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TRANSFORM
UOFFSET
USCALE
VOFFSET
VSCALEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CompositorOverlaySettings(java.nio.ByteBuffer container)
Creates aCompositorOverlaySettings
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
alpha()
Returns the value of thealpha
field.CompositorOverlaySettings
alpha(float value)
Sets the specified value to thealpha
field.boolean
antialias()
Returns the value of theantialias
field.CompositorOverlaySettings
antialias(boolean value)
Sets the specified value to theantialias
field.static CompositorOverlaySettings
calloc()
Returns a newCompositorOverlaySettings
instance allocated withmemCalloc
.static CompositorOverlaySettings.Buffer
calloc(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withmemCalloc
.static CompositorOverlaySettings
callocStack()
Returns a newCompositorOverlaySettings
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorOverlaySettings.Buffer
callocStack(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorOverlaySettings.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorOverlaySettings
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorOverlaySettings
create()
Returns a newCompositorOverlaySettings
instance allocated withBufferUtils
.static CompositorOverlaySettings.Buffer
create(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withBufferUtils
.static CompositorOverlaySettings
create(long address)
Returns a newCompositorOverlaySettings
instance for the specified memory address.static CompositorOverlaySettings.Buffer
create(long address, int capacity)
Create aCompositorOverlaySettings.Buffer
instance at the specified memory.static CompositorOverlaySettings
createSafe(long address)
static CompositorOverlaySettings.Buffer
createSafe(long address, int capacity)
boolean
curved()
Returns the value of thecurved
field.CompositorOverlaySettings
curved(boolean value)
Sets the specified value to thecurved
field.float
distance()
Returns the value of thedistance
field.CompositorOverlaySettings
distance(float value)
Sets the specified value to thedistance
field.float
gridDivs()
Returns the value of thegridDivs
field.CompositorOverlaySettings
gridDivs(float value)
Sets the specified value to thegridDivs
field.float
gridScale()
Returns the value of thegridScale
field.CompositorOverlaySettings
gridScale(float value)
Sets the specified value to thegridScale
field.float
gridWidth()
Returns the value of thegridWidth
field.CompositorOverlaySettings
gridWidth(float value)
Sets the specified value to thegridWidth
field.static CompositorOverlaySettings
malloc()
Returns a newCompositorOverlaySettings
instance allocated withmemAlloc
.static CompositorOverlaySettings.Buffer
malloc(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withmemAlloc
.static CompositorOverlaySettings
mallocStack()
Returns a newCompositorOverlaySettings
instance allocated on the thread-localMemoryStack
.static CompositorOverlaySettings.Buffer
mallocStack(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the thread-localMemoryStack
.static CompositorOverlaySettings.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the specifiedMemoryStack
.static CompositorOverlaySettings
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings
instance allocated on the specifiedMemoryStack
.static float
nalpha(long struct)
Unsafe version ofalpha()
.static void
nalpha(long struct, float value)
Unsafe version ofalpha
.static boolean
nantialias(long struct)
Unsafe version ofantialias()
.static void
nantialias(long struct, boolean value)
Unsafe version ofantialias
.static boolean
ncurved(long struct)
Unsafe version ofcurved()
.static void
ncurved(long struct, boolean value)
Unsafe version ofcurved
.static float
ndistance(long struct)
Unsafe version ofdistance()
.static void
ndistance(long struct, float value)
Unsafe version ofdistance
.static float
ngridDivs(long struct)
Unsafe version ofgridDivs()
.static void
ngridDivs(long struct, float value)
Unsafe version ofgridDivs
.static float
ngridScale(long struct)
Unsafe version ofgridScale()
.static void
ngridScale(long struct, float value)
Unsafe version ofgridScale
.static float
ngridWidth(long struct)
Unsafe version ofgridWidth()
.static void
ngridWidth(long struct, float value)
Unsafe version ofgridWidth
.static float
nscale(long struct)
Unsafe version ofscale()
.static void
nscale(long struct, float value)
Unsafe version ofscale
.static int
nsize(long struct)
Unsafe version ofsize()
.static void
nsize(long struct, int value)
Unsafe version ofsize
.static HmdMatrix44
ntransform(long struct)
Unsafe version oftransform()
.static void
ntransform(long struct, HmdMatrix44 value)
Unsafe version oftransform
.static float
nuOffset(long struct)
Unsafe version ofuOffset()
.static void
nuOffset(long struct, float value)
Unsafe version ofuOffset
.static float
nuScale(long struct)
Unsafe version ofuScale()
.static void
nuScale(long struct, float value)
Unsafe version ofuScale
.static float
nvOffset(long struct)
Unsafe version ofvOffset()
.static void
nvOffset(long struct, float value)
Unsafe version ofvOffset
.static float
nvScale(long struct)
Unsafe version ofvScale()
.static void
nvScale(long struct, float value)
Unsafe version ofvScale
.float
scale()
Returns the value of thescale
field.CompositorOverlaySettings
scale(float value)
Sets the specified value to thescale
field.CompositorOverlaySettings
set(int size, boolean curved, boolean antialias, float scale, float distance, float alpha, float uOffset, float vOffset, float uScale, float vScale, float gridDivs, float gridWidth, float gridScale, HmdMatrix44 transform)
Initializes this struct with the specified values.CompositorOverlaySettings
set(CompositorOverlaySettings src)
Copies the specified struct data to this struct.int
size()
Returns the value of thesize
field.CompositorOverlaySettings
size(int value)
Sets the specified value to thesize
field.int
sizeof()
HmdMatrix44
transform()
Returns aHmdMatrix44
view of thetransform
field.CompositorOverlaySettings
transform(java.util.function.Consumer<HmdMatrix44> consumer)
Passes thetransform
field to the specifiedConsumer
.CompositorOverlaySettings
transform(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to thetransform
field.float
uOffset()
Returns the value of theuOffset
field.CompositorOverlaySettings
uOffset(float value)
Sets the specified value to theuOffset
field.float
uScale()
Returns the value of theuScale
field.CompositorOverlaySettings
uScale(float value)
Sets the specified value to theuScale
field.float
vOffset()
Returns the value of thevOffset
field.CompositorOverlaySettings
vOffset(float value)
Sets the specified value to thevOffset
field.float
vScale()
Returns the value of thevScale
field.CompositorOverlaySettings
vScale(float value)
Sets the specified value to thevScale
field.
-
-
-
Constructor Detail
-
CompositorOverlaySettings
public CompositorOverlaySettings(java.nio.ByteBuffer container)
Creates aCompositorOverlaySettings
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
-
size
public int size()
Returns the value of thesize
field.
-
curved
public boolean curved()
Returns the value of thecurved
field.
-
antialias
public boolean antialias()
Returns the value of theantialias
field.
-
scale
public float scale()
Returns the value of thescale
field.
-
distance
public float distance()
Returns the value of thedistance
field.
-
alpha
public float alpha()
Returns the value of thealpha
field.
-
uOffset
public float uOffset()
Returns the value of theuOffset
field.
-
vOffset
public float vOffset()
Returns the value of thevOffset
field.
-
uScale
public float uScale()
Returns the value of theuScale
field.
-
vScale
public float vScale()
Returns the value of thevScale
field.
-
gridDivs
public float gridDivs()
Returns the value of thegridDivs
field.
-
gridWidth
public float gridWidth()
Returns the value of thegridWidth
field.
-
gridScale
public float gridScale()
Returns the value of thegridScale
field.
-
transform
public HmdMatrix44 transform()
Returns aHmdMatrix44
view of thetransform
field.
-
size
public CompositorOverlaySettings size(int value)
Sets the specified value to thesize
field.
-
curved
public CompositorOverlaySettings curved(boolean value)
Sets the specified value to thecurved
field.
-
antialias
public CompositorOverlaySettings antialias(boolean value)
Sets the specified value to theantialias
field.
-
scale
public CompositorOverlaySettings scale(float value)
Sets the specified value to thescale
field.
-
distance
public CompositorOverlaySettings distance(float value)
Sets the specified value to thedistance
field.
-
alpha
public CompositorOverlaySettings alpha(float value)
Sets the specified value to thealpha
field.
-
uOffset
public CompositorOverlaySettings uOffset(float value)
Sets the specified value to theuOffset
field.
-
vOffset
public CompositorOverlaySettings vOffset(float value)
Sets the specified value to thevOffset
field.
-
uScale
public CompositorOverlaySettings uScale(float value)
Sets the specified value to theuScale
field.
-
vScale
public CompositorOverlaySettings vScale(float value)
Sets the specified value to thevScale
field.
-
gridDivs
public CompositorOverlaySettings gridDivs(float value)
Sets the specified value to thegridDivs
field.
-
gridWidth
public CompositorOverlaySettings gridWidth(float value)
Sets the specified value to thegridWidth
field.
-
gridScale
public CompositorOverlaySettings gridScale(float value)
Sets the specified value to thegridScale
field.
-
transform
public CompositorOverlaySettings transform(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to thetransform
field.
-
transform
public CompositorOverlaySettings transform(java.util.function.Consumer<HmdMatrix44> consumer)
Passes thetransform
field to the specifiedConsumer
.
-
set
public CompositorOverlaySettings set(int size, boolean curved, boolean antialias, float scale, float distance, float alpha, float uOffset, float vOffset, float uScale, float vScale, float gridDivs, float gridWidth, float gridScale, HmdMatrix44 transform)
Initializes this struct with the specified values.
-
set
public CompositorOverlaySettings set(CompositorOverlaySettings src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static CompositorOverlaySettings malloc()
Returns a newCompositorOverlaySettings
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CompositorOverlaySettings calloc()
Returns a newCompositorOverlaySettings
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CompositorOverlaySettings create()
Returns a newCompositorOverlaySettings
instance allocated withBufferUtils
.
-
create
public static CompositorOverlaySettings create(long address)
Returns a newCompositorOverlaySettings
instance for the specified memory address.
-
createSafe
@Nullable public static CompositorOverlaySettings createSafe(long address)
-
malloc
public static CompositorOverlaySettings.Buffer malloc(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CompositorOverlaySettings.Buffer calloc(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorOverlaySettings.Buffer create(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorOverlaySettings.Buffer create(long address, int capacity)
Create aCompositorOverlaySettings.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CompositorOverlaySettings.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CompositorOverlaySettings mallocStack()
Returns a newCompositorOverlaySettings
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CompositorOverlaySettings callocStack()
Returns a newCompositorOverlaySettings
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CompositorOverlaySettings mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CompositorOverlaySettings callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CompositorOverlaySettings.Buffer mallocStack(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CompositorOverlaySettings.Buffer callocStack(int capacity)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CompositorOverlaySettings.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CompositorOverlaySettings.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettings.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsize
public static int nsize(long struct)
Unsafe version ofsize()
.
-
ncurved
public static boolean ncurved(long struct)
Unsafe version ofcurved()
.
-
nantialias
public static boolean nantialias(long struct)
Unsafe version ofantialias()
.
-
nscale
public static float nscale(long struct)
Unsafe version ofscale()
.
-
ndistance
public static float ndistance(long struct)
Unsafe version ofdistance()
.
-
nalpha
public static float nalpha(long struct)
Unsafe version ofalpha()
.
-
nuOffset
public static float nuOffset(long struct)
Unsafe version ofuOffset()
.
-
nvOffset
public static float nvOffset(long struct)
Unsafe version ofvOffset()
.
-
nuScale
public static float nuScale(long struct)
Unsafe version ofuScale()
.
-
nvScale
public static float nvScale(long struct)
Unsafe version ofvScale()
.
-
ngridDivs
public static float ngridDivs(long struct)
Unsafe version ofgridDivs()
.
-
ngridWidth
public static float ngridWidth(long struct)
Unsafe version ofgridWidth()
.
-
ngridScale
public static float ngridScale(long struct)
Unsafe version ofgridScale()
.
-
ntransform
public static HmdMatrix44 ntransform(long struct)
Unsafe version oftransform()
.
-
nsize
public static void nsize(long struct, int value)
Unsafe version ofsize
.
-
ncurved
public static void ncurved(long struct, boolean value)
Unsafe version ofcurved
.
-
nantialias
public static void nantialias(long struct, boolean value)
Unsafe version ofantialias
.
-
nscale
public static void nscale(long struct, float value)
Unsafe version ofscale
.
-
ndistance
public static void ndistance(long struct, float value)
Unsafe version ofdistance
.
-
nalpha
public static void nalpha(long struct, float value)
Unsafe version ofalpha
.
-
nuOffset
public static void nuOffset(long struct, float value)
Unsafe version ofuOffset
.
-
nvOffset
public static void nvOffset(long struct, float value)
Unsafe version ofvOffset
.
-
nuScale
public static void nuScale(long struct, float value)
Unsafe version ofuScale
.
-
nvScale
public static void nvScale(long struct, float value)
Unsafe version ofvScale
.
-
ngridDivs
public static void ngridDivs(long struct, float value)
Unsafe version ofgridDivs
.
-
ngridWidth
public static void ngridWidth(long struct, float value)
Unsafe version ofgridWidth
.
-
ngridScale
public static void ngridScale(long struct, float value)
Unsafe version ofgridScale
.
-
ntransform
public static void ntransform(long struct, HmdMatrix44 value)
Unsafe version oftransform
.
-
-