Package | Description |
---|---|
org.lwjgl.input | |
org.lwjgl.openal | |
org.lwjgl.opencl | |
org.lwjgl.opengl | |
org.lwjgl.opengles | |
org.lwjgl.util |
Modifier and Type | Method | Description |
---|---|---|
static void |
Controllers.create() |
Initialise the controllers collection
|
static void |
Keyboard.create() |
"Create" the keyboard.
|
static void |
Mouse.create() |
"Create" the mouse.
|
static Cursor |
Mouse.setNativeCursor(Cursor cursor) |
Binds a native cursor.
|
Constructor | Description |
---|---|
Cursor(int width,
int height,
int xHotspot,
int yHotspot,
int numImages,
IntBuffer images,
IntBuffer delays) |
Constructs a new Cursor, with the given parameters.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
AL.create() |
Creates an OpenAL instance.
|
static void |
AL.create(String deviceArguments,
int contextFrequency,
int contextRefresh,
boolean contextSynchronized) |
Creates an OpenAL instance.
|
static void |
AL.create(String deviceArguments,
int contextFrequency,
int contextRefresh,
boolean contextSynchronized,
boolean openDevice) |
Modifier and Type | Method | Description |
---|---|---|
static void |
CL.create() |
|
static CLContext |
CLContext.create(CLPlatform platform,
List<CLDevice> devices,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
static CLContext |
CLContext.create(CLPlatform platform,
List<CLDevice> devices,
CLContextCallback pfn_notify,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
static CLContext |
CLContext.create(CLPlatform platform,
List<CLDevice> devices,
CLContextCallback pfn_notify,
Drawable share_drawable,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
static CLContext |
CLContext.createFromType(CLPlatform platform,
long device_type,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
static CLContext |
CLContext.createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
static CLContext |
CLContext.createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
Drawable share_drawable,
IntBuffer errcode_ret) |
Creates a new CLContext.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
AWTGLCanvas.exceptionOccurred(LWJGLException exception) |
This method will be called if an unhandled LWJGLException occurs in paint().
|
Modifier and Type | Method | Description |
---|---|---|
static void |
Display.create() |
Create the OpenGL context.
|
static void |
Display.create(PixelFormat pixel_format) |
Create the OpenGL context with the given minimum parameters.
|
static void |
Display.create(PixelFormatLWJGL pixel_format) |
Create the OpenGL ES context with the given minimum parameters.
|
static void |
Display.create(PixelFormatLWJGL pixel_format,
Drawable shared_drawable) |
Create the OpenGL ES context with the given minimum parameters.
|
static void |
Display.create(PixelFormatLWJGL pixel_format,
Drawable shared_drawable,
ContextAttribs attribs) |
Create the OpenGL ES context with the given minimum parameters.
|
static void |
Display.create(PixelFormatLWJGL pixel_format,
ContextAttribs attribs) |
Create the OpenGL ES context with the given minimum parameters.
|
static void |
Display.create(PixelFormat pixel_format,
ContextAttribs attribs) |
Create the OpenGL context with the given minimum parameters.
|
static void |
Display.create(PixelFormat pixel_format,
Drawable shared_drawable) |
Create the OpenGL context with the given minimum parameters.
|
static void |
Display.create(PixelFormat pixel_format,
Drawable shared_drawable,
ContextAttribs attribs) |
Create the OpenGL context with the given minimum parameters.
|
Object |
InputImplementation.createCursor(int width,
int height,
int xHotspot,
int yHotspot,
int numImages,
IntBuffer images,
IntBuffer delays) |
Native cursor handles
|
void |
InputImplementation.createKeyboard() |
Method to create the keyboard
|
void |
InputImplementation.createMouse() |
Method to create the mouse.
|
org.lwjgl.opengl.ContextGL |
AWTGLCanvas.createSharedContext() |
This method should only be called internally.
|
static DisplayMode[] |
Display.getAvailableDisplayModes() |
Returns the entire list of possible fullscreen display modes as an array, in no
particular order.
|
boolean |
AWTGLCanvas.isCurrent() |
|
static boolean |
Display.isCurrent() |
Returns true if the Display's context is current in the current thread.
|
boolean |
Drawable.isCurrent() |
Returns true if the Drawable's context is current in the current thread.
|
static void |
GLContext.loadOpenGLLibrary() |
If the OpenGL reference count is 0, the library is loaded.
|
void |
AWTGLCanvas.makeCurrent() |
Make the canvas' context current.
|
static void |
Display.makeCurrent() |
Make the Display the current rendering context for GL calls.
|
void |
Drawable.makeCurrent() |
Makes the Drawable's context current in the current thread.
|
void |
AWTGLCanvas.releaseContext() |
|
static void |
Display.releaseContext() |
Release the Display context.
|
void |
Drawable.releaseContext() |
If the Drawable's context is current in the current thread, no context will be current after a call to this method.
|
void |
AWTGLCanvas.setCLSharingProperties(PointerBuffer properties) |
|
void |
Drawable.setCLSharingProperties(PointerBuffer properties) |
Sets the appropriate khr_gl_sharing properties in the target
PointerBuffer ,
so that if it is used in a clCreateContext(FromType) call, the created CL
context will be sharing objects with this Drawable 's GL context. |
static void |
Display.setDisplayConfiguration(float gamma,
float brightness,
float contrast) |
Set the display configuration to the specified gamma, brightness and contrast.
|
static void |
Display.setDisplayMode(DisplayMode mode) |
Set the current display mode.
|
static void |
Display.setDisplayModeAndFullscreen(DisplayMode mode) |
Set the mode of the context.
|
static void |
Display.setFullscreen(boolean fullscreen) |
Set the fullscreen mode of the context.
|
void |
InputImplementation.setNativeCursor(Object handle) |
Method to set the native cursor
|
static void |
Display.setParent(Canvas parent) |
Set the parent of the Display.
|
void |
AWTGLCanvas.setPixelFormat(PixelFormatLWJGL pf) |
|
void |
AWTGLCanvas.setPixelFormat(PixelFormatLWJGL pf,
ContextAttribs attribs) |
|
void |
AWTGLCanvas.swapBuffers() |
Swap the canvas' buffer
|
static void |
Display.swapBuffers() |
Swap the display buffers.
|
static void |
GLContext.useContext(Object context) |
Makes a GL context the current LWJGL context by loading GL function pointers.
|
static void |
GLContext.useContext(Object context,
boolean forwardCompatible) |
Makes a GL context the current LWJGL context by loading GL function pointers.
|
Constructor | Description |
---|---|
AWTGLCanvas() |
Constructor using the default PixelFormat.
|
AWTGLCanvas(GraphicsDevice device,
PixelFormat pixel_format) |
Create an AWTGLCanvas with the requested PixelFormat on the default GraphicsDevice.
|
AWTGLCanvas(GraphicsDevice device,
PixelFormat pixel_format,
Drawable drawable) |
Create an AWTGLCanvas with the requested PixelFormat on the specified GraphicsDevice.
|
AWTGLCanvas(GraphicsDevice device,
PixelFormat pixel_format,
Drawable drawable,
ContextAttribs attribs) |
Create an AWTGLCanvas with the requested PixelFormat on the specified GraphicsDevice.
|
AWTGLCanvas(PixelFormat pixel_format) |
Create an AWTGLCanvas with the requested PixelFormat on the default GraphicsDevice.
|
Pbuffer(int width,
int height,
PixelFormat pixel_format,
Drawable shared_drawable) |
Create an instance of a Pbuffer with a unique OpenGL context.
|
Pbuffer(int width,
int height,
PixelFormat pixel_format,
RenderTexture renderTexture,
Drawable shared_drawable) |
Create an instance of a Pbuffer with a unique OpenGL context.
|
Pbuffer(int width,
int height,
PixelFormat pixel_format,
RenderTexture renderTexture,
Drawable shared_drawable,
ContextAttribs attribs) |
Create an instance of a Pbuffer with a unique OpenGL context.
|
SharedDrawable(Drawable drawable) |
Modifier and Type | Method | Description |
---|---|---|
EGLConfig[] |
EGLDisplay.chooseConfig(IntBuffer attrib_list,
EGLConfig[] configs,
IntBuffer num_config) |
Returns the available EGL configs on this display that satisfy the specified list of attributes.
|
EGLContext |
EGLDisplay.createContext(EGLConfig config,
EGLContext shareContext,
IntBuffer attrib_list) |
|
EGLSurface |
EGLDisplay.createWindowSurface(EGLConfig config,
long window,
IntBuffer attrib_list) |
Creates an on-screen rendering surface on this EGL display.
|
void |
EGLContext.destroy() |
|
void |
EGLSurface.destroy() |
Destroys this EGL surface.
|
static int |
EGLKHRFenceSync.eglClientWaitSyncKHR(EGLDisplay dpy,
EGLSyncKHR sync,
int flags,
long timeout) |
Blocks the calling thread until the specified sync object is
signaled, or until a specified timeout value expires.
|
static int |
EGLKHRReusableSync.eglClientWaitSyncKHR(EGLDisplay dpy,
EGLSyncKHR sync,
int flags,
long timeout) |
Blocks the calling thread until the specified sync object is
signaled, or until a specified timeout value expires.
|
static int |
EGLNVSync.eglClientWaitSyncNV(EGLSyncNV sync,
int flags,
long timeout) |
Blocks the calling thread until the specified sync object is
signaled, or until a specified timeout value expires.
|
static EGLSyncNV |
EGLNVSync.eglCreateFenceSyncNV(EGLDisplay dpy,
int condition,
IntBuffer attrib_list) |
Creates a fence sync object for the specified EGL display and returns
a handle to the new object.
|
static EGLSyncKHR |
EGLKHRFenceSync.eglCreateSyncKHR(EGLDisplay dpy,
int type,
IntBuffer attrib_list) |
Creates a fence sync object for the specified EGL display and returns
a handle to the new object.
|
static EGLSyncKHR |
EGLKHRReusableSync.eglCreateSyncKHR(EGLDisplay dpy,
int type,
IntBuffer attrib_list) |
Creates a fence sync object for the specified EGL display and returns
a handle to the new object.
|
static void |
EGLKHRFenceSync.eglDestroySyncKHR(EGLDisplay dpy,
EGLSyncKHR sync) |
Destroys an existing sync object.
|
static void |
EGLKHRReusableSync.eglDestroySyncKHR(EGLDisplay dpy,
EGLSyncKHR sync) |
Destroys an existing sync object.
|
static void |
EGLNVSync.eglDestroySyncNV(EGLSyncNV sync) |
Destroys an existing sync object.
|
static void |
EGLNVSync.eglFenceNV(EGLSyncNV sync) |
Inserts a fence command into the command stream of the bound API's current
context and associates it with sync object.
|
static EGLContext |
EGL.eglGetCurrentContext() |
Returns the current EGL context for the current rendering API.
|
static EGLDisplay |
EGL.eglGetCurrentDisplay() |
Returns the EGL display associated with the current context.
|
static EGLSurface |
EGL.eglGetCurrentSurface(int readdraw) |
Returns the EGL surfaces used for rendering by the current context.
|
static EGLDisplay |
EGL.eglGetDisplay(long display_id) |
Obtains an EGL display from the specified native display and initializes it.
|
static int |
EGLKHRFenceSync.eglGetSyncAttribKHR(EGLDisplay dpy,
EGLSyncKHR sync,
int attribute) |
Returns the value of the sync object attribute.
|
static int |
EGLKHRReusableSync.eglGetSyncAttribKHR(EGLDisplay dpy,
EGLSyncKHR sync,
int attribute) |
Returns the value of the sync object attribute.
|
static int |
EGLNVSync.eglGetSyncAttribNV(EGLSyncNV sync,
int attribute) |
Returns the value of the sync object attribute.
|
static void |
EGL.eglQueryContext(EGLDisplay dpy,
EGLContext ctx,
int attribute,
IntBuffer value) |
Returns the value of the specified EGL context attribute in the value parameter.
|
static void |
EGL.eglQuerySurface(EGLDisplay dpy,
EGLSurface surface,
int attribute,
IntBuffer value) |
Returns the value of the specified EGL surface attribute in the value parameter.
|
static void |
EGL.eglReleaseCurrent(EGLDisplay dpy) |
Releases the current context without assigning a new one.
|
static void |
EGLKHRReusableSync.eglSignalSyncKHR(EGLDisplay dpy,
EGLSyncKHR sync,
int mode) |
Signals or unsignals the sync object by changing its status to
the specified mode.
|
static void |
EGLNVSync.eglSignalSyncNV(EGLSyncNV sync,
int mode) |
Signals or unsignals the sync object by changing its status to
the specified mode.
|
int |
EGLConfig.getAttribute(int attribute) |
Returns the value of the specified EGL config attribute.
|
int |
EGLSurface.getAttribute(int attribute) |
Returns the value of the specified EGL surface attribute.
|
EGLConfig |
PixelFormat.getBestMatch(EGLConfig[] configs) |
Returns the EGL config from the specified array that best matches this PixelFormat.
|
static void |
GLContext.loadOpenGLLibrary() |
If the OpenGL reference count is 0, the library is loaded.
|
void |
EGLContext.makeCurrent(EGLSurface surface) |
|
void |
EGLContext.makeCurrent(EGLSurface draw,
EGLSurface read) |
|
void |
PixelFormat.setSurfaceAttribs(EGLSurface surface) |
Applies this PixelFormat's surface attributes to the specified EGL surface.
|
void |
EGLDisplay.setSwapInterval(int interval) |
|
void |
EGLSurface.swapBuffers() |
|
void |
EGLDisplay.terminate() |
Release the resources associated with this EGL display.
|
static void |
GLContext.useContext(Object context) |
Makes a GL context the current LWJGL context by loading GL function pointers.
|
Modifier and Type | Method | Description |
---|---|---|
static DisplayMode[] |
Display.getAvailableDisplayModes(int minWidth,
int minHeight,
int maxWidth,
int maxHeight,
int minBPP,
int maxBPP,
int minFreq,
int maxFreq) |
Determine the available display modes that match the specified minimum and maximum criteria.
|
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.