public interface ILcdGLDrawableFactory
This factory can create two types of drawables:
An ILcdGLDrawable can also perform OpenGL context sharing with another drawable. This is done by passing the other drawable as an argument to the createGLDrawable() method. The two drawables will then be able to share certain OpenGL resources, such as texture objects and display lists.
Finally, ILcdGLDrawables can also be created for a specific GraphicsDevice. This is useful in multi-monitor configurations where the application wants to control on which display device the drawable is created.
Modifier and Type | Method and Description |
---|---|
ILcdGLExternalDrawable |
createExternalGLDrawable()
Creates a new
ILcdGLDrawable for an externally supplied OpenGL
context. |
ILcdGLCapabilities |
createGLCapabilities()
Creates a new ILcdGLCapabilities object with default parameters.
|
default TLcdGLDrawableHolder |
createGLDrawable()
Creates a new ILcdGLDrawable with default capabilities.
|
default TLcdGLDrawableHolder |
createGLDrawable(GraphicsDevice aGraphicsDevice)
Creates an ILcdGLDrawable with default capabilities for the specified
GraphicsDevice.
|
default TLcdGLDrawableHolder |
createGLDrawable(ILcdGLCapabilities aGLCapabilities)
Creates a new ILcdGLDrawable with the specified capabilities.
|
default TLcdGLDrawableHolder |
createGLDrawable(ILcdGLCapabilities aGLCapabilities,
GraphicsDevice aGraphicsDevice)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
default TLcdGLDrawableHolder |
createGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Creates a new ILcdGLDrawable with the specified capabilities.
|
default TLcdGLDrawableHolder |
createGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser,
GraphicsDevice aGraphicsDevice)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
TLcdGLDrawableHolder |
createGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser,
GraphicsDevice aGraphicsDevice,
ILcdGLDrawable aShareWith)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
default ILcdGLOffScreenDrawable |
createGLOffScreenDrawable(int aWidth,
int aHeight)
Creates a new offscreen ILcdGLDrawable with the specified size and default
capabilities.
|
default ILcdGLOffScreenDrawable |
createGLOffScreenDrawable(int aWidth,
int aHeight,
ILcdGLCapabilities aGLCapabilities)
Creates a new offscreen ILcdGLDrawable with the specified size and
capabilities.
|
default ILcdGLOffScreenDrawable |
createGLOffScreenDrawable(int aWidth,
int aHeight,
ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Creates a new offscreen ILcdGLDrawable with the specified size and
capabilities.
|
ILcdGLOffScreenDrawable |
createGLOffScreenDrawable(int aWidth,
int aHeight,
ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser,
ILcdGLDrawable aShareWith)
Creates a new offscreen ILcdGLDrawable with the specified size and
capabilities.
|
default ILcdGLDrawable |
createJavaFXDrawable()
Creates a new
ILcdGLDrawable for use in JavaFX applications. |
default ILcdGLDrawable |
createJavaFXDrawable(int aWidth,
int aHeight)
Creates a new
ILcdGLDrawable with the specified size, for use in JavaFX applications. |
default TLcdGLDrawableHolder |
createLightweightGLDrawable()
Creates a new ILcdGLDrawable with default capabilities.
|
default TLcdGLDrawableHolder |
createLightweightGLDrawable(GraphicsDevice aGraphicsDevice)
Creates an ILcdGLDrawable with default capabilities for the specified
GraphicsDevice.
|
default TLcdGLDrawableHolder |
createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities)
Creates a new ILcdGLDrawable with the specified capabilities.
|
default TLcdGLDrawableHolder |
createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities,
GraphicsDevice aGraphicsDevice)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
default TLcdGLDrawableHolder |
createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Creates a new ILcdGLDrawable with the specified capabilities.
|
default TLcdGLDrawableHolder |
createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser,
GraphicsDevice aGraphicsDevice)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
TLcdGLDrawableHolder |
createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities,
ILcdGLCapabilitiesChooser aGLCapabilitiesChooser,
GraphicsDevice aGraphicsDevice,
ILcdGLDrawable aShareWith)
Creates a new ILcdGLDrawable with the specified capabilities for the given
GraphicsDevice.
|
default boolean |
isContextSharingSupported()
Indicates whether this OpenGL binding can support GL context sharing.
|
ILcdGLCapabilities createGLCapabilities()
default TLcdGLDrawableHolder createGLDrawable()
default TLcdGLDrawableHolder createGLDrawable(ILcdGLCapabilities aGLCapabilities)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesdefault TLcdGLDrawableHolder createGLDrawable(GraphicsDevice aGraphicsDevice)
aGraphicsDevice
- a GraphicsDevicedefault TLcdGLDrawableHolder createGLDrawable(ILcdGLCapabilities aGLCapabilities, GraphicsDevice aGraphicsDevice)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGraphicsDevice
- a GraphicsDevicedefault TLcdGLDrawableHolder createGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooserdefault TLcdGLDrawableHolder createGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser, GraphicsDevice aGraphicsDevice)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooseraGraphicsDevice
- a GraphicsDeviceTLcdGLDrawableHolder createGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser, GraphicsDevice aGraphicsDevice, ILcdGLDrawable aShareWith)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooseraGraphicsDevice
- a GraphicsDeviceaShareWith
- an existing ILcdGLDrawable to do context sharing withdefault TLcdGLDrawableHolder createLightweightGLDrawable()
default TLcdGLDrawableHolder createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesdefault TLcdGLDrawableHolder createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooserdefault TLcdGLDrawableHolder createLightweightGLDrawable(GraphicsDevice aGraphicsDevice)
aGraphicsDevice
- a GraphicsDevicedefault TLcdGLDrawableHolder createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities, GraphicsDevice aGraphicsDevice)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGraphicsDevice
- a GraphicsDevicedefault TLcdGLDrawableHolder createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser, GraphicsDevice aGraphicsDevice)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooseraGraphicsDevice
- a GraphicsDeviceTLcdGLDrawableHolder createLightweightGLDrawable(ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser, GraphicsDevice aGraphicsDevice, ILcdGLDrawable aShareWith)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooseraGraphicsDevice
- a GraphicsDeviceaShareWith
- an existing ILcdGLDrawable to do context sharing withdefault ILcdGLOffScreenDrawable createGLOffScreenDrawable(int aWidth, int aHeight)
aWidth
- the initial width of the drawable (in pixels)aHeight
- the initial height of the drawable (in pixels)default ILcdGLOffScreenDrawable createGLOffScreenDrawable(int aWidth, int aHeight, ILcdGLCapabilities aGLCapabilities)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aWidth
- the initial width of the drawable (in pixels)aHeight
- the initial height of the drawable (in pixels)aGLCapabilities
- an ILcdGLCapabilitiesdefault ILcdGLOffScreenDrawable createGLOffScreenDrawable(int aWidth, int aHeight, ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aWidth
- the initial width of the drawable (in pixels)aHeight
- the initial height of the drawable (in pixels)aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooserILcdGLOffScreenDrawable createGLOffScreenDrawable(int aWidth, int aHeight, ILcdGLCapabilities aGLCapabilities, ILcdGLCapabilitiesChooser aGLCapabilitiesChooser, ILcdGLDrawable aShareWith)
Note that the values in ILcdGLCapabilities are considered to be hints: there is no guarantee that the requested color depths, framebuffer layouts or other settings will effectively be available when the drawable is created.
aWidth
- the initial width of the drawable (in pixels)aHeight
- the initial height of the drawable (in pixels)aGLCapabilities
- an ILcdGLCapabilitiesaGLCapabilitiesChooser
- an ILcdGLCapabilitiesChooseraShareWith
- an existing ILcdGLDrawable to do context sharing withILcdGLExternalDrawable createExternalGLDrawable()
ILcdGLDrawable
for an externally supplied OpenGL
context. See ILcdGLExternalDrawable
for more information.default boolean isContextSharingSupported()
default ILcdGLDrawable createJavaFXDrawable()
ILcdGLDrawable
for use in JavaFX applications.ILcdGLDrawable
that can be cast to a JavaFX Node.default ILcdGLDrawable createJavaFXDrawable(int aWidth, int aHeight)
ILcdGLDrawable
with the specified size, for use in JavaFX applications.ILcdGLDrawable
that can be cast to a JavaFX Node.