com.jogamp.opengl.impl.egl
Class EGLDrawableFactory
java.lang.Object
javax.media.opengl.GLDrawableFactory
com.jogamp.opengl.impl.GLDrawableFactoryImpl
com.jogamp.opengl.impl.egl.EGLDrawableFactory
public class EGLDrawableFactory
- extends GLDrawableFactoryImpl
Methods inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl |
createExternalGLContext, createExternalGLDrawable, createGLDrawable, createGLPbuffer, createGLPbufferDrawable, createOffscreenDrawable, getFactoryImpl, getGammaRamp, getGammaRampLength, maybeDoSingleThreadedWorkaround, resetDisplayGamma, resetGammaRamp, setDisplayGamma, setGammaRamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EGLDrawableFactory
public EGLDrawableFactory()
getDefaultDevice
public final AbstractGraphicsDevice getDefaultDevice()
- Description copied from class:
GLDrawableFactory
- Retrieve the default
device
AbstractGraphicsDevice.getConnection()
. for this factory
The implementation must return a non null
default device, which must not be opened, ie. it's native handle may be null
.
- Specified by:
getDefaultDevice
in class GLDrawableFactory
- Returns:
- the default shared device for this factory, eg. :0.0 on X11 desktop.
getIsDeviceCompatible
public final boolean getIsDeviceCompatible(AbstractGraphicsDevice device)
- Specified by:
getIsDeviceCompatible
in class GLDrawableFactory
- Returns:
- true if the device is compatible with this factory, ie. if it can be used for creation. Otherwise false.
getOrCreateSharedContextImpl
protected final GLContext getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
- Specified by:
getOrCreateSharedContextImpl
in class GLDrawableFactory
getGLDynamicLookupHelper
public GLDynamicLookupHelper getGLDynamicLookupHelper(int esProfile)
- Description copied from class:
GLDrawableFactoryImpl
- Returns the GLDynamicLookupHelper
- Specified by:
getGLDynamicLookupHelper
in class GLDrawableFactoryImpl
- Parameters:
esProfile
- if EGL/ES, profile 1
refers to ES1 and 2
to ES2,
otherwise the profile is ignored.
shutdownInstance
protected final void shutdownInstance()
- Specified by:
shutdownInstance
in class GLDrawableFactory
createOnscreenDrawableImpl
protected GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target)
- Specified by:
createOnscreenDrawableImpl
in class GLDrawableFactoryImpl
createOffscreenDrawableImpl
protected GLDrawableImpl createOffscreenDrawableImpl(NativeSurface target)
- Specified by:
createOffscreenDrawableImpl
in class GLDrawableFactoryImpl
canCreateGLPbuffer
public boolean canCreateGLPbuffer(AbstractGraphicsDevice device)
- Description copied from class:
GLDrawableFactory
- Returns true if it is possible to create a GLPbuffer. Some older
graphics cards do not have this capability.
- Specified by:
canCreateGLPbuffer
in class GLDrawableFactoryImpl
createGLPbufferDrawableImpl
protected GLDrawableImpl createGLPbufferDrawableImpl(NativeSurface target)
- Description copied from class:
GLDrawableFactoryImpl
- Target must implement SurfaceChangeable
- Specified by:
createGLPbufferDrawableImpl
in class GLDrawableFactoryImpl
createOffscreenSurfaceImpl
protected NativeSurface createOffscreenSurfaceImpl(GLCapabilitiesImmutable capsChosen,
GLCapabilitiesImmutable capsRequested,
GLCapabilitiesChooser chooser,
int width,
int height)
- Description copied from class:
GLDrawableFactoryImpl
- creates an offscreen NativeSurface, which must implement SurfaceChangeable as well,
so the windowing system related implementation is able to set the surface handle.
- Specified by:
createOffscreenSurfaceImpl
in class GLDrawableFactoryImpl
createExternalGLContextImpl
protected GLContext createExternalGLContextImpl()
- Specified by:
createExternalGLContextImpl
in class GLDrawableFactoryImpl
canCreateExternalGLDrawable
public boolean canCreateExternalGLDrawable(AbstractGraphicsDevice device)
- Description copied from class:
GLDrawableFactory
- Returns true if it is possible to create an external GLDrawable
object via
GLDrawableFactory.createExternalGLDrawable()
.
- Specified by:
canCreateExternalGLDrawable
in class GLDrawableFactory
createExternalGLDrawableImpl
protected GLDrawable createExternalGLDrawableImpl()
- Specified by:
createExternalGLDrawableImpl
in class GLDrawableFactoryImpl
canCreateContextOnJava2DSurface
public boolean canCreateContextOnJava2DSurface(AbstractGraphicsDevice device)
- Specified by:
canCreateContextOnJava2DSurface
in class GLDrawableFactoryImpl
createContextOnJava2DSurface
public GLContext createContextOnJava2DSurface(Object graphics,
GLContext shareWith)
throws GLException
- Specified by:
createContextOnJava2DSurface
in class GLDrawableFactoryImpl
- Throws:
GLException
Copyright 2010 JogAmp Community.