|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.opengl.GLDrawableFactory
com.jogamp.opengl.impl.GLDrawableFactoryImpl
com.jogamp.opengl.impl.x11.glx.X11GLXDrawableFactory
public class X11GLXDrawableFactory
Field Summary |
---|
Fields inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl |
---|
DEBUG |
Fields inherited from class javax.media.opengl.GLDrawableFactory |
---|
glDrawableFactories |
Constructor Summary | |
---|---|
X11GLXDrawableFactory()
|
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() . |
protected Buffer |
getGammaRamp()
Gets the current gamma ramp. |
protected int |
getGammaRampLength()
Returns the length of the computed gamma ramp for this OS and hardware. |
GLDynamicLookupHelper |
getGLDynamicLookupHelper(int profile)
Returns the GLDynamicLookupHelper |
protected String |
getGLXVendorName(AbstractGraphicsDevice device)
|
protected VersionNumber |
getGLXVersion(AbstractGraphicsDevice device)
|
boolean |
getIsDeviceCompatible(AbstractGraphicsDevice device)
|
protected com.jogamp.opengl.impl.x11.glx.X11GLXDrawableFactory.SharedResource |
getOrCreateShared(AbstractGraphicsDevice device)
|
protected GLContext |
getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
|
protected long |
getOrCreateSharedDpy(AbstractGraphicsDevice device)
|
boolean |
glXVersionGreaterEqualOneThree(AbstractGraphicsDevice device)
|
protected boolean |
isGLXVendorATI(AbstractGraphicsDevice device)
|
protected boolean |
isGLXVendorNVIDIA(AbstractGraphicsDevice device)
|
protected void |
resetGammaRamp(Buffer originalGammaRamp)
Resets the gamma ramp, potentially using the specified Buffer as data to restore the original values. |
protected boolean |
setGammaRamp(float[] ramp)
Sets the gamma ramp for the main screen. |
protected void |
shutdownInstance()
|
Methods inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl |
---|
createExternalGLContext, createExternalGLDrawable, createGLDrawable, createGLPbuffer, createGLPbufferDrawable, createOffscreenDrawable, getFactoryImpl, maybeDoSingleThreadedWorkaround, resetDisplayGamma, setDisplayGamma |
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 |
---|
public X11GLXDrawableFactory()
Method Detail |
---|
public GLDynamicLookupHelper getGLDynamicLookupHelper(int profile)
GLDrawableFactoryImpl
getGLDynamicLookupHelper
in class GLDrawableFactoryImpl
profile
- if EGL/ES, profile 1
refers to ES1 and 2
to ES2,
otherwise the profile is ignored.public final AbstractGraphicsDevice getDefaultDevice()
GLDrawableFactory
device
AbstractGraphicsDevice.getConnection()
. for this factorynull
default device, which must not be opened, ie. it's native handle may be null
.
getDefaultDevice
in class GLDrawableFactory
public final boolean getIsDeviceCompatible(AbstractGraphicsDevice device)
getIsDeviceCompatible
in class GLDrawableFactory
protected final com.jogamp.opengl.impl.x11.glx.X11GLXDrawableFactory.SharedResource getOrCreateShared(AbstractGraphicsDevice device)
protected final GLContext getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
getOrCreateSharedContextImpl
in class GLDrawableFactory
protected final long getOrCreateSharedDpy(AbstractGraphicsDevice device)
protected final VersionNumber getGLXVersion(AbstractGraphicsDevice device)
protected final String getGLXVendorName(AbstractGraphicsDevice device)
protected final boolean isGLXVendorATI(AbstractGraphicsDevice device)
protected final boolean isGLXVendorNVIDIA(AbstractGraphicsDevice device)
protected final void shutdownInstance()
shutdownInstance
in class GLDrawableFactory
protected final GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target)
createOnscreenDrawableImpl
in class GLDrawableFactoryImpl
protected final GLDrawableImpl createOffscreenDrawableImpl(NativeSurface target)
createOffscreenDrawableImpl
in class GLDrawableFactoryImpl
public final boolean glXVersionGreaterEqualOneThree(AbstractGraphicsDevice device)
public final boolean canCreateGLPbuffer(AbstractGraphicsDevice device)
GLDrawableFactory
canCreateGLPbuffer
in class GLDrawableFactoryImpl
protected final GLDrawableImpl createGLPbufferDrawableImpl(NativeSurface target)
GLDrawableFactoryImpl
createGLPbufferDrawableImpl
in class GLDrawableFactoryImpl
protected final NativeSurface createOffscreenSurfaceImpl(GLCapabilitiesImmutable capsChosen, GLCapabilitiesImmutable capsRequested, GLCapabilitiesChooser chooser, int width, int height)
GLDrawableFactoryImpl
createOffscreenSurfaceImpl
in class GLDrawableFactoryImpl
protected final GLContext createExternalGLContextImpl()
createExternalGLContextImpl
in class GLDrawableFactoryImpl
public final boolean canCreateExternalGLDrawable(AbstractGraphicsDevice device)
GLDrawableFactory
GLDrawableFactory.createExternalGLDrawable()
.
canCreateExternalGLDrawable
in class GLDrawableFactory
protected final GLDrawable createExternalGLDrawableImpl()
createExternalGLDrawableImpl
in class GLDrawableFactoryImpl
public final boolean canCreateContextOnJava2DSurface(AbstractGraphicsDevice device)
canCreateContextOnJava2DSurface
in class GLDrawableFactoryImpl
public final GLContext createContextOnJava2DSurface(Object graphics, GLContext shareWith) throws GLException
createContextOnJava2DSurface
in class GLDrawableFactoryImpl
GLException
protected final int getGammaRampLength()
GLDrawableFactoryImpl
getGammaRampLength
in class GLDrawableFactoryImpl
protected final boolean setGammaRamp(float[] ramp)
GLDrawableFactoryImpl
setGammaRamp
in class GLDrawableFactoryImpl
protected final Buffer getGammaRamp()
GLDrawableFactoryImpl
getGammaRamp
in class GLDrawableFactoryImpl
protected final void resetGammaRamp(Buffer originalGammaRamp)
GLDrawableFactoryImpl
resetGammaRamp
in class GLDrawableFactoryImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |