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 createOffscreenDrawableImpl(NativeSurface target)
           
protected  NativeSurface createOffscreenSurfaceImpl(AbstractGraphicsDevice device, 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)
           
protected  List getAvailableCapabilitiesImpl(AbstractGraphicsDevice device)
           
 AbstractGraphicsDevice getDefaultDevice()
          Retrieve the default device connection, unit ID and unique ID name.
 GLDynamicLookupHelper getGLDynamicLookupHelper(int esProfile)
          Returns the GLDynamicLookupHelper
 boolean getIsDeviceCompatible(AbstractGraphicsDevice device)
           
protected  GLContext getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
           
protected  AbstractGraphicsDevice getOrCreateSharedDeviceImpl(AbstractGraphicsDevice device)
           
protected  void shutdownInstance()
           
 
Methods inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl
createExternalGLContext, createExternalGLDrawable, createGLDrawable, createGLPbuffer, createOffscreenDrawable, createOffscreenSurface, getFactoryImpl, getGammaRamp, getGammaRampLength, getOrCreateSharedDevice, maybeDoSingleThreadedWorkaround, resetDisplayGamma, resetGammaRamp, setDisplayGamma, setGammaRamp
 
Methods inherited from class javax.media.opengl.GLDrawableFactory
enterThreadCriticalZone, getAvailableCapabilities, getDesktopFactory, getEGLFactory, getFactory, getFactoryImpl, getFactoryImpl, getIsSharedContextAvailable, getOrCreateSharedContext, leaveThreadCriticalZone, shutdown, validateDevice
 
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 connection, unit ID and unique ID name. for this factory
The implementation must return a non null default device, which must not be opened, ie. it's native handle is 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
Parameters:
device - which connection denotes the shared the target device, may be null for the platform's default device.
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

getOrCreateSharedDeviceImpl

protected AbstractGraphicsDevice getOrCreateSharedDeviceImpl(AbstractGraphicsDevice device)
Specified by:
getOrCreateSharedDeviceImpl in class GLDrawableFactoryImpl

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

getAvailableCapabilitiesImpl

protected List getAvailableCapabilitiesImpl(AbstractGraphicsDevice device)
Specified by:
getAvailableCapabilitiesImpl 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
Parameters:
device - which connection denotes the shared the target device, may be null for the platform's default device.

createOffscreenSurfaceImpl

protected NativeSurface createOffscreenSurfaceImpl(AbstractGraphicsDevice device,
                                                   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
Parameters:
device - which connection denotes the shared the target device, may be null for the platform's default device.

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.