|
|||||||||
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.macosx.cgl.MacOSXCGLDrawableFactory
public class MacOSXCGLDrawableFactory
Field Summary |
---|
Fields inherited from class com.jogamp.opengl.impl.GLDrawableFactoryImpl |
---|
DEBUG |
Fields inherited from class javax.media.opengl.GLDrawableFactory |
---|
glDrawableFactories |
Constructor Summary | |
---|---|
MacOSXCGLDrawableFactory()
|
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 |
boolean |
getIsDeviceCompatible(AbstractGraphicsDevice device)
|
protected GLContext |
getOrCreateSharedContextImpl(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 MacOSXCGLDrawableFactory()
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 GLContext getOrCreateSharedContextImpl(AbstractGraphicsDevice device)
getOrCreateSharedContextImpl
in class GLDrawableFactory
protected final void shutdownInstance()
shutdownInstance
in class GLDrawableFactory
protected GLDrawableImpl createOnscreenDrawableImpl(NativeSurface target)
createOnscreenDrawableImpl
in class GLDrawableFactoryImpl
protected GLDrawableImpl createOffscreenDrawableImpl(NativeSurface target)
createOffscreenDrawableImpl
in class GLDrawableFactoryImpl
public boolean canCreateGLPbuffer(AbstractGraphicsDevice device)
GLDrawableFactory
canCreateGLPbuffer
in class GLDrawableFactoryImpl
protected GLDrawableImpl createGLPbufferDrawableImpl(NativeSurface target)
GLDrawableFactoryImpl
createGLPbufferDrawableImpl
in class GLDrawableFactoryImpl
protected NativeSurface createOffscreenSurfaceImpl(GLCapabilitiesImmutable capsChosen, GLCapabilitiesImmutable capsRequested, GLCapabilitiesChooser chooser, int width, int height)
GLDrawableFactoryImpl
createOffscreenSurfaceImpl
in class GLDrawableFactoryImpl
protected GLContext createExternalGLContextImpl()
createExternalGLContextImpl
in class GLDrawableFactoryImpl
public boolean canCreateExternalGLDrawable(AbstractGraphicsDevice device)
GLDrawableFactory
GLDrawableFactory.createExternalGLDrawable()
.
canCreateExternalGLDrawable
in class GLDrawableFactory
protected GLDrawable createExternalGLDrawableImpl()
createExternalGLDrawableImpl
in class GLDrawableFactoryImpl
public boolean canCreateContextOnJava2DSurface(AbstractGraphicsDevice device)
canCreateContextOnJava2DSurface
in class GLDrawableFactoryImpl
public GLContext createContextOnJava2DSurface(Object graphics, GLContext shareWith) throws GLException
createContextOnJava2DSurface
in class GLDrawableFactoryImpl
GLException
protected int getGammaRampLength()
getGammaRampLength
in class GLDrawableFactoryImpl
protected boolean setGammaRamp(float[] ramp)
GLDrawableFactoryImpl
setGammaRamp
in class GLDrawableFactoryImpl
protected Buffer getGammaRamp()
GLDrawableFactoryImpl
getGammaRamp
in class GLDrawableFactoryImpl
protected 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 |