Class RenderingContext

java.lang.Object
gaiasky.render.RenderingContext

public class RenderingContext
extends java.lang.Object
Holds some context information useful when rendering
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  RenderingContext.CubemapSide  
  • Field Summary

    Fields
    Modifier and Type Field Description
    RenderingContext.CubemapSide cubemapSide
    Side of the cubemap, if any
    com.badlogic.gdx.graphics.glutils.FrameBuffer fb
    In case this is not null, we are using the screenshot or frame output feature.
    IPostProcessor.PostProcessBean ppb
    The post process bean.
    float scaleFactor
    Scale factor, the ratio between the diagonal of HD resolution (1280x720) and the current resolution
    Vector3d vrOffset
    VR position offset
  • Constructor Summary

    Constructors
    Constructor Description
    RenderingContext()  
  • Method Summary

    Modifier and Type Method Description
    int h()
    Gets the height
    boolean isCubemap()  
    void set​(int w, int h)
    Sets the width and height
    int w()
    Gets the width

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ppb

      The post process bean. It may have no effects enabled.
    • fb

      public com.badlogic.gdx.graphics.glutils.FrameBuffer fb
      In case this is not null, we are using the screenshot or frame output feature. This is the renderToFile frame buffer.
    • vrOffset

      public Vector3d vrOffset
      VR position offset
    • scaleFactor

      public float scaleFactor
      Scale factor, the ratio between the diagonal of HD resolution (1280x720) and the current resolution
    • cubemapSide

      public RenderingContext.CubemapSide cubemapSide
      Side of the cubemap, if any
  • Constructor Details

    • RenderingContext

      public RenderingContext()
  • Method Details

    • w

      public int w()
      Gets the width
      Returns:
      The width in pixels
    • h

      public int h()
      Gets the height
      Returns:
      The height in pixels
    • set

      public void set​(int w, int h)
      Sets the width and height
      Parameters:
      w - The width in pixels
      h - The height in pixels
    • isCubemap

      public boolean isCubemap()