Class GLViewport

java.lang.Object
org.oscim.map.Viewport
org.oscim.renderer.GLViewport

public class GLViewport extends Viewport
  • Field Details

    • viewproj

      public final GLMatrix viewproj
      Do not modify!
    • proj

      public final GLMatrix proj
      Do not modify!
    • view

      public final GLMatrix view
      Do not modify!
    • plane

      public final float[] plane
      Do not modify!
    • mvp

      public final GLMatrix mvp
      For temporary use, to setup MVP-Matrix
    • pos

      public final MapPosition pos
    • changed

      protected boolean changed
  • Constructor Details

    • GLViewport

      public GLViewport()
  • Method Details

    • useScreenCoordinates

      public void useScreenCoordinates(boolean center, float scale)
      Set MVP so that coordinates are in screen pixel coordinates with 0,0 being center
    • useScreenCoordinates

      public void useScreenCoordinates(int width, int height, GLViewport.Position position, float xOffset, float yOffset, float scale)
      Set MVP so that coordinates are in screen pixel coordinates with 0,0 being center
    • changed

      public boolean changed()
    • getWidth

      public float getWidth()
      Returns:
      width in pixels
    • getHeight

      public float getHeight()
      Returns:
      height in pixels