Class ARBWindowPos



  • public class ARBWindowPos
    extends java.lang.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 Detail

      • 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
      • glWindowPos2ivARB

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

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

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

        public static void glWindowPos2dvARB(java.nio.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
      • glWindowPos3ivARB

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

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

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

        public static void glWindowPos3dvARB(java.nio.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