public class WGLARBRenderTexture
extends java.lang.Object
This extension allows a color buffer to be used for both rendering and texturing. When a color buffer is bound to a texture target it cannot be rendered to. Once it has been released from the texture it can be rendered to once again.
This extension may provide a performance boost and reduce memory requirements on architectures that support rendering to the same memory where textures reside and in the same memory format and layout required by texturing. The functionality is similar to CopyTexImage1D and CopyTexImage2D. However, some changes were made to make it easier to avoid copying data:
Requires WGL_ARB_extensions_string, WGL_ARB_pixel_format, WGL_ARB_pbuffer.
| Modifier and Type | Field and Description |
|---|---|
static int |
WGL_AUX0_ARB
|
static int |
WGL_AUX1_ARB
|
static int |
WGL_AUX2_ARB
|
static int |
WGL_AUX3_ARB
|
static int |
WGL_AUX4_ARB
|
static int |
WGL_AUX5_ARB
|
static int |
WGL_AUX6_ARB
|
static int |
WGL_AUX7_ARB
|
static int |
WGL_AUX8_ARB
|
static int |
WGL_AUX9_ARB
|
static int |
WGL_BACK_LEFT_ARB
|
static int |
WGL_BACK_RIGHT_ARB
|
static int |
WGL_BIND_TO_TEXTURE_RGB_ARB
Accepted by the
attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of
ChoosePixelFormatARB. |
static int |
WGL_BIND_TO_TEXTURE_RGBA_ARB
Accepted by the
attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of
ChoosePixelFormatARB. |
static int |
WGL_CUBE_MAP_FACE_ARB
Accepted by the
attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB. |
static int |
WGL_FRONT_LEFT_ARB
|
static int |
WGL_FRONT_RIGHT_ARB
|
static int |
WGL_MIPMAP_LEVEL_ARB
Accepted by the
attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB. |
static int |
WGL_MIPMAP_TEXTURE_ARB
Accepted by the
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB. |
static int |
WGL_NO_TEXTURE_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB. |
static int |
WGL_TEXTURE_1D_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB. |
static int |
WGL_TEXTURE_2D_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB
Accepted as a value in the
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB. |
static int |
WGL_TEXTURE_FORMAT_ARB
Accepted by the
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB. |
static int |
WGL_TEXTURE_RGB_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB. |
static int |
WGL_TEXTURE_RGBA_ARB
Accepted as a value in the
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB. |
static int |
WGL_TEXTURE_TARGET_ARB
Accepted by the
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nwglSetPbufferAttribARB(long pbuffer,
long attribList)
Unsafe version of:
SetPbufferAttribARB |
static boolean |
wglBindTexImageARB(long pbuffer,
int buffer)
Defines a one-dimensional texture image or two-dimensional texture image or a set of two-dimensional cube map texture images.
|
static boolean |
wglReleaseTexImageARB(long pbuffer,
int buffer)
Releases the specified color buffer back to the pbuffer.
|
static boolean |
wglSetPbufferAttribARB(long pbuffer,
int[] attribList)
Array version of:
SetPbufferAttribARB |
static boolean |
wglSetPbufferAttribARB(long pbuffer,
java.nio.IntBuffer attribList)
Sets an attribute to the specified pbuffer.
|
public static final int WGL_BIND_TO_TEXTURE_RGB_ARB
attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of
ChoosePixelFormatARB.public static final int WGL_BIND_TO_TEXTURE_RGBA_ARB
attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of
ChoosePixelFormatARB.public static final int WGL_TEXTURE_FORMAT_ARB
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.public static final int WGL_TEXTURE_TARGET_ARB
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.public static final int WGL_MIPMAP_TEXTURE_ARB
attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.public static final int WGL_TEXTURE_RGB_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB.public static final int WGL_TEXTURE_RGBA_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB.public static final int WGL_NO_TEXTURE_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_FORMAT_ARB.public static final int WGL_TEXTURE_CUBE_MAP_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB.public static final int WGL_TEXTURE_1D_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB.public static final int WGL_TEXTURE_2D_ARB
attribList parameter of CreatePbufferARB and returned in the value parameter of QueryPbufferARB when
attribute is TEXTURE_TARGET_ARB.public static final int WGL_MIPMAP_LEVEL_ARB
attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.public static final int WGL_CUBE_MAP_FACE_ARB
attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.public static final int WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB
attribList parameter of SetPbufferAttribARB and returned in the value parameter of QueryPbufferARB when
attribute is CUBE_MAP_FACE_ARB.public static final int WGL_FRONT_LEFT_ARB
public static final int WGL_FRONT_RIGHT_ARB
public static final int WGL_BACK_LEFT_ARB
public static final int WGL_BACK_RIGHT_ARB
public static final int WGL_AUX0_ARB
public static final int WGL_AUX1_ARB
public static final int WGL_AUX2_ARB
public static final int WGL_AUX3_ARB
public static final int WGL_AUX4_ARB
public static final int WGL_AUX5_ARB
public static final int WGL_AUX6_ARB
public static final int WGL_AUX7_ARB
public static final int WGL_AUX8_ARB
public static final int WGL_AUX9_ARB
public static boolean wglBindTexImageARB(long pbuffer,
int buffer)
buffer for the specified pbuffer and need not be copied. The texture target, the texture format and
the size of the texture components are derived from attributes of pbuffer specified by pbuffer.pbuffer - a pbuffer handlebuffer - the target buffer. One of:FRONT_LEFT_ARB | FRONT_RIGHT_ARB | BACK_LEFT_ARB | BACK_RIGHT_ARB | AUX0_ARB | WGL_AUX[1-9]_ARB |
public static boolean wglReleaseTexImageARB(long pbuffer,
int buffer)
pbuffer - a pbuffer handlebuffer - the target buffer. One of:FRONT_LEFT_ARB | FRONT_RIGHT_ARB | BACK_LEFT_ARB | BACK_RIGHT_ARB | AUX0_ARB | WGL_AUX[1-9]_ARB |
public static int nwglSetPbufferAttribARB(long pbuffer,
long attribList)
SetPbufferAttribARBpublic static boolean wglSetPbufferAttribARB(long pbuffer,
@Nullable
java.nio.IntBuffer attribList)
pbuffer - a pbuffer handleattribList - a 0-terminated list of attribute {type, value} pairs containing integer valuespublic static boolean wglSetPbufferAttribARB(long pbuffer,
@Nullable
int[] attribList)
SetPbufferAttribARBCopyright LWJGL. All Rights Reserved. License terms.