Class ARBWindowPos
- java.lang.Object
-
- org.lwjgl.opengl.ARBWindowPos
-
public class ARBWindowPos extends java.lang.ObjectNative bindings to the ARB_window_pos extension.In order to set the current raster position to a specific window coordinate with the
RasterPos2icommand, 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 theBitmapcommand 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,CopyPixelsorBitmap. Many matrix operations can be avoided when mixing 2D and 3D rendering.Promoted to core in
OpenGL 1.4.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglWindowPos2dARB(double x, double y)Double version ofWindowPos2iARB.static voidglWindowPos2dvARB(double[] p)Array version of:WindowPos2dvARBstatic voidglWindowPos2dvARB(java.nio.DoubleBuffer p)Pointer version ofWindowPos2dARB.static voidglWindowPos2fARB(float x, float y)Float version ofWindowPos2iARB.static voidglWindowPos2fvARB(float[] p)Array version of:WindowPos2fvARBstatic voidglWindowPos2fvARB(java.nio.FloatBuffer p)Pointer version ofWindowPos2fARB.static voidglWindowPos2iARB(int x, int y)Alternate way to set the current raster position.static voidglWindowPos2ivARB(int[] p)Array version of:WindowPos2ivARBstatic voidglWindowPos2ivARB(java.nio.IntBuffer p)Pointer version ofWindowPos2iARB.static voidglWindowPos2sARB(short x, short y)Short version ofWindowPos2iARB.static voidglWindowPos2svARB(short[] p)Array version of:WindowPos2svARBstatic voidglWindowPos2svARB(java.nio.ShortBuffer p)Pointer version ofWindowPos2sARB.static voidglWindowPos3dARB(double x, double y, double z)Double version ofWindowPos3iARB.static voidglWindowPos3dvARB(double[] p)Array version of:WindowPos3dvARBstatic voidglWindowPos3dvARB(java.nio.DoubleBuffer p)Pointer version ofWindowPos3dARB.static voidglWindowPos3fARB(float x, float y, float z)Float version ofWindowPos3iARB.static voidglWindowPos3fvARB(float[] p)Array version of:WindowPos3fvARBstatic voidglWindowPos3fvARB(java.nio.FloatBuffer p)Pointer 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 voidglWindowPos3ivARB(java.nio.IntBuffer p)Pointer version ofWindowPos3iARB.static voidglWindowPos3sARB(short x, short y, short z)Short version ofWindowPos3iARB.static voidglWindowPos3svARB(short[] p)Array version of:WindowPos3svARBstatic voidglWindowPos3svARB(java.nio.ShortBuffer p)Pointer version ofWindowPos3sARB.
-
-
-
Method Detail
-
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
-
glWindowPos2ivARB
public static void glWindowPos2ivARB(java.nio.IntBuffer p)
Pointer version ofWindowPos2iARB.- Parameters:
p- the position value
-
glWindowPos2svARB
public static void glWindowPos2svARB(java.nio.ShortBuffer p)
Pointer version ofWindowPos2sARB.- Parameters:
p- the position value
-
glWindowPos2fvARB
public static void glWindowPos2fvARB(java.nio.FloatBuffer p)
Pointer version ofWindowPos2fARB.- Parameters:
p- the position value
-
glWindowPos2dvARB
public static void glWindowPos2dvARB(java.nio.DoubleBuffer p)
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
-
glWindowPos3ivARB
public static void glWindowPos3ivARB(java.nio.IntBuffer p)
Pointer version ofWindowPos3iARB.- Parameters:
p- the position value
-
glWindowPos3svARB
public static void glWindowPos3svARB(java.nio.ShortBuffer p)
Pointer version ofWindowPos3sARB.- Parameters:
p- the position value
-
glWindowPos3fvARB
public static void glWindowPos3fvARB(java.nio.FloatBuffer p)
Pointer version ofWindowPos3fARB.- Parameters:
p- the position value
-
glWindowPos3dvARB
public static void glWindowPos3dvARB(java.nio.DoubleBuffer p)
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
-
-