com.jogamp.opengl.impl.egl
Class EGLDrawableFactory

java.lang.Object
  extended by javax.media.opengl.GLDrawableFactory
      extended by com.jogamp.opengl.impl.GLDrawableFactoryImpl
          extended by com.jogamp.opengl.impl.egl.EGLDrawableFactory

public class EGLDrawableFactory
extends GLDrawableFactoryImpl


Field Summary
 
Fields inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl
DEBUG
 
Fields inherited from class javax.media.opengl.GLDrawableFactory
glDrawableFactories
 
Constructor Summary
EGLDrawableFactory()
           
 
Method Summary
 boolean canCreateContextOnJava2DSurface(AbstractGraphicsDevice device)
           
 boolean canCreateExternalGLDrawable(AbstractGraphicsDevice device)
          Returns true if it is possible to create an external GLDrawable object via GLDrawableFactory.createExternalGLDrawable().
 boolean canCreateGLPbuffer(AbstractGraphicsDevice device)
          Returns true if it is possible to create a GLPbuffer.
 GLContext createContextOnJava2DSurface(Object graphics, GLContext shareWith)
           
protected  GLContext createExternalGLContextImpl()
           
protected  GLDrawable createExternalGLDrawableImpl()
           
protected  GLDrawableImpl createGLPbufferDrawableImpl(NativeSurface target)
          Target must implement SurfaceChangeable
protected  GLDrawableImpl createOffscreenDrawableImpl(NativeSurface target)
           
protected  NativeSurface createOffscreenSurfaceImpl(GLCapabilitiesImmutable capsChosen, GLCapabilitiesImmutable capsRequested, GLCapabilitiesChooser chooser, int width, int height)
          creates an offscreen NativeSurface, which must implement SurfaceChangeable as well, so the windowing system related implementation is able to set the surface handle.
protected  GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target)
           
 AbstractGraphicsDevice getDefaultDevice()
          Retrieve the default device AbstractGraphicsDevice.getConnection().
 GLDynamicLookupHelper getGLDynamicLookupHelper(int esProfile)
          Returns the GLDynamicLookupHelper
 boolean getIsDeviceCompatible(AbstractGraphicsDevice device)
           
protected  GLContext getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
           
protected  void shutdownInstance()
           
 
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 javax.media.opengl.GLDrawableFactory
getFactory, getFactoryImpl, getIsSharedContextAvailable, getOrCreateSharedContext, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EGLDrawableFactory

public EGLDrawableFactory()
Method Detail

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.