public abstract class GLDrawableFactoryImpl extends GLDrawableFactory
Constructor and Description |
---|
GLDrawableFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canCreateContextOnJava2DSurface() |
abstract GLContext |
createContextOnJava2DSurface(Graphics g,
GLContext shareWith) |
abstract GLDrawableImpl |
createOffscreenDrawable(GLCapabilities capabilities,
GLCapabilitiesChooser chooser)
Creates a (typically software-accelerated) offscreen GLDrawable
used to implement the fallback rendering path of the
GLJPanel.
|
abstract long |
dynamicLookupFunction(String glFuncName)
Dynamically looks up the given function.
|
static GLDrawableFactoryImpl |
getFactoryImpl() |
protected Buffer |
getGammaRamp()
Gets the current gamma ramp.
|
protected int |
getGammaRampLength()
Returns the length of the computed gamma ramp for this OS and
hardware.
|
abstract void |
loadGLULibrary() |
abstract void |
lockAWTForJava2D()
Locks the AWT for the purposes of Java2D/JOGL integration.
|
void |
resetDisplayGamma() |
protected void |
resetGammaRamp(Buffer originalGammaRamp)
Resets the gamma ramp, potentially using the specified Buffer as
data to restore the original values.
|
boolean |
setDisplayGamma(float gamma,
float brightness,
float contrast)
Sets the gamma, brightness, and contrast of the current main
display.
|
protected boolean |
setGammaRamp(float[] ramp)
Sets the gamma ramp for the main screen.
|
abstract void |
unlockAWTForJava2D()
Unlocks the AWT for the purposes of Java2D/JOGL integration.
|
canCreateExternalGLDrawable, canCreateGLPbuffer, chooseGraphicsConfiguration, createExternalGLContext, createExternalGLDrawable, createGLPbuffer, getFactory, getGLDrawable
public abstract GLDrawableImpl createOffscreenDrawable(GLCapabilities capabilities, GLCapabilitiesChooser chooser)
public abstract long dynamicLookupFunction(String glFuncName)
public abstract void lockAWTForJava2D()
public abstract void unlockAWTForJava2D()
public static GLDrawableFactoryImpl getFactoryImpl()
public abstract void loadGLULibrary()
public abstract boolean canCreateContextOnJava2DSurface()
public abstract GLContext createContextOnJava2DSurface(Graphics g, GLContext shareWith) throws GLException
GLException
public boolean setDisplayGamma(float gamma, float brightness, float contrast) throws IllegalArgumentException
gamma
- The gamma value, typically > 1.0 (default value is
1.0)brightness
- The brightness value between -1.0 and 1.0,
inclusive (default value is 0)contrast
- The contrast, greater than 0.0 (default value is 1)IllegalArgumentException
- if any of the parameters were
out-of-boundspublic void resetDisplayGamma()
protected int getGammaRampLength()
protected boolean setGammaRamp(float[] ramp)
protected Buffer getGammaRamp()
protected void resetGammaRamp(Buffer originalGammaRamp)
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.