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..
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static void | |
| public static native void | glWindowPos2iARB(int
the x value x, int the y value y)Alternate way to set the current raster position. |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static void | |
| public static native void | glWindowPos3dARB(double
the x value x, double the y value y, double the z value z)Double version of |
| public static void | |
| public static void | |
| public static native void | glWindowPos3fARB(float
the x value x, float the y value y, float the z value z)Float version of |
| public static void | |
| public static void | |
| public static native void | glWindowPos3iARB(int
the x value x, int the y value y, int the z value z)Alternate way to set the current raster position. |
| public static void | |
| public static void | |
| public static native void | glWindowPos3sARB(short
the x value x, short the y value y, short the z value z)Short version of |
| public static void | |
| public static void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void |
| ARBWindowPos | back to summary |
|---|---|
| protected ARBWindowPos() | |
| glWindowPos2dARB | back to summary |
|---|---|
| public static native void glWindowPos2dARB(double x, double y) Double version of
| |
| glWindowPos2dvARB | back to summary |
|---|---|
| public static void glWindowPos2dvARB(DoubleBuffer p) Pointer version of
| |
| glWindowPos2dvARB | back to summary |
|---|---|
| public static void glWindowPos2dvARB(double[] p) Array version of: | |
| glWindowPos2fARB | back to summary |
|---|---|
| public static native void glWindowPos2fARB(float x, float y) Float version of
| |
| glWindowPos2fvARB | back to summary |
|---|---|
| public static void glWindowPos2fvARB(FloatBuffer p) Pointer version of
| |
| glWindowPos2fvARB | back to summary |
|---|---|
| public static void glWindowPos2fvARB(float[] p) Array version of: | |
| glWindowPos2iARB | back to summary |
|---|---|
| public static native void glWindowPos2iARB(int x, int y) Alternate way to set the current raster position.
| |
| glWindowPos2ivARB | back to summary |
|---|---|
| public static void glWindowPos2ivARB(IntBuffer p) Pointer version of
| |
| glWindowPos2ivARB | back to summary |
|---|---|
| public static void glWindowPos2ivARB(int[] p) Array version of: | |
| glWindowPos2sARB | back to summary |
|---|---|
| public static native void glWindowPos2sARB(short x, short y) Short version of
| |
| glWindowPos2svARB | back to summary |
|---|---|
| public static void glWindowPos2svARB(ShortBuffer p) Pointer version of
| |
| glWindowPos2svARB | back to summary |
|---|---|
| public static void glWindowPos2svARB(short[] p) Array version of: | |
| glWindowPos3dARB | back to summary |
|---|---|
| public static native void glWindowPos3dARB(double x, double y, double z) Double version of
| |
| glWindowPos3dvARB | back to summary |
|---|---|
| public static void glWindowPos3dvARB(DoubleBuffer p) Pointer version of
| |
| glWindowPos3dvARB | back to summary |
|---|---|
| public static void glWindowPos3dvARB(double[] p) Array version of: | |
| glWindowPos3fARB | back to summary |
|---|---|
| public static native void glWindowPos3fARB(float x, float y, float z) Float version of
| |
| glWindowPos3fvARB | back to summary |
|---|---|
| public static void glWindowPos3fvARB(FloatBuffer p) Pointer version of
| |
| glWindowPos3fvARB | back to summary |
|---|---|
| public static void glWindowPos3fvARB(float[] p) Array version of: | |
| glWindowPos3iARB | back to summary |
|---|---|
| public static native void glWindowPos3iARB(int x, int y, int z) Alternate way to set the current raster position.
| |
| glWindowPos3ivARB | back to summary |
|---|---|
| public static void glWindowPos3ivARB(IntBuffer p) Pointer version of
| |
| glWindowPos3ivARB | back to summary |
|---|---|
| public static void glWindowPos3ivARB(int[] p) Array version of: | |
| glWindowPos3sARB | back to summary |
|---|---|
| public static native void glWindowPos3sARB(short x, short y, short z) Short version of
| |
| glWindowPos3svARB | back to summary |
|---|---|
| public static void glWindowPos3svARB(ShortBuffer p) Pointer version of
| |
| glWindowPos3svARB | back to summary |
|---|---|
| public static void glWindowPos3svARB(short[] p) Array version of: | |
| nglWindowPos2dvARB | back to summary |
|---|---|
| public static native void nglWindowPos2dvARB(long p) Unsafe version of: | |
| nglWindowPos2fvARB | back to summary |
|---|---|
| public static native void nglWindowPos2fvARB(long p) Unsafe version of: | |
| nglWindowPos2ivARB | back to summary |
|---|---|
| public static native void nglWindowPos2ivARB(long p) Unsafe version of: | |
| nglWindowPos2svARB | back to summary |
|---|---|
| public static native void nglWindowPos2svARB(long p) Unsafe version of: | |
| nglWindowPos3dvARB | back to summary |
|---|---|
| public static native void nglWindowPos3dvARB(long p) Unsafe version of: | |
| nglWindowPos3fvARB | back to summary |
|---|---|
| public static native void nglWindowPos3fvARB(long p) Unsafe version of: | |
| nglWindowPos3ivARB | back to summary |
|---|---|
| public static native void nglWindowPos3ivARB(long p) Unsafe version of: | |
| nglWindowPos3svARB | back to summary |
|---|---|
| public static native void nglWindowPos3svARB(long p) Unsafe version of: | |