Class gl_viewport

java.lang.Object
jgl.context.attrib.gl_viewport

public class gl_viewport extends Object
gl_viewport is the viewport class of jGL 2.4.
Version:
0.2, 15 Mar 2001
Author:
Robin Bing-Yu Chen
  • Field Details

    • X

      public int X
      GL_VIEWPORT: Viewport origin and extent
    • Y

      public int Y
    • Width

      public int Width
    • Height

      public int Height
    • Size

      public int Size
    • Near

      public float Near
      GL_DEPTH_RANGE: Depth range near and far
    • Far

      public float Far
    • Sx

      public float Sx
    • Sy

      public float Sy
    • Sz

      public float Sz
    • Tx

      public float Tx
    • Ty

      public float Ty
    • Tz

      public float Tz
  • Constructor Details

    • gl_viewport

      public gl_viewport(gl_viewport cc)
    • gl_viewport

      public gl_viewport()
  • Method Details

    • set_viewport

      public void set_viewport(int x, int y, int width, int height)
    • set_depth_range

      public void set_depth_range(float n, float f)
    • Transformation

      public float[] Transformation(float[] NDC)
      Viewport Transformation from normalized dievice coord. to win. coord.