Class RenderingContext

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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • fb

        public 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
    • Constructor Detail

      • RenderingContext

        public RenderingContext()
    • Method Detail

      • w

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

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

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

        public boolean isCubemap()