Top Constructors Methods
org.lwjgl.opengl

pack-priv final Class LinuxCanvasImplementation

extends Object
implements AWTCanvasImplementation
Class Inheritance
All Implemented Interfaces
org.lwjgl.opengl.AWTCanvasImplementation
Imports
java.awt.GraphicsConfiguration, .GraphicsDevice, .Canvas, java.lang.reflect.Method, java.security.AccessController, .PrivilegedExceptionAction, org.lwjgl.LWJGLException, .LWJGLUtil

Author
elias_naur
Version
$Revision$ $Id$

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public PeerInfo
createPeerInfo(Canvas component, PixelFormat pixel_format, ContextAttribs attribs)

Implements org.lwjgl.opengl.AWTCanvasImplementation.createPeerInfo.

Return an opaque handle to the canvas peer information required to create a context from it.
public GraphicsConfiguration

Returns:

The GraphicsConfiguration corresponding to a visual that matches the pixel format.
findConfiguration
(GraphicsDevice device, PixelFormat pixel_format)

Implements org.lwjgl.opengl.AWTCanvasImplementation.findConfiguration.

Find a proper GraphicsConfiguration from the given GraphicsDevice and PixelFormat.
private static int
findVisualIDFromFormat(int screen, PixelFormat pixel_format)

pack-priv static int
private static int
private static native int
nFindVisualIDFromFormat(long display, int screen, PixelFormat pixel_format)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LinuxCanvasImplementationback to summary
pack-priv LinuxCanvasImplementation()

Method Detail

createPeerInfoback to summary
public PeerInfo createPeerInfo(Canvas component, PixelFormat pixel_format, ContextAttribs attribs) throws LWJGLException

Implements org.lwjgl.opengl.AWTCanvasImplementation.createPeerInfo.

Doc from org.lwjgl.opengl.AWTCanvasImplementation.createPeerInfo.

Return an opaque handle to the canvas peer information required to create a context from it.

findConfigurationback to summary
public GraphicsConfiguration findConfiguration(GraphicsDevice device, PixelFormat pixel_format) throws LWJGLException

Implements org.lwjgl.opengl.AWTCanvasImplementation.findConfiguration.

Find a proper GraphicsConfiguration from the given GraphicsDevice and PixelFormat.

Returns:GraphicsConfiguration

The GraphicsConfiguration corresponding to a visual that matches the pixel format.

Exceptions
LWJGLException:

Doc from org.lwjgl.opengl.AWTCanvasImplementation.findConfiguration.

if no suitable configuration could be found.

findVisualIDFromFormatback to summary
private static int findVisualIDFromFormat(int screen, PixelFormat pixel_format) throws LWJGLException
getScreenFromDeviceback to summary
pack-priv static int getScreenFromDevice(final GraphicsDevice device) throws LWJGLException
getVisualIDFromConfigurationback to summary
private static int getVisualIDFromConfiguration(final GraphicsConfiguration configuration) throws LWJGLException
nFindVisualIDFromFormatback to summary
private static native int nFindVisualIDFromFormat(long display, int screen, PixelFormat pixel_format) throws LWJGLException