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.NativeResourceAllows 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_ttransform; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositorOverlaySettings.BufferAn array ofCompositorOverlaySettingsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALPHA
ANTIALIAS
CURVED
DISTANCE
GRIDDIVS
GRIDSCALE
GRIDWIDTH
SCALE
SIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTRANSFORM
UOFFSET
USCALE
VOFFSET
VSCALEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CompositorOverlaySettings(java.nio.ByteBuffer container)Creates aCompositorOverlaySettingsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatalpha()Returns the value of thealphafield.CompositorOverlaySettingsalpha(float value)Sets the specified value to thealphafield.booleanantialias()Returns the value of theantialiasfield.CompositorOverlaySettingsantialias(boolean value)Sets the specified value to theantialiasfield.static CompositorOverlaySettingscalloc()Returns a newCompositorOverlaySettingsinstance allocated withmemCalloc.static CompositorOverlaySettings.Buffercalloc(int capacity)Returns a newCompositorOverlaySettings.Bufferinstance allocated withmemCalloc.static CompositorOverlaySettingscallocStack()Returns a newCompositorOverlaySettingsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CompositorOverlaySettings.BuffercallocStack(int capacity)Returns a newCompositorOverlaySettings.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CompositorOverlaySettings.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorOverlaySettings.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorOverlaySettingscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCompositorOverlaySettingsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorOverlaySettingscreate()Returns a newCompositorOverlaySettingsinstance allocated withBufferUtils.static CompositorOverlaySettings.Buffercreate(int capacity)Returns a newCompositorOverlaySettings.Bufferinstance allocated withBufferUtils.static CompositorOverlaySettingscreate(long address)Returns a newCompositorOverlaySettingsinstance for the specified memory address.static CompositorOverlaySettings.Buffercreate(long address, int capacity)Create aCompositorOverlaySettings.Bufferinstance at the specified memory.static CompositorOverlaySettingscreateSafe(long address)static CompositorOverlaySettings.BuffercreateSafe(long address, int capacity)booleancurved()Returns the value of thecurvedfield.CompositorOverlaySettingscurved(boolean value)Sets the specified value to thecurvedfield.floatdistance()Returns the value of thedistancefield.CompositorOverlaySettingsdistance(float value)Sets the specified value to thedistancefield.floatgridDivs()Returns the value of thegridDivsfield.CompositorOverlaySettingsgridDivs(float value)Sets the specified value to thegridDivsfield.floatgridScale()Returns the value of thegridScalefield.CompositorOverlaySettingsgridScale(float value)Sets the specified value to thegridScalefield.floatgridWidth()Returns the value of thegridWidthfield.CompositorOverlaySettingsgridWidth(float value)Sets the specified value to thegridWidthfield.static CompositorOverlaySettingsmalloc()Returns a newCompositorOverlaySettingsinstance allocated withmemAlloc.static CompositorOverlaySettings.Buffermalloc(int capacity)Returns a newCompositorOverlaySettings.Bufferinstance allocated withmemAlloc.static CompositorOverlaySettingsmallocStack()Returns a newCompositorOverlaySettingsinstance allocated on the thread-localMemoryStack.static CompositorOverlaySettings.BuffermallocStack(int capacity)Returns a newCompositorOverlaySettings.Bufferinstance allocated on the thread-localMemoryStack.static CompositorOverlaySettings.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorOverlaySettings.Bufferinstance allocated on the specifiedMemoryStack.static CompositorOverlaySettingsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCompositorOverlaySettingsinstance allocated on the specifiedMemoryStack.static floatnalpha(long struct)Unsafe version ofalpha().static voidnalpha(long struct, float value)Unsafe version ofalpha.static booleannantialias(long struct)Unsafe version ofantialias().static voidnantialias(long struct, boolean value)Unsafe version ofantialias.static booleanncurved(long struct)Unsafe version ofcurved().static voidncurved(long struct, boolean value)Unsafe version ofcurved.static floatndistance(long struct)Unsafe version ofdistance().static voidndistance(long struct, float value)Unsafe version ofdistance.static floatngridDivs(long struct)Unsafe version ofgridDivs().static voidngridDivs(long struct, float value)Unsafe version ofgridDivs.static floatngridScale(long struct)Unsafe version ofgridScale().static voidngridScale(long struct, float value)Unsafe version ofgridScale.static floatngridWidth(long struct)Unsafe version ofgridWidth().static voidngridWidth(long struct, float value)Unsafe version ofgridWidth.static floatnscale(long struct)Unsafe version ofscale().static voidnscale(long struct, float value)Unsafe version ofscale.static intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Unsafe version ofsize.static HmdMatrix44ntransform(long struct)Unsafe version oftransform().static voidntransform(long struct, HmdMatrix44 value)Unsafe version oftransform.static floatnuOffset(long struct)Unsafe version ofuOffset().static voidnuOffset(long struct, float value)Unsafe version ofuOffset.static floatnuScale(long struct)Unsafe version ofuScale().static voidnuScale(long struct, float value)Unsafe version ofuScale.static floatnvOffset(long struct)Unsafe version ofvOffset().static voidnvOffset(long struct, float value)Unsafe version ofvOffset.static floatnvScale(long struct)Unsafe version ofvScale().static voidnvScale(long struct, float value)Unsafe version ofvScale.floatscale()Returns the value of thescalefield.CompositorOverlaySettingsscale(float value)Sets the specified value to thescalefield.CompositorOverlaySettingsset(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.CompositorOverlaySettingsset(CompositorOverlaySettings src)Copies the specified struct data to this struct.intsize()Returns the value of thesizefield.CompositorOverlaySettingssize(int value)Sets the specified value to thesizefield.intsizeof()HmdMatrix44transform()Returns aHmdMatrix44view of thetransformfield.CompositorOverlaySettingstransform(java.util.function.Consumer<HmdMatrix44> consumer)Passes thetransformfield to the specifiedConsumer.CompositorOverlaySettingstransform(HmdMatrix44 value)Copies the specifiedHmdMatrix44to thetransformfield.floatuOffset()Returns the value of theuOffsetfield.CompositorOverlaySettingsuOffset(float value)Sets the specified value to theuOffsetfield.floatuScale()Returns the value of theuScalefield.CompositorOverlaySettingsuScale(float value)Sets the specified value to theuScalefield.floatvOffset()Returns the value of thevOffsetfield.CompositorOverlaySettingsvOffset(float value)Sets the specified value to thevOffsetfield.floatvScale()Returns the value of thevScalefield.CompositorOverlaySettingsvScale(float value)Sets the specified value to thevScalefield.
-
-
-
Constructor Detail
-
CompositorOverlaySettings
public CompositorOverlaySettings(java.nio.ByteBuffer container)
Creates aCompositorOverlaySettingsinstance 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
-
size
public int size()
Returns the value of thesizefield.
-
curved
public boolean curved()
Returns the value of thecurvedfield.
-
antialias
public boolean antialias()
Returns the value of theantialiasfield.
-
scale
public float scale()
Returns the value of thescalefield.
-
distance
public float distance()
Returns the value of thedistancefield.
-
alpha
public float alpha()
Returns the value of thealphafield.
-
uOffset
public float uOffset()
Returns the value of theuOffsetfield.
-
vOffset
public float vOffset()
Returns the value of thevOffsetfield.
-
uScale
public float uScale()
Returns the value of theuScalefield.
-
vScale
public float vScale()
Returns the value of thevScalefield.
-
gridDivs
public float gridDivs()
Returns the value of thegridDivsfield.
-
gridWidth
public float gridWidth()
Returns the value of thegridWidthfield.
-
gridScale
public float gridScale()
Returns the value of thegridScalefield.
-
transform
public HmdMatrix44 transform()
Returns aHmdMatrix44view of thetransformfield.
-
size
public CompositorOverlaySettings size(int value)
Sets the specified value to thesizefield.
-
curved
public CompositorOverlaySettings curved(boolean value)
Sets the specified value to thecurvedfield.
-
antialias
public CompositorOverlaySettings antialias(boolean value)
Sets the specified value to theantialiasfield.
-
scale
public CompositorOverlaySettings scale(float value)
Sets the specified value to thescalefield.
-
distance
public CompositorOverlaySettings distance(float value)
Sets the specified value to thedistancefield.
-
alpha
public CompositorOverlaySettings alpha(float value)
Sets the specified value to thealphafield.
-
uOffset
public CompositorOverlaySettings uOffset(float value)
Sets the specified value to theuOffsetfield.
-
vOffset
public CompositorOverlaySettings vOffset(float value)
Sets the specified value to thevOffsetfield.
-
uScale
public CompositorOverlaySettings uScale(float value)
Sets the specified value to theuScalefield.
-
vScale
public CompositorOverlaySettings vScale(float value)
Sets the specified value to thevScalefield.
-
gridDivs
public CompositorOverlaySettings gridDivs(float value)
Sets the specified value to thegridDivsfield.
-
gridWidth
public CompositorOverlaySettings gridWidth(float value)
Sets the specified value to thegridWidthfield.
-
gridScale
public CompositorOverlaySettings gridScale(float value)
Sets the specified value to thegridScalefield.
-
transform
public CompositorOverlaySettings transform(HmdMatrix44 value)
Copies the specifiedHmdMatrix44to thetransformfield.
-
transform
public CompositorOverlaySettings transform(java.util.function.Consumer<HmdMatrix44> consumer)
Passes thetransformfield 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 newCompositorOverlaySettingsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CompositorOverlaySettings calloc()
Returns a newCompositorOverlaySettingsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CompositorOverlaySettings create()
Returns a newCompositorOverlaySettingsinstance allocated withBufferUtils.
-
create
public static CompositorOverlaySettings create(long address)
Returns a newCompositorOverlaySettingsinstance for the specified memory address.
-
createSafe
@Nullable public static CompositorOverlaySettings createSafe(long address)
-
malloc
public static CompositorOverlaySettings.Buffer malloc(int capacity)
Returns a newCompositorOverlaySettings.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CompositorOverlaySettings.Buffer calloc(int capacity)
Returns a newCompositorOverlaySettings.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorOverlaySettings.Buffer create(int capacity)
Returns a newCompositorOverlaySettings.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorOverlaySettings.Buffer create(long address, int capacity)
Create aCompositorOverlaySettings.Bufferinstance 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 newCompositorOverlaySettingsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CompositorOverlaySettings callocStack()
Returns a newCompositorOverlaySettingsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CompositorOverlaySettings mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettingsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CompositorOverlaySettings callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorOverlaySettingsinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CompositorOverlaySettings.Buffer callocStack(int capacity)
Returns a newCompositorOverlaySettings.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-