Top Description Constructors Methods
org.lwjgl.opengl

public Class ARBWindowPos

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

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 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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glWindowPos2dARB(double
the x value
x
,
double
the y value
y
)

Double version of WindowPos2iARB.

public static void
glWindowPos2dvARB(DoubleBuffer
the position value
p
)

Pointer version of WindowPos2dARB.

public static void
glWindowPos2dvARB(double[] p)

Array version of: WindowPos2dvARB

public static native void
glWindowPos2fARB(float
the x value
x
,
float
the y value
y
)

Float version of WindowPos2iARB.

public static void
glWindowPos2fvARB(FloatBuffer
the position value
p
)

Pointer version of WindowPos2fARB.

public static void
glWindowPos2fvARB(float[] p)

Array version of: WindowPos2fvARB

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
glWindowPos2ivARB(IntBuffer
the position value
p
)

Pointer version of WindowPos2iARB.

public static void
glWindowPos2ivARB(int[] p)

Array version of: WindowPos2ivARB

public static native void
glWindowPos2sARB(short
the x value
x
,
short
the y value
y
)

Short version of WindowPos2iARB.

public static void
glWindowPos2svARB(ShortBuffer
the position value
p
)

Pointer version of WindowPos2sARB.

public static void
glWindowPos2svARB(short[] p)

Array version of: WindowPos2svARB

public static native void
glWindowPos3dARB(double
the x value
x
,
double
the y value
y
,
double
the z value
z
)

Double version of WindowPos3iARB.

public static void
glWindowPos3dvARB(DoubleBuffer
the position value
p
)

Pointer version of WindowPos3dARB.

public static void
glWindowPos3dvARB(double[] p)

Array version of: WindowPos3dvARB

public static native void
glWindowPos3fARB(float
the x value
x
,
float
the y value
y
,
float
the z value
z
)

Float version of WindowPos3iARB.

public static void
glWindowPos3fvARB(FloatBuffer
the position value
p
)

Pointer version of WindowPos3fARB.

public static void
glWindowPos3fvARB(float[] p)

Array version of: WindowPos3fvARB

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
glWindowPos3ivARB(IntBuffer
the position value
p
)

Pointer version of WindowPos3iARB.

public static void
glWindowPos3ivARB(int[] p)

Array version of: WindowPos3ivARB

public static native void
glWindowPos3sARB(short
the x value
x
,
short
the y value
y
,
short
the z value
z
)

Short version of WindowPos3iARB.

public static void
glWindowPos3svARB(ShortBuffer
the position value
p
)

Pointer version of WindowPos3sARB.

public static void
glWindowPos3svARB(short[] p)

Array version of: WindowPos3svARB

public static native void
nglWindowPos2dvARB(long p)

Unsafe version of: WindowPos2dvARB

public static native void
nglWindowPos2fvARB(long p)

Unsafe version of: WindowPos2fvARB

public static native void
nglWindowPos2ivARB(long p)

Unsafe version of: WindowPos2ivARB

public static native void
nglWindowPos2svARB(long p)

Unsafe version of: WindowPos2svARB

public static native void
nglWindowPos3dvARB(long p)

Unsafe version of: WindowPos3dvARB

public static native void
nglWindowPos3fvARB(long p)

Unsafe version of: WindowPos3fvARB

public static native void
nglWindowPos3ivARB(long p)

Unsafe version of: WindowPos3ivARB

public static native void
nglWindowPos3svARB(long p)

Unsafe version of: WindowPos3svARB

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ARBWindowPosback to summary
protected ARBWindowPos()

Method Detail

glWindowPos2dARBback to summary
public static native void glWindowPos2dARB(double x, double y)

Double version of WindowPos2iARB.

Parameters
x:double

the x value

y:double

the y value

glWindowPos2dvARBback to summary
public static void glWindowPos2dvARB(DoubleBuffer p)

Pointer version of WindowPos2dARB.

Parameters
p:DoubleBuffer

the position value

glWindowPos2dvARBback to summary
public static void glWindowPos2dvARB(double[] p)

Array version of: WindowPos2dvARB

glWindowPos2fARBback to summary
public static native void glWindowPos2fARB(float x, float y)

Float version of WindowPos2iARB.

Parameters
x:float

the x value

y:float

the y value

glWindowPos2fvARBback to summary
public static void glWindowPos2fvARB(FloatBuffer p)

Pointer version of WindowPos2fARB.

Parameters
p:FloatBuffer

