|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.opengl.GLDrawableFactory
com.sun.opengl.impl.GLDrawableFactoryImpl
public abstract class GLDrawableFactoryImpl
Extends GLDrawableFactory with a few methods for handling typically software-accelerated offscreen rendering (Device Independent Bitmaps on Windows, pixmaps on X11). Direct access to these GLDrawables is not supplied directly to end users, though they may be instantiated by the GLJPanel implementation.
Constructor Summary | |
---|---|
GLDrawableFactoryImpl()
|
Method Summary | |
---|---|
abstract boolean |
canCreateContextOnJava2DSurface()
|
abstract GLContext |
createContextOnJava2DSurface(java.awt.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(java.lang.String glFuncName)
Dynamically looks up the given function. |
static GLDrawableFactoryImpl |
getFactoryImpl()
|
protected java.nio.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(java.nio.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. |
Methods inherited from class javax.media.opengl.GLDrawableFactory |
---|
canCreateExternalGLDrawable, canCreateGLPbuffer, chooseGraphicsConfiguration, createExternalGLContext, createExternalGLDrawable, createGLPbuffer, getFactory, getGLDrawable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLDrawableFactoryImpl()
Method Detail |
---|
public abstract GLDrawableImpl createOffscreenDrawable(GLCapabilities capabilities, GLCapabilitiesChooser chooser)
public abstract long dynamicLookupFunction(java.lang.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(java.awt.Graphics g, GLContext shareWith) throws GLException
GLException
public boolean setDisplayGamma(float gamma, float brightness, float contrast) throws java.lang.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)
java.lang.IllegalArgumentException
- if any of the parameters were
out-of-boundspublic void resetDisplayGamma()
protected int getGammaRampLength()
protected boolean setGammaRamp(float[] ramp)
protected java.nio.Buffer getGammaRamp()
protected void resetGammaRamp(java.nio.Buffer originalGammaRamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |