Package org.lwjgl.openvr
Class CompositorStageRenderSettings
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CompositorStageRenderSettings>
org.lwjgl.openvr.CompositorStageRenderSettings
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CompositorStageRenderSettings
extends org.lwjgl.system.Struct<CompositorStageRenderSettings>
implements org.lwjgl.system.NativeResource
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 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 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.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCompositorStageRenderSettings(ByteBuffer container) Creates aCompositorStageRenderSettingsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newCompositorStageRenderSettingsinstance allocated withmemCalloc.calloc(int capacity) Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newCompositorStageRenderSettingsinstance allocated withBufferUtils.create(int capacity) Returns a newCompositorStageRenderSettings.Bufferinstance allocated withBufferUtils.create(long address) Returns a newCompositorStageRenderSettingsinstance for the specified memory address.create(long address, int capacity) Create aCompositorStageRenderSettings.Bufferinstance at the specified memory.static @Nullable CompositorStageRenderSettingscreateSafe(long address) static @Nullable CompositorStageRenderSettings.BuffercreateSafe(long address, int capacity) booleanControls backface culling.booleanConverts the render model's texture to luma and applies to rgb equally.booleanRenders mesh as a wireframe.floatFades to the secondary color based on view incidence.floatVignette 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.floatPrimary color is applied as a tint to (i.e.malloc()Returns a newCompositorStageRenderSettingsinstance allocated withmemAlloc.malloc(int capacity) Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCompositorStageRenderSettings.Bufferinstance allocated on the specifiedMemoryStack.malloc(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()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. -
M_PRIMARYCOLOR
public static final int M_PRIMARYCOLORThe struct member offsets. -
M_SECONDARYCOLOR
public static final int M_SECONDARYCOLORThe struct member offsets. -
M_FLVIGNETTEINNERRADIUS
public static final int M_FLVIGNETTEINNERRADIUSThe struct member offsets. -
M_FLVIGNETTEOUTERRADIUS
public static final int M_FLVIGNETTEOUTERRADIUSThe struct member offsets. -
M_FLFRESNELSTRENGTH
public static final int M_FLFRESNELSTRENGTHThe struct member offsets. -
M_BBACKFACECULLING
public static final int M_BBACKFACECULLINGThe struct member offsets. -
M_BGREYSCALE
public static final int M_BGREYSCALEThe struct member offsets. -
M_BWIREFRAME
public static final int M_BWIREFRAMEThe struct member offsets.
-
-
Constructor Details
-
CompositorStageRenderSettings
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CompositorStageRenderSettings>
-
m_PrimaryColor
Primary color is applied as a tint to (i.e. multiplied with) the model's texture. -
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
Returns a newCompositorStageRenderSettingsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCompositorStageRenderSettingsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCompositorStageRenderSettingsinstance allocated withBufferUtils. -
create
Returns a newCompositorStageRenderSettingsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCompositorStageRenderSettings.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCompositorStageRenderSettings.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCompositorStageRenderSettingsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_PrimaryColor
Unsafe version ofm_PrimaryColor(). -
nm_SecondaryColor
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().
-