Package org.lwjgl.openvr
Class CompositorStageRenderSettings
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.CompositorStageRenderSettings
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CompositorStageRenderSettings extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
m_PrimaryColor
– Primary color is applied as a tint to (i.e. multiplied with) the model's texture.m_flVignetteInnerRadius
– Vignette radius is in meters and is used to fade to the specified secondary solid color over that 3D distance from the origin of the playspace.m_flFresnelStrength
– Fades to the secondary color based on view incidence.This variable controls the linearity of the effect. It is mutually exclusive with vignette. Additionally, it treats the mesh as faceted.
m_bBackfaceCulling
– Controls backface culling.m_bGreyscale
– Converts the render model's texture to luma and applies to rgb equally.This is useful to combat compression artifacts that can occur on desaturated source material.
m_bWireframe
– Renders mesh as a wireframe.
Layout
struct Compositor_StageRenderSettings {
HmdColor_t
m_PrimaryColor;HmdColor_t
m_SecondaryColor; float m_flVignetteInnerRadius; float m_flVignetteOuterRadius; float m_flFresnelStrength; bool m_bBackfaceCulling; bool m_bGreyscale; bool m_bWireframe; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositorStageRenderSettings.Buffer
An array ofCompositorStageRenderSettings
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_BBACKFACECULLING
M_BGREYSCALE
M_BWIREFRAME
M_FLFRESNELSTRENGTH
M_FLVIGNETTEINNERRADIUS
M_FLVIGNETTEOUTERRADIUS
M_PRIMARYCOLOR
M_SECONDARYCOLORThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CompositorStageRenderSettings(java.nio.ByteBuffer container)
Creates aCompositorStageRenderSettings
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 CompositorStageRenderSettings
calloc()
Returns a newCompositorStageRenderSettings
instance allocated withmemCalloc
.static CompositorStageRenderSettings.Buffer
calloc(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withmemCalloc
.static CompositorStageRenderSettings
callocStack()
Returns a newCompositorStageRenderSettings
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorStageRenderSettings.Buffer
callocStack(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CompositorStageRenderSettings.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorStageRenderSettings
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CompositorStageRenderSettings
create()
Returns a newCompositorStageRenderSettings
instance allocated withBufferUtils
.static CompositorStageRenderSettings.Buffer
create(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withBufferUtils
.static CompositorStageRenderSettings
create(long address)
Returns a newCompositorStageRenderSettings
instance for the specified memory address.static CompositorStageRenderSettings.Buffer
create(long address, int capacity)
Create aCompositorStageRenderSettings.Buffer
instance at the specified memory.static CompositorStageRenderSettings
createSafe(long address)
static CompositorStageRenderSettings.Buffer
createSafe(long address, int capacity)
boolean
m_bBackfaceCulling()
Returns the value of them_bBackfaceCulling
field.boolean
m_bGreyscale()
Returns the value of them_bGreyscale
field.boolean
m_bWireframe()
Returns the value of them_bWireframe
field.float
m_flFresnelStrength()
Returns the value of them_flFresnelStrength
field.float
m_flVignetteInnerRadius()
Returns the value of them_flVignetteInnerRadius
field.float
m_flVignetteOuterRadius()
Returns the value of them_flVignetteOuterRadius
field.HmdColor
m_PrimaryColor()
Returns aHmdColor
view of them_PrimaryColor
field.HmdColor
m_SecondaryColor()
Returns aHmdColor
view of them_SecondaryColor
field.static CompositorStageRenderSettings
malloc()
Returns a newCompositorStageRenderSettings
instance allocated withmemAlloc
.static CompositorStageRenderSettings.Buffer
malloc(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withmemAlloc
.static CompositorStageRenderSettings
mallocStack()
Returns a newCompositorStageRenderSettings
instance allocated on the thread-localMemoryStack
.static CompositorStageRenderSettings.Buffer
mallocStack(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the thread-localMemoryStack
.static CompositorStageRenderSettings.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the specifiedMemoryStack
.static CompositorStageRenderSettings
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings
instance allocated on the specifiedMemoryStack
.static boolean
nm_bBackfaceCulling(long struct)
Unsafe version ofm_bBackfaceCulling()
.static boolean
nm_bGreyscale(long struct)
Unsafe version ofm_bGreyscale()
.static boolean
nm_bWireframe(long struct)
Unsafe version ofm_bWireframe()
.static float
nm_flFresnelStrength(long struct)
Unsafe version ofm_flFresnelStrength()
.static float
nm_flVignetteInnerRadius(long struct)
Unsafe version ofm_flVignetteInnerRadius()
.static float
nm_flVignetteOuterRadius(long struct)
Unsafe version ofm_flVignetteOuterRadius()
.static HmdColor
nm_PrimaryColor(long struct)
Unsafe version ofm_PrimaryColor()
.static HmdColor
nm_SecondaryColor(long struct)
Unsafe version ofm_SecondaryColor()
.int
sizeof()
-
-
-
Constructor Detail
-
CompositorStageRenderSettings
public CompositorStageRenderSettings(java.nio.ByteBuffer container)
Creates aCompositorStageRenderSettings
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
-
m_PrimaryColor
public HmdColor m_PrimaryColor()
Returns aHmdColor
view of them_PrimaryColor
field.
-
m_SecondaryColor
public HmdColor m_SecondaryColor()
Returns aHmdColor
view of them_SecondaryColor
field.
-
m_flVignetteInnerRadius
public float m_flVignetteInnerRadius()
Returns the value of them_flVignetteInnerRadius
field.
-
m_flVignetteOuterRadius
public float m_flVignetteOuterRadius()
Returns the value of them_flVignetteOuterRadius
field.
-
m_flFresnelStrength
public float m_flFresnelStrength()
Returns the value of them_flFresnelStrength
field.
-
m_bBackfaceCulling
public boolean m_bBackfaceCulling()
Returns the value of them_bBackfaceCulling
field.
-
m_bGreyscale
public boolean m_bGreyscale()
Returns the value of them_bGreyscale
field.
-
m_bWireframe
public boolean m_bWireframe()
Returns the value of them_bWireframe
field.
-
malloc
public static CompositorStageRenderSettings malloc()
Returns a newCompositorStageRenderSettings
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CompositorStageRenderSettings calloc()
Returns a newCompositorStageRenderSettings
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CompositorStageRenderSettings create()
Returns a newCompositorStageRenderSettings
instance allocated withBufferUtils
.
-
create
public static CompositorStageRenderSettings create(long address)
Returns a newCompositorStageRenderSettings
instance for the specified memory address.
-
createSafe
@Nullable public static CompositorStageRenderSettings createSafe(long address)
-
malloc
public static CompositorStageRenderSettings.Buffer malloc(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CompositorStageRenderSettings.Buffer calloc(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorStageRenderSettings.Buffer create(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CompositorStageRenderSettings.Buffer create(long address, int capacity)
Create aCompositorStageRenderSettings.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CompositorStageRenderSettings.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CompositorStageRenderSettings mallocStack()
Returns a newCompositorStageRenderSettings
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CompositorStageRenderSettings callocStack()
Returns a newCompositorStageRenderSettings
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CompositorStageRenderSettings mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CompositorStageRenderSettings callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CompositorStageRenderSettings.Buffer mallocStack(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CompositorStageRenderSettings.Buffer callocStack(int capacity)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CompositorStageRenderSettings.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CompositorStageRenderSettings.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nm_PrimaryColor
public static HmdColor nm_PrimaryColor(long struct)
Unsafe version ofm_PrimaryColor()
.
-
nm_SecondaryColor
public static HmdColor nm_SecondaryColor(long struct)
Unsafe version ofm_SecondaryColor()
.
-
nm_flVignetteInnerRadius
public static float nm_flVignetteInnerRadius(long struct)
Unsafe version ofm_flVignetteInnerRadius()
.
-
nm_flVignetteOuterRadius
public static float nm_flVignetteOuterRadius(long struct)
Unsafe version ofm_flVignetteOuterRadius()
.
-
nm_flFresnelStrength
public static float nm_flFresnelStrength(long struct)
Unsafe version ofm_flFresnelStrength()
.
-
nm_bBackfaceCulling
public static boolean nm_bBackfaceCulling(long struct)
Unsafe version ofm_bBackfaceCulling()
.
-
nm_bGreyscale
public static boolean nm_bGreyscale(long struct)
Unsafe version ofm_bGreyscale()
.
-
nm_bWireframe
public static boolean nm_bWireframe(long struct)
Unsafe version ofm_bWireframe()
.
-
-