public class ARBWindowPos
extends java.lang.Object
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.
| Modifier and Type | Method and Description |
|---|---|
static void |
glWindowPos2dARB(double x,
double y)
Double version of
WindowPos2iARB. |
static void |
glWindowPos2dvARB(double[] p)
Array version of:
WindowPos2dvARB |
static void |
glWindowPos2dvARB(java.nio.DoubleBuffer p)
Pointer version of
WindowPos2dARB. |
static void |
glWindowPos2fARB(float x,
float y)
Float version of
WindowPos2iARB. |
static void |
glWindowPos2fvARB(float[] p)
Array version of:
WindowPos2fvARB |
static void |
glWindowPos2fvARB(java.nio.FloatBuffer p)
Pointer version of
WindowPos2fARB. |
static void |
glWindowPos2iARB(int x,
int y)
Alternate way to set the current raster position.
|
static void |
glWindowPos2ivARB(int[] p)
Array version of:
WindowPos2ivARB |
static void |
glWindowPos2ivARB(java.nio.IntBuffer p)
Pointer version of
WindowPos2iARB. |
static void |
glWindowPos2sARB(short x,
short y)
Short version of
WindowPos2iARB. |
static void |
glWindowPos2svARB(short[] p)
Array version of:
WindowPos2svARB |
static void |
glWindowPos2svARB(java.nio.ShortBuffer p)
Pointer version of
WindowPos2sARB. |
static void |
glWindowPos3dARB(double x,
double y,
double z)
Double version of
WindowPos3iARB. |
static void |
glWindowPos3dvARB(double[] p)
Array version of:
WindowPos3dvARB |
static void |
glWindowPos3dvARB(java.nio.DoubleBuffer p)
Pointer version of
WindowPos3dARB. |
static void |
glWindowPos3fARB(float x,
float y,
float z)
Float version of
WindowPos3iARB. |
static void |
glWindowPos3fvARB(float[] p)
Array version of:
WindowPos3fvARB |
static void |
glWindowPos3fvARB(java.nio.FloatBuffer p)
Pointer version of
WindowPos3fARB. |
static void |
glWindowPos3iARB(int x,
int y,
int z)
Alternate way to set the current raster position.
|
static void |
glWindowPos3ivARB(int[] p)
Array version of:
WindowPos3ivARB |
static void |
glWindowPos3ivARB(java.nio.IntBuffer p)
Pointer version of
WindowPos3iARB. |
static void |
glWindowPos3sARB(short x,
short y,
short z)
Short version of
WindowPos3iARB. |
static void |
glWindowPos3svARB(short[] p)
Array version of:
WindowPos3svARB |
static void |
glWindowPos3svARB(java.nio.ShortBuffer p)
Pointer version of
WindowPos3sARB. |
static void |
nglWindowPos2dvARB(long p)
Unsafe version of:
WindowPos2dvARB |
static void |
nglWindowPos2fvARB(long p)
Unsafe version of:
WindowPos2fvARB |
static void |
nglWindowPos2ivARB(long p)
Unsafe version of:
WindowPos2ivARB |
static void |
nglWindowPos2svARB(long p)
Unsafe version of:
WindowPos2svARB |
static void |
nglWindowPos3dvARB(long p)
Unsafe version of:
WindowPos3dvARB |
static void |
nglWindowPos3fvARB(long p)
Unsafe version of:
WindowPos3fvARB |
static void |
nglWindowPos3ivARB(long p)
Unsafe version of:
WindowPos3ivARB |
static void |
nglWindowPos3svARB(long p)
Unsafe version of:
WindowPos3svARB |
public static void glWindowPos2iARB(int x,
int y)
z is implictly set to 0.x - the x valuey - the y valuepublic static void glWindowPos2sARB(short x,
short y)
WindowPos2iARB.x - the x valuey - the y valuepublic static void glWindowPos2fARB(float x,
float y)
WindowPos2iARB.x - the x valuey - the y valuepublic static void glWindowPos2dARB(double x,
double y)
WindowPos2iARB.x - the x valuey - the y valuepublic static void nglWindowPos2ivARB(long p)
WindowPos2ivARBpublic static void glWindowPos2ivARB(java.nio.IntBuffer p)
WindowPos2iARB.p - the position valuepublic static void nglWindowPos2svARB(long p)
WindowPos2svARBpublic static void glWindowPos2svARB(java.nio.ShortBuffer p)
WindowPos2sARB.p - the position valuepublic static void nglWindowPos2fvARB(long p)
WindowPos2fvARBpublic static void glWindowPos2fvARB(java.nio.FloatBuffer p)
WindowPos2fARB.p - the position valuepublic static void nglWindowPos2dvARB(long p)
WindowPos2dvARBpublic static void glWindowPos2dvARB(java.nio.DoubleBuffer p)
WindowPos2dARB.p - the position valuepublic static void glWindowPos3iARB(int x,
int y,
int z)
x - the x valuey - the y valuez - the z valuepublic static void glWindowPos3sARB(short x,
short y,
short z)
WindowPos3iARB.x - the x valuey - the y valuez - the z valuepublic static void glWindowPos3fARB(float x,
float y,
float z)
WindowPos3iARB.x - the x valuey - the y valuez - the z valuepublic static void glWindowPos3dARB(double x,
double y,
double z)
WindowPos3iARB.x - the x valuey - the y valuez - the z valuepublic static void nglWindowPos3ivARB(long p)
WindowPos3ivARBpublic static void glWindowPos3ivARB(java.nio.IntBuffer p)
WindowPos3iARB.p - the position valuepublic static void nglWindowPos3svARB(long p)
WindowPos3svARBpublic static void glWindowPos3svARB(java.nio.ShortBuffer p)
WindowPos3sARB.p - the position valuepublic static void nglWindowPos3fvARB(long p)
WindowPos3fvARBpublic static void glWindowPos3fvARB(java.nio.FloatBuffer p)
WindowPos3fARB.p - the position valuepublic static void nglWindowPos3dvARB(long p)
WindowPos3dvARBpublic static void glWindowPos3dvARB(java.nio.DoubleBuffer p)
WindowPos3dARB.p - the position valuepublic static void glWindowPos2ivARB(int[] p)
WindowPos2ivARBpublic static void glWindowPos2svARB(short[] p)
WindowPos2svARBpublic static void glWindowPos2fvARB(float[] p)
WindowPos2fvARBpublic static void glWindowPos2dvARB(double[] p)
WindowPos2dvARBpublic static void glWindowPos3ivARB(int[] p)
WindowPos3ivARBpublic static void glWindowPos3svARB(short[] p)
WindowPos3svARBpublic static void glWindowPos3fvARB(float[] p)
WindowPos3fvARBpublic static void glWindowPos3dvARB(double[] p)
WindowPos3dvARBCopyright LWJGL. All Rights Reserved. License terms.