Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class WGLARBCreateContext

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

Native bindings to the WGL_ARB_create_context extension.

With the advent of new versions of OpenGL which deprecate features and/or break backward compatibility with older versions, there is a need and desire to indicate at context creation which interface will be used. This extension add a new context creation routine with attributes specifying the GL version and context properties requested for the context.

Requires WGL_ARB_extensions_string.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
WGL_CONTEXT_DEBUG_BIT_ARB

Accepted as bits in the attribute value for CONTEXT_FLAGS_ARB in attribList.

public static final int
WGL_CONTEXT_FLAGS_ARB

Accepted as an attribute name in attribList.

public static final int
WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB

Accepted as bits in the attribute value for CONTEXT_FLAGS_ARB in attribList.

public static final int
WGL_CONTEXT_LAYER_PLANE_ARB

Accepted as an attribute name in attribList.

public static final int
WGL_CONTEXT_MAJOR_VERSION_ARB

Accepted as an attribute name in attribList.

public static final int
WGL_CONTEXT_MINOR_VERSION_ARB

Accepted as an attribute name in attribList.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
nwglCreateContextAttribsARB(long hdc, long shareContext, long attribList)

Unsafe version of: CreateContextAttribsARB

public static long
wglCreateContextAttribsARB(long hdc, long shareContext, IntBuffer
a list of attributes for the context. The list consists of a sequence of <name, value> pairs terminated by the value 0. If an attribute is not specified in attribList, then the default value is used instead. If an attribute is specified more than once, then the last value specified is used.
attribList
)

Creates an OpenGL context.

public static long
wglCreateContextAttribsARB(long hdc, long shareContext, int[] attribList)

Array version of: CreateContextAttribsARB

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ERROR_INVALID_VERSION_ARBback to summary
public static final int ERROR_INVALID_VERSION_ARB

New errors returned by org.lwjgl.system.windows.WinBase#GetLastError.

WGL_CONTEXT_DEBUG_BIT_ARBback to summary
public static final int WGL_CONTEXT_DEBUG_BIT_ARB

Accepted as bits in the attribute value for CONTEXT_FLAGS_ARB in attribList.

WGL_CONTEXT_FLAGS_ARBback to summary
public static final int WGL_CONTEXT_FLAGS_ARB

Accepted as an attribute name in attribList.

WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARBback to summary
public static final int WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB

Accepted as bits in the attribute value for CONTEXT_FLAGS_ARB in attribList.

WGL_CONTEXT_LAYER_PLANE_ARBback to summary
public static final int WGL_CONTEXT_LAYER_PLANE_ARB

Accepted as an attribute name in attribList.

WGL_CONTEXT_MAJOR_VERSION_ARBback to summary
public static final int WGL_CONTEXT_MAJOR_VERSION_ARB

Accepted as an attribute name in attribList.

WGL_CONTEXT_MINOR_VERSION_ARBback to summary
public static final int WGL_CONTEXT_MINOR_VERSION_ARB

Accepted as an attribute name in attribList.

Constructor Detail

WGLARBCreateContextback to summary
protected WGLARBCreateContext()

Method Detail

nwglCreateContextAttribsARBback to summary
public static long nwglCreateContextAttribsARB(long hdc, long shareContext, long attribList)

Unsafe version of: CreateContextAttribsARB

wglCreateContextAttribsARBback to summary
public static long wglCreateContextAttribsARB(long hdc, long shareContext, IntBuffer attribList)

Creates an OpenGL context.

If shareContext is not NULL, then all shareable data (excluding OpenGL texture objects named 0) will be shared by shareContext, all other contexts shareContext already shares with, and the newly created context. An arbitrary number of contexts can share data in this fashion.

Parameters
attribList:IntBuffer

a list of attributes for the context. The list consists of a sequence of <name, value> pairs terminated by the value 0. If an attribute is not specified in attribList, then the default value is used instead. If an attribute is specified more than once, then the last value specified is used.

Annotations
@NativeType:HGLRC
wglCreateContextAttribsARBback to summary
public static long wglCreateContextAttribsARB(long hdc, long shareContext, int[] attribList)

Array version of: CreateContextAttribsARB

Annotations
@NativeType:HGLRC