Class ARBWindowPos

java.lang.Object
org.lwjgl.opengl.ARBWindowPos

public class ARBWindowPos extends Object
Native bindings to the ARB_window_pos extension.

In order to set the current raster position to a specific window coordinate with the RasterPos2i command, the modelview matrix, projection matrix and viewport must be set very carefully. Furthermore, if the desired window coordinate is outside of the window's bounds one must rely on a subtle side-effect of the Bitmap command in order to avoid frustum clipping.

This extension provides a set of functions to directly set the current raster position in window coordinates, bypassing the modelview matrix, the projection matrix and the viewport-to-window mapping. Furthermore, clip testing is not performed, so that the current raster position is always valid.

This greatly simplifies the process of setting the current raster position to a specific window coordinate prior to calling DrawPixels, CopyPixels or Bitmap. Many matrix operations can be avoided when mixing 2D and 3D rendering.

Promoted to core in OpenGL 1.4.

  • Method Details

    • glWindowPos2iARB

      public static void glWindowPos2iARB(int x, int y)
      Alternate way to set the current raster position. z is implictly set to 0.
      Parameters:
      x - the x value
      y - the y value
    • glWindowPos2sARB

      public static void glWindowPos2sARB(short x, short y)
      Short version of WindowPos2iARB.
      Parameters:
      x - the x value
      y - the y value
    • glWindowPos2fARB

      public static void glWindowPos2fARB(float x, float y)
      Float version of WindowPos2iARB.
      Parameters:
      x - the x value
      y - the y value
    • glWindowPos2dARB

      public static void glWindowPos2dARB(double x, double y)
      Double version of WindowPos2iARB.
      Parameters:
      x - the x value
      y - the y value
    • nglWindowPos2ivARB

      public static void nglWindowPos2ivARB(long p)
      Unsafe version of: WindowPos2ivARB
    • glWindowPos2ivARB

      public static void glWindowPos2ivARB(IntBuffer p)
      Pointer version of WindowPos2iARB.
      Parameters:
      p - the position value
    • nglWindowPos2svARB

      public static void nglWindowPos2svARB(long p)
      Unsafe version of: WindowPos2svARB
    • glWindowPos2svARB

      public static void glWindowPos2svARB(ShortBuffer p)
      Pointer version of WindowPos2sARB.
      Parameters:
      p - the position value
    • nglWindowPos2fvARB

      public static void nglWindowPos2fvARB(long p)
      Unsafe version of: WindowPos2fvARB
    • glWindowPos2fvARB

      public static void glWindowPos2fvARB(FloatBuffer p)
      Pointer version of WindowPos2fARB.
      Parameters:
      p - the position value
    • nglWindowPos2dvARB

      public static void nglWindowPos2dvARB(long p)
      Unsafe version of: WindowPos2dvARB
    • glWindowPos2dvARB

      public static void glWindowPos2dvARB(DoubleBuffer p)
      Pointer version of WindowPos2dARB.
      Parameters:
      p - the position value
    • glWindowPos3iARB

      public static void glWindowPos3iARB(int x, int y, int z)
      Alternate way to set the current raster position.
      Parameters:
      x - the x value
      y - the y value
      z - the z value
    • glWindowPos3sARB

      public static void glWindowPos3sARB(short x, short y, short z)
      Short version of WindowPos3iARB.
      Parameters:
      x - the x value
      y - the y value
      z - the z value
    • glWindowPos3fARB

      public static void glWindowPos3fARB(float x, float y, float z)
      Float version of WindowPos3iARB.
      Parameters:
      x - the x value
      y - the y value
      z - the z value
    • glWindowPos3dARB

      public static void glWindowPos3dARB(double x, double y, double z)
      Double version of WindowPos3iARB.
      Parameters:
      x - the x value
      y - the y value
      z - the z value
    • nglWindowPos3ivARB

      public static void nglWindowPos3ivARB(long p)
      Unsafe version of: WindowPos3ivARB
    • glWindowPos3ivARB

      public static void glWindowPos3ivARB(IntBuffer p)
      Pointer version of WindowPos3iARB.
      Parameters:
      p - the position value
    • nglWindowPos3svARB

      public static void nglWindowPos3svARB(long p)
      Unsafe version of: WindowPos3svARB
    • glWindowPos3svARB

      public static void glWindowPos3svARB(ShortBuffer p)
      Pointer version of WindowPos3sARB.
      Parameters:
      p - the position value
    • nglWindowPos3fvARB

      public static void nglWindowPos3fvARB(long p)
      Unsafe version of: WindowPos3fvARB
    • glWindowPos3fvARB

      public static void glWindowPos3fvARB(FloatBuffer p)
      Pointer version of WindowPos3fARB.
      Parameters:
      p - the position value
    • nglWindowPos3dvARB

      public static void nglWindowPos3dvARB(long p)
      Unsafe version of: WindowPos3dvARB
    • glWindowPos3dvARB

      public static void glWindowPos3dvARB(DoubleBuffer p)
      Pointer version of WindowPos3dARB.
      Parameters:
      p - the position value
    • glWindowPos2ivARB

      public static void glWindowPos2ivARB(int[] p)
      Array version of: WindowPos2ivARB
    • glWindowPos2svARB

      public static void glWindowPos2svARB(short[] p)
      Array version of: WindowPos2svARB
    • glWindowPos2fvARB

      public static void glWindowPos2fvARB(float[] p)
      Array version of: WindowPos2fvARB
    • glWindowPos2dvARB

      public static void glWindowPos2dvARB(double[] p)
      Array version of: WindowPos2dvARB
    • glWindowPos3ivARB

      public static void glWindowPos3ivARB(int[] p)
      Array version of: WindowPos3ivARB
    • glWindowPos3svARB

      public static void glWindowPos3svARB(short[] p)
      Array version of: WindowPos3svARB
    • glWindowPos3fvARB

      public static void glWindowPos3fvARB(float[] p)
      Array version of: WindowPos3fvARB
    • glWindowPos3dvARB

      public static void glWindowPos3dvARB(double[] p)
      Array version of: WindowPos3dvARB