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();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • M_PRIMARYCOLOR

      public static final int M_PRIMARYCOLOR
      The struct member offsets.
    • M_SECONDARYCOLOR

      public static final int M_SECONDARYCOLOR
      The struct member offsets.
    • M_FLVIGNETTEINNERRADIUS

      public static final int M_FLVIGNETTEINNERRADIUS
      The struct member offsets.
    • M_FLVIGNETTEOUTERRADIUS

      public static final int M_FLVIGNETTEOUTERRADIUS
      The struct member offsets.
    • M_FLFRESNELSTRENGTH

      public static final int M_FLFRESNELSTRENGTH
      The struct member offsets.
    • M_BBACKFACECULLING

      public static final int M_BBACKFACECULLING
      The struct member offsets.
    • M_BGREYSCALE

      public static final int M_BGREYSCALE
      The struct member offsets.
    • M_BWIREFRAME

      public static final int M_BWIREFRAME
      The struct member offsets.
  • Constructor Details

    • CompositorStageRenderSettings

      public CompositorStageRenderSettings(ByteBuffer container)
      Creates a CompositorStageRenderSettings instance at the current position of the specified ByteBuffer 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CompositorStageRenderSettings>
    • 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 HmdColor view of the m_SecondaryColor field.
    • 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_flVignetteOuterRadius field.
    • 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 new CompositorStageRenderSettings instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static CompositorStageRenderSettings calloc()
      Returns a new CompositorStageRenderSettings instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static CompositorStageRenderSettings create()
      Returns a new CompositorStageRenderSettings instance allocated with BufferUtils.
    • create

      public static CompositorStageRenderSettings create(long address)
      Returns a new CompositorStageRenderSettings instance for the specified memory address.
    • createSafe

      public static @Nullable CompositorStageRenderSettings createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static CompositorStageRenderSettings.Buffer malloc(int capacity)
      Returns a new CompositorStageRenderSettings.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CompositorStageRenderSettings.Buffer calloc(int capacity)
      Returns a new CompositorStageRenderSettings.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CompositorStageRenderSettings.Buffer create(int capacity)
      Returns a new CompositorStageRenderSettings.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CompositorStageRenderSettings.Buffer create(long address, int capacity)
      Create a CompositorStageRenderSettings.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CompositorStageRenderSettings.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static CompositorStageRenderSettings malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CompositorStageRenderSettings instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static CompositorStageRenderSettings calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CompositorStageRenderSettings instance allocated on the specified MemoryStack and 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 new CompositorStageRenderSettings.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static CompositorStageRenderSettings.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CompositorStageRenderSettings.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nm_PrimaryColor

      public static HmdColor nm_PrimaryColor(long struct)
      Unsafe version of m_PrimaryColor().
    • nm_SecondaryColor

      public static HmdColor nm_SecondaryColor(long struct)
      Unsafe version of m_SecondaryColor().
    • nm_flVignetteInnerRadius

      public static float nm_flVignetteInnerRadius(long struct)
      Unsafe version of m_flVignetteInnerRadius().
    • nm_flVignetteOuterRadius

      public static float nm_flVignetteOuterRadius(long struct)
      Unsafe version of m_flVignetteOuterRadius().
    • nm_flFresnelStrength

      public static float nm_flFresnelStrength(long struct)
      Unsafe version of m_flFresnelStrength().
    • nm_bBackfaceCulling

      public static boolean nm_bBackfaceCulling(long struct)
      Unsafe version of m_bBackfaceCulling().
    • nm_bGreyscale

      public static boolean nm_bGreyscale(long struct)
      Unsafe version of m_bGreyscale().
    • nm_bWireframe

      public static boolean nm_bWireframe(long struct)
      Unsafe version of m_bWireframe().