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.NativeResourceLayout
struct Compositor_StageRenderSettings {HmdColor_tm_PrimaryColor();HmdColor_tm_SecondaryColor; floatm_flVignetteInnerRadius(); float m_flVignetteOuterRadius; floatm_flFresnelStrength(); boolm_bBackfaceCulling(); boolm_bGreyscale(); boolm_bWireframe(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompositorStageRenderSettings.BufferAn array ofCompositorStageRenderSettingsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_BBACKFACECULLING
M_BGREYSCALE
M_BWIREFRAME
M_FLFRESNELSTRENGTH
M_FLVIGNETTEINNERRADIUS
M_FLVIGNETTEOUTERRADIUS
M_PRIMARYCOLOR
M_SECONDARYCOLORThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CompositorStageRenderSettings(java.nio.ByteBuffer container)Creates aCompositorStageRenderSettingsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompositorStageRenderSettingscalloc()Returns a newCompositorStageRenderSettingsinstance allocated withmemCalloc.static CompositorStageRenderSettings.Buffercalloc(int capacity)Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemCalloc.static CompositorStageRenderSettings.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorStageRenderSettingscalloc(org.lwjgl.system.MemoryStack stack)Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CompositorStageRenderSettingscreate()Returns a newCompositorStageRenderSettingsinstance allocated withBufferUtils.static CompositorStageRenderSettings.Buffercreate(int capacity)Returns a newCompositorStageRenderSettings.Bufferinstance allocated withBufferUtils.static CompositorStageRenderSettingscreate(long address)Returns a newCompositorStageRenderSettingsinstance for the specified memory address.static CompositorStageRenderSettings.Buffercreate(long address, int capacity)Create aCompositorStageRenderSettings.Bufferinstance at the specified memory.static CompositorStageRenderSettingscreateSafe(long address)static CompositorStageRenderSettings.BuffercreateSafe(long address, int capacity)booleanm_bBackfaceCulling()Controls backface culling.booleanm_bGreyscale()Converts the render model's texture to luma and applies to rgb equally.booleanm_bWireframe()Renders mesh as a wireframe.floatm_flFresnelStrength()Fades to the secondary color based on view incidence.floatm_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.floatm_flVignetteOuterRadius()HmdColorm_PrimaryColor()Primary color is applied as a tint to (i.e.HmdColorm_SecondaryColor()static CompositorStageRenderSettingsmalloc()Returns a newCompositorStageRenderSettingsinstance allocated withmemAlloc.static CompositorStageRenderSettings.Buffermalloc(int capacity)Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemAlloc.static CompositorStageRenderSettings.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStack.static CompositorStageRenderSettingsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStack.static booleannm_bBackfaceCulling(long struct)Unsafe version ofm_bBackfaceCulling().static booleannm_bGreyscale(long struct)Unsafe version ofm_bGreyscale().static booleannm_bWireframe(long struct)Unsafe version ofm_bWireframe().static floatnm_flFresnelStrength(long struct)Unsafe version ofm_flFresnelStrength().static floatnm_flVignetteInnerRadius(long struct)Unsafe version ofm_flVignetteInnerRadius().static floatnm_flVignetteOuterRadius(long struct)Unsafe version ofm_flVignetteOuterRadius().static HmdColornm_PrimaryColor(long struct)Unsafe version ofm_PrimaryColor().static HmdColornm_SecondaryColor(long struct)Unsafe version ofm_SecondaryColor().intsizeof()
-
-
-
Constructor Detail
-
CompositorStageRenderSettings
public CompositorStageRenderSettings(java.nio.ByteBuffer container)
Creates aCompositorStageRenderSettingsinstance 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
-
m_PrimaryColor
public HmdColor m_PrimaryColor()
Primary color is applied as a tint to (i.e. multiplied with) the model's texture.
-
m_SecondaryColor
public HmdColor m_SecondaryColor()
- Returns:
- a
HmdColorview of them_SecondaryColorfield.
-
m_flVignetteInnerRadius
public float 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_flVignetteOuterRadius
public float m_flVignetteOuterRadius()
- Returns:
- the value of the
m_flVignetteOuterRadiusfield.
-
m_flFresnelStrength
public float 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
public boolean m_bBackfaceCulling()
Controls backface culling.
-
m_bGreyscale
public boolean 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
public boolean m_bWireframe()
Renders mesh as a wireframe.
-
malloc
public static CompositorStageRenderSettings malloc()
Returns a newCompositorStageRenderSettingsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CompositorStageRenderSettings calloc()
Returns a newCompositorStageRenderSettingsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CompositorStageRenderSettings create()
Returns a newCompositorStageRenderSettingsinstance allocated withBufferUtils.
-
create
public static CompositorStageRenderSettings create(long address)
Returns a newCompositorStageRenderSettingsinstance for the specified memory address.
-
createSafe
@Nullable public static CompositorStageRenderSettings createSafe(long address)
-
malloc
public static CompositorStageRenderSettings.Buffer malloc(int capacity)
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CompositorStageRenderSettings.Buffer calloc(int capacity)
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorStageRenderSettings.Buffer create(int capacity)
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CompositorStageRenderSettings.Buffer create(long address, int capacity)
Create aCompositorStageRenderSettings.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CompositorStageRenderSettings.Buffer createSafe(long address, int capacity)
-
malloc
public static CompositorStageRenderSettings malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CompositorStageRenderSettings calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CompositorStageRenderSettings.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CompositorStageRenderSettings.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
-