the position value

glWindowPos2fvARBback to summary
public static void glWindowPos2fvARB(float[] p)

Array version of: WindowPos2fvARB

glWindowPos2iARBback to summary
public static native void glWindowPos2iARB(int x, int y)

Alternate way to set the current raster position. z is implictly set to 0.

Parameters
x:int

the x value

y:int

the y value

glWindowPos2ivARBback to summary
public static void glWindowPos2ivARB(IntBuffer p)

Pointer version of WindowPos2iARB.

Parameters
p:IntBuffer

the position value

glWindowPos2ivARBback to summary
public static void glWindowPos2ivARB(int[] p)

Array version of: WindowPos2ivARB

glWindowPos2sARBback to summary
public static native void glWindowPos2sARB(short x, short y)

Short version of WindowPos2iARB.

Parameters
x:short

the x value

y:short

the y value

glWindowPos2svARBback to summary
public static void glWindowPos2svARB(ShortBuffer p)

Pointer version of WindowPos2sARB.

Parameters
p:ShortBuffer

the position value

glWindowPos2svARBback to summary
public static void glWindowPos2svARB(short[] p)

Array version of: WindowPos2svARB

glWindowPos3dARBback to summary
public static native void glWindowPos3dARB(double x, double y, double z)

Double version of WindowPos3iARB.

Parameters
x:double

the x value

y:double

the y value

z:double

the z value

glWindowPos3dvARBback to summary
public static void glWindowPos3dvARB(DoubleBuffer p)

Pointer version of WindowPos3dARB.

Parameters
p:DoubleBuffer

the position value

glWindowPos3dvARBback to summary
public static void glWindowPos3dvARB(double[] p)

Array version of: WindowPos3dvARB

glWindowPos3fARBback to summary
public static native void glWindowPos3fARB(float x, float y, float z)

Float version of WindowPos3iARB.

Parameters
x:float

the x value

y:float

the y value

z:float

the z value

glWindowPos3fvARBback to summary
public static void glWindowPos3fvARB(FloatBuffer p)

Pointer version of WindowPos3fARB.

Parameters
p:FloatBuffer

the position value

glWindowPos3fvARBback to summary
public static void glWindowPos3fvARB(float[] p)

Array version of: WindowPos3fvARB

glWindowPos3iARBback to summary
public static native void glWindowPos3iARB(int x, int y, int z)

Alternate way to set the current raster position.

Parameters
x:int

the x value

y:int

the y value

z:int

the z value

glWindowPos3ivARBback to summary
public static void glWindowPos3ivARB(IntBuffer p)

Pointer version of WindowPos3iARB.

Parameters
p:IntBuffer

the position value

glWindowPos3ivARBback to summary
public static void glWindowPos3ivARB(int[] p)

Array version of: WindowPos3ivARB

glWindowPos3sARBback to summary
public static native void glWindowPos3sARB(short x, short y, short z)

Short version of WindowPos3iARB.

Parameters
x:short

the x value

y:short

the y value

z:short

the z value

glWindowPos3svARBback to summary
public static void glWindowPos3svARB(ShortBuffer p)

Pointer version of WindowPos3sARB.

Parameters
p:ShortBuffer

the position value

glWindowPos3svARBback to summary
public static void glWindowPos3svARB(short[] p)

Array version of: WindowPos3svARB

nglWindowPos2dvARBback to summary
public static native void nglWindowPos2dvARB(long p)

Unsafe version of: WindowPos2dvARB

nglWindowPos2fvARBback to summary
public static native void nglWindowPos2fvARB(long p)

Unsafe version of: WindowPos2fvARB

nglWindowPos2ivARBback to summary
public static native void nglWindowPos2ivARB(long p)

Unsafe version of: WindowPos2ivARB

nglWindowPos2svARBback to summary
public static native void nglWindowPos2svARB(long p)

Unsafe version of: WindowPos2svARB

nglWindowPos3dvARBback to summary
public static native void nglWindowPos3dvARB(long p)

Unsafe version of: WindowPos3dvARB

nglWindowPos3fvARBback to summary
public static native void nglWindowPos3fvARB(long p)

Unsafe version of: WindowPos3fvARB

nglWindowPos3ivARBback to summary
public static native void nglWindowPos3ivARB(long p)

Unsafe version of: WindowPos3ivARB

nglWindowPos3svARBback to summary
public static native void nglWindowPos3svARB(long p)

Unsafe version of: WindowPos3svARB