Class ARBWindowPos
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 Summary
Modifier and TypeMethodDescriptionstatic voidglWindowPos2dARB(double x, double y) Double version ofWindowPos2iARB.static voidglWindowPos2dvARB(double[] p) Array version of:WindowPos2dvARBstatic voidPointer version ofWindowPos2dARB.static voidglWindowPos2fARB(float x, float y) Float version ofWindowPos2iARB.static voidglWindowPos2fvARB(float[] p) Array version of:WindowPos2fvARBstatic voidPointer version ofWindowPos2fARB.static voidglWindowPos2iARB(int x, int y) Alternate way to set the current raster position.static voidglWindowPos2ivARB(int[] p) Array version of:WindowPos2ivARBstatic voidPointer version ofWindowPos2iARB.static voidglWindowPos2sARB(short x, short y) Short version ofWindowPos2iARB.static voidglWindowPos2svARB(short[] p) Array version of:WindowPos2svARBstatic voidPointer version ofWindowPos2sARB.static voidglWindowPos3dARB(double x, double y, double z) Double version ofWindowPos3iARB.static voidglWindowPos3dvARB(double[] p) Array version of:WindowPos3dvARBstatic voidPointer version ofWindowPos3dARB.static voidglWindowPos3fARB(float x, float y, float z) Float version ofWindowPos3iARB.static voidglWindowPos3fvARB(float[] p) Array version of:WindowPos3fvARBstatic voidPointer version ofWindowPos3fARB.static voidglWindowPos3iARB(int x, int y, int z) Alternate way to set the current raster position.static voidglWindowPos3ivARB(int[] p) Array version of:WindowPos3ivARBstatic voidPointer version ofWindowPos3iARB.static voidglWindowPos3sARB(short x, short y, short z) Short version ofWindowPos3iARB.static voidglWindowPos3svARB(short[] p) Array version of:WindowPos3svARBstatic voidPointer version ofWindowPos3sARB.static voidnglWindowPos2dvARB(long p) Unsafe version of:WindowPos2dvARBstatic voidnglWindowPos2fvARB(long p) Unsafe version of:WindowPos2fvARBstatic voidnglWindowPos2ivARB(long p) Unsafe version of:WindowPos2ivARBstatic voidnglWindowPos2svARB(long p) Unsafe version of:WindowPos2svARBstatic voidnglWindowPos3dvARB(long p) Unsafe version of:WindowPos3dvARBstatic voidnglWindowPos3fvARB(long p) Unsafe version of:WindowPos3fvARBstatic voidnglWindowPos3ivARB(long p) Unsafe version of:WindowPos3ivARBstatic voidnglWindowPos3svARB(long p) Unsafe version of:WindowPos3svARB
-
Method Details
-
glWindowPos2iARB
public static void glWindowPos2iARB(int x, int y) Alternate way to set the current raster position.zis implictly set to 0.- Parameters:
x- the x valuey- the y value
-
glWindowPos2sARB
public static void glWindowPos2sARB(short x, short y) Short version ofWindowPos2iARB.- Parameters:
x- the x valuey- the y value
-
glWindowPos2fARB
public static void glWindowPos2fARB(float x, float y) Float version ofWindowPos2iARB.- Parameters:
x- the x valuey- the y value
-
glWindowPos2dARB
public static void glWindowPos2dARB(double x, double y) Double version ofWindowPos2iARB.- Parameters:
x- the x valuey- the y value
-
nglWindowPos2ivARB
public static void nglWindowPos2ivARB(long p) Unsafe version of:WindowPos2ivARB -
glWindowPos2ivARB
Pointer version ofWindowPos2iARB.- Parameters:
p- the position value
-
nglWindowPos2svARB
public static void nglWindowPos2svARB(long p) Unsafe version of:WindowPos2svARB -
glWindowPos2svARB
Pointer version ofWindowPos2sARB.- Parameters:
p- the position value
-
nglWindowPos2fvARB
public static void nglWindowPos2fvARB(long p) Unsafe version of:WindowPos2fvARB -
glWindowPos2fvARB
Pointer version ofWindowPos2fARB.- Parameters:
p- the position value
-
nglWindowPos2dvARB
public static void nglWindowPos2dvARB(long p) Unsafe version of:WindowPos2dvARB -
glWindowPos2dvARB
Pointer version ofWindowPos2dARB.- 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 valuey- the y valuez- the z value
-
glWindowPos3sARB
public static void glWindowPos3sARB(short x, short y, short z) Short version ofWindowPos3iARB.- Parameters:
x- the x valuey- the y valuez- the z value
-
glWindowPos3fARB
public static void glWindowPos3fARB(float x, float y, float z) Float version ofWindowPos3iARB.- Parameters:
x- the x valuey- the y valuez- the z value
-
glWindowPos3dARB
public static void glWindowPos3dARB(double x, double y, double z) Double version ofWindowPos3iARB.- Parameters:
x- the x valuey- the y valuez- the z value
-
nglWindowPos3ivARB
public static void nglWindowPos3ivARB(long p) Unsafe version of:WindowPos3ivARB -
glWindowPos3ivARB
Pointer version ofWindowPos3iARB.- Parameters:
p- the position value
-
nglWindowPos3svARB
public static void nglWindowPos3svARB(long p) Unsafe version of:WindowPos3svARB -
glWindowPos3svARB
Pointer version ofWindowPos3sARB.- Parameters:
p- the position value
-
nglWindowPos3fvARB
public static void nglWindowPos3fvARB(long p) Unsafe version of:WindowPos3fvARB -
glWindowPos3fvARB
Pointer version ofWindowPos3fARB.- Parameters:
p- the position value
-
nglWindowPos3dvARB
public static void nglWindowPos3dvARB(long p) Unsafe version of:WindowPos3dvARB -
glWindowPos3dvARB
Pointer version ofWindowPos3dARB.- 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
-