Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class WGLARBRenderTexture

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

Native bindings to the WGL_ARB_render_texture extension.

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.

Field Summary

Modifier and TypeField and Description
public static final int
WGL_AUX0_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX1_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX2_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX3_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX4_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX5_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX6_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX7_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX8_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_AUX9_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_BACK_LEFT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_BACK_RIGHT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_BIND_TO_TEXTURE_RGB_ARB

Accepted by the attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of ChoosePixelFormatARB.

public static final int
WGL_BIND_TO_TEXTURE_RGBA_ARB

Accepted by the attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of ChoosePixelFormatARB.

public static final int
WGL_CUBE_MAP_FACE_ARB

Accepted by the attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.

public static final int
WGL_FRONT_LEFT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_FRONT_RIGHT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

public static final int
WGL_MIPMAP_LEVEL_ARB

Accepted by the attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.

public static final int
WGL_MIPMAP_TEXTURE_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final 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.

public static final int
WGL_TEXTURE_FORMAT_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

public static final 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.

public static final 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.

public static final int
WGL_TEXTURE_TARGET_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nwglSetPbufferAttribARB(long pbuffer, long attribList)

Unsafe version of: SetPbufferAttribARB

public static boolean
wglBindTexImageARB(long
a pbuffer handle
pbuffer
,
int buffer)

Defines a one-dimensional texture image or two-dimensional texture image or a set of two-dimensional cube map texture images.

public static boolean
wglReleaseTexImageARB(long
a pbuffer handle
pbuffer
,
int buffer)

Releases the specified color buffer back to the pbuffer.

public static boolean
wglSetPbufferAttribARB(long
a pbuffer handle
pbuffer
,
IntBuffer
a 0-terminated list of attribute {type, value} pairs containing integer values
attribList
)

Sets an attribute to the specified pbuffer.

public static boolean
wglSetPbufferAttribARB(long pbuffer, int[] attribList)

Array version of: SetPbufferAttribARB

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

WGL_AUX0_ARBback to summary
public static final int WGL_AUX0_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX1_ARBback to summary
public static final int WGL_AUX1_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX2_ARBback to summary
public static final int WGL_AUX2_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX3_ARBback to summary
public static final int WGL_AUX3_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX4_ARBback to summary
public static final int WGL_AUX4_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX5_ARBback to summary
public static final int WGL_AUX5_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX6_ARBback to summary
public static final int WGL_AUX6_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX7_ARBback to summary
public static final int WGL_AUX7_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX8_ARBback to summary
public static final int WGL_AUX8_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_AUX9_ARBback to summary
public static final int WGL_AUX9_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_BACK_LEFT_ARBback to summary
public static final int WGL_BACK_LEFT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_BACK_RIGHT_ARBback to summary
public static final int WGL_BACK_RIGHT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_BIND_TO_TEXTURE_RGB_ARBback to summary
public static final int WGL_BIND_TO_TEXTURE_RGB_ARB

Accepted by the attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of ChoosePixelFormatARB.

WGL_BIND_TO_TEXTURE_RGBA_ARBback to summary
public static final int WGL_BIND_TO_TEXTURE_RGBA_ARB

Accepted by the attributes parameter of GetPixelFormatAttribivARB, and the attribIList parameters of ChoosePixelFormatARB.

WGL_CUBE_MAP_FACE_ARBback to summary
public static final int WGL_CUBE_MAP_FACE_ARB

Accepted by the attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.

WGL_FRONT_LEFT_ARBback to summary
public static final int WGL_FRONT_LEFT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_FRONT_RIGHT_ARBback to summary
public static final int WGL_FRONT_RIGHT_ARB

Accepted by the buffer parameter of BindTexImageARB and ReleaseTexImageARB.

WGL_MIPMAP_LEVEL_ARBback to summary
public static final int WGL_MIPMAP_LEVEL_ARB

Accepted by the attribList parameter of SetPbufferAttribARB and by the attribute parameter of QueryPbufferARB.

WGL_MIPMAP_TEXTURE_ARBback to summary
public static final int WGL_MIPMAP_TEXTURE_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

WGL_NO_TEXTURE_ARBback to summary
public static final 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.

WGL_TEXTURE_1D_ARBback to summary
public static final 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.

WGL_TEXTURE_2D_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARBback to summary
public static final 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.

WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARBback to summary
public static final 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.

WGL_TEXTURE_FORMAT_ARBback to summary
public static final int WGL_TEXTURE_FORMAT_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

WGL_TEXTURE_RGB_ARBback to summary
public static final 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.

WGL_TEXTURE_RGBA_ARBback to summary
public static final 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.

WGL_TEXTURE_TARGET_ARBback to summary
public static final int WGL_TEXTURE_TARGET_ARB

Accepted by the attribList parameter of CreatePbufferARB and by the attribute parameter of QueryPbufferARB.

Constructor Detail

WGLARBRenderTextureback to summary
protected WGLARBRenderTexture()

Method Detail

nwglSetPbufferAttribARBback to summary
public static int nwglSetPbufferAttribARB(long pbuffer, long attribList)

Unsafe version of: SetPbufferAttribARB

wglBindTexImageARBback to summary
public 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. The texture image or images consist of the image data in 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.

Parameters
pbuffer:long

a pbuffer handle

buffer:int

the target buffer. One of:

FRONT_LEFT_ARBFRONT_RIGHT_ARBBACK_LEFT_ARBBACK_RIGHT_ARBAUX0_ARBWGL_AUX[1-9]_ARB
Annotations
@NativeType:BOOL
wglReleaseTexImageARBback to summary
public static boolean wglReleaseTexImageARB(long pbuffer, int buffer)

Releases the specified color buffer back to the pbuffer. The pbuffer is made available for reading and writing when it no longer has any color buffers bound as textures.

Parameters
pbuffer:long

a pbuffer handle

buffer:int

the target buffer. One of:

FRONT_LEFT_ARBFRONT_RIGHT_ARBBACK_LEFT_ARBBACK_RIGHT_ARBAUX0_ARBWGL_AUX[1-9]_ARB
Annotations
@NativeType:BOOL
wglSetPbufferAttribARBback to summary
public static boolean wglSetPbufferAttribARB(long pbuffer, IntBuffer attribList)

Sets an attribute to the specified pbuffer.

Parameters
pbuffer:long

a pbuffer handle

attribList:IntBuffer

a 0-terminated list of attribute {type, value} pairs containing integer values

Annotations
@NativeType:BOOL
wglSetPbufferAttribARBback to summary
public static boolean wglSetPbufferAttribARB(long pbuffer, int[] attribList)

Array version of: SetPbufferAttribARB

Annotations
@NativeType:BOOL