gl4java.drawable
Class SunJDK13GLDrawableFactory
java.lang.Object
|
+--gl4java.drawable.GLDrawableFactory
|
+--gl4java.drawable.SunJDK13GLDrawableFactory
- Direct Known Subclasses:
- MacSunJDK13GLDrawableFactory, Win32SunJDK13GLDrawableFactory, X11SunJDK13GLDrawableFactory
- public abstract class SunJDK13GLDrawableFactory
- extends GLDrawableFactory
A GLDrawableFactory which works with Sun's JDK 1.3 or greater.
Method Summary |
GLAnimCanvas |
createGLAnimCanvas(GLCapabilities capabilities,
int width,
int height,
java.lang.String glName,
java.lang.String gluName)
Create a new GLAnimCanvas given the specified GLCapabilities. |
GLCanvas |
createGLCanvas(GLCapabilities capabilities,
int width,
int height,
java.lang.String glName,
java.lang.String gluName)
Create a new GLCanvas given the specified GLCapabilities. |
java.awt.GraphicsConfiguration |
getGraphicsConfiguration(GLCapabilities capabilities)
Returns the GraphicsConfiguration most closely matching the
specified set of GLCapabilities, or null if there was no
matching visual. |
abstract java.awt.GraphicsConfiguration |
getGraphicsConfiguration(GLCapabilities capabilities,
java.awt.GraphicsDevice device)
Returns the GraphicsConfiguration most closely matching the
specified set of GLCapabilities and your given device !
Return null if there was no matching visual. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SunJDK13GLDrawableFactory
public SunJDK13GLDrawableFactory()
createGLAnimCanvas
public GLAnimCanvas createGLAnimCanvas(GLCapabilities capabilities,
int width,
int height,
java.lang.String glName,
java.lang.String gluName)
- Description copied from class:
GLDrawableFactory
- Create a new GLAnimCanvas given the specified GLCapabilities.
- Overrides:
createGLAnimCanvas
in class GLDrawableFactory
- Following copied from class:
gl4java.drawable.GLDrawableFactory
- Parameters:
capabilities
- the requested set of OpenGL capabilities of
the canvaswidth
- the canvas's initial widthheight
- the canvas's initial heightglName
- the name of the GLFunc implementation.
If null, the default class will be usedgluName
- the name of the GLUFunc implementation.
If null, the default class will be used- Returns:
- a GLAnimCanvas supporting the set of specified capabilities,
or null if there was no matching visual
createGLCanvas
public GLCanvas createGLCanvas(GLCapabilities capabilities,
int width,
int height,
java.lang.String glName,
java.lang.String gluName)
- Description copied from class:
GLDrawableFactory
- Create a new GLCanvas given the specified GLCapabilities.
- Overrides:
createGLCanvas
in class GLDrawableFactory
- Following copied from class:
gl4java.drawable.GLDrawableFactory
- Parameters:
capabilities
- the requested set of OpenGL capabilities of
the canvaswidth
- the canvas's initial widthheight
- the canvas's initial heightglName
- the name of the GLFunc implementation.
If null, the default class will be usedgluName
- the name of the GLUFunc implementation.
If null, the default class will be used- Returns:
- a GLCanvas supporting the set of specified capabilities,
or null if there was no matching visual
getGraphicsConfiguration
public java.awt.GraphicsConfiguration getGraphicsConfiguration(GLCapabilities capabilities)
- Returns the GraphicsConfiguration most closely matching the
specified set of GLCapabilities, or null if there was no
matching visual.
- Parameters:
capabilities
- the requested set of OpenGL capabilities of
the canvas- Returns:
- a GraphicsConfiguration supporting the set of specified capabilities,
or null if there was no matching visual
getGraphicsConfiguration
public abstract java.awt.GraphicsConfiguration getGraphicsConfiguration(GLCapabilities capabilities,
java.awt.GraphicsDevice device)
- Returns the GraphicsConfiguration most closely matching the
specified set of GLCapabilities and your given device !
Return null if there was no matching visual.
- Parameters:
capabilities
- the requested set of OpenGL capabilities of
the canvasdevice
- the used GraphicsDevice,
e.g. usefull for FullScreen mode !- Returns:
- a GraphicsConfiguration supporting the set of specified capabilities,
or null if there was no matching visual