Class ARBWindowPos
- java.lang.Object
-
- org.lwjgl.opengl.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 theBitmap
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
orBitmap
. 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 void
glWindowPos2dARB(double x, double y)
Double version ofWindowPos2iARB
.static void
glWindowPos2dvARB(double[] p)
Array version of:WindowPos2dvARB
static void
glWindowPos2dvARB(java.nio.DoubleBuffer p)
Pointer version ofWindowPos2dARB
.static void
glWindowPos2fARB(float x, float y)
Float version ofWindowPos2iARB
.static void
glWindowPos2fvARB(float[] p)
Array version of:WindowPos2fvARB
static void
glWindowPos2fvARB(java.nio.FloatBuffer p)
Pointer version ofWindowPos2fARB
.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 ofWindowPos2iARB
.static void
glWindowPos2sARB(short x, short y)
Short version ofWindowPos2iARB
.static void
glWindowPos2svARB(short[] p)
Array version of:WindowPos2svARB
static void
glWindowPos2svARB(java.nio.ShortBuffer p)
Pointer version ofWindowPos2sARB
.static void
glWindowPos3dARB(double x, double y, double z)
Double version ofWindowPos3iARB
.static void
glWindowPos3dvARB(double[] p)
Array version of:WindowPos3dvARB
static void
glWindowPos3dvARB(java.nio.DoubleBuffer p)
Pointer version ofWindowPos3dARB
.static void
glWindowPos3fARB(float x, float y, float z)
Float version ofWindowPos3iARB
.static void
glWindowPos3fvARB(float[] p)
Array version of:WindowPos3fvARB
static void
glWindowPos3fvARB(java.nio.FloatBuffer p)
Pointer version ofWindowPos3fARB
.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 ofWindowPos3iARB
.static void
glWindowPos3sARB(short x, short y, short z)
Short version ofWindowPos3iARB
.static void
glWindowPos3svARB(short[] p)
Array version of:WindowPos3svARB
static void
glWindowPos3svARB(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.z
is 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
-
-