| java.lang.Object sun.java2d.pipe.BufferedContext sun.java2d.opengl.OGLContext
OGLContext | class OGLContext extends BufferedContext (Code) | | Note that the RenderQueue lock must be acquired before calling any of
the methods in this class.
|
Field Summary | |
final static int | CAPS_DOUBLEBUFFERED Indicates that the context is doublebuffered. | final static int | CAPS_EMPTY Indicates that the context has no capabilities. | final static int | CAPS_EXT_BIOP_SHADER Indicates the presence of the GL_ARB_fragment_shader extension. | final static int | CAPS_EXT_FBOBJECT Indicates the presence of the GL_EXT_framebuffer_object extension. | final static int | CAPS_EXT_GRAD_SHADER Indicates the presence of the GL_ARB_fragment_shader extension. | final static int | CAPS_EXT_LCD_SHADER Indicates the presence of the GL_ARB_fragment_shader extension. | final static int | CAPS_EXT_MULTITEXTURE Indicates the presence of the GL_ARB_multitexture extension. | final static int | CAPS_EXT_TEXNONPOW2 Indicates the presence of the GL_ARB_texture_non_power_of_two ext. | final static int | CAPS_EXT_TEXRECT Indicates the presence of the GL_ARB_texture_rectangle extension. | final static int | CAPS_STORED_ALPHA Indicates that the context supports a stored alpha channel. |
CAPS_DOUBLEBUFFERED | final static int CAPS_DOUBLEBUFFERED(Code) | | Indicates that the context is doublebuffered.
|
CAPS_EMPTY | final static int CAPS_EMPTY(Code) | | Indicates that the context has no capabilities.
|
CAPS_EXT_BIOP_SHADER | final static int CAPS_EXT_BIOP_SHADER(Code) | | Indicates the presence of the GL_ARB_fragment_shader extension.
This cap will only be set if the biopshader system property has been
enabled and the hardware meets our minimum requirements.
|
CAPS_EXT_FBOBJECT | final static int CAPS_EXT_FBOBJECT(Code) | | Indicates the presence of the GL_EXT_framebuffer_object extension.
This cap will only be set if the fbobject system property has been
enabled and we are able to create an FBO with depth buffer.
|
CAPS_EXT_GRAD_SHADER | final static int CAPS_EXT_GRAD_SHADER(Code) | | Indicates the presence of the GL_ARB_fragment_shader extension.
This cap will only be set if the gradshader system property has been
enabled and the hardware meets our minimum requirements.
|
CAPS_EXT_LCD_SHADER | final static int CAPS_EXT_LCD_SHADER(Code) | | Indicates the presence of the GL_ARB_fragment_shader extension.
This cap will only be set if the lcdshader system property has been
enabled and the hardware supports the minimum number of texture units.
|
CAPS_EXT_MULTITEXTURE | final static int CAPS_EXT_MULTITEXTURE(Code) | | Indicates the presence of the GL_ARB_multitexture extension.
|
CAPS_EXT_TEXNONPOW2 | final static int CAPS_EXT_TEXNONPOW2(Code) | | Indicates the presence of the GL_ARB_texture_non_power_of_two ext.
|
CAPS_EXT_TEXRECT | final static int CAPS_EXT_TEXRECT(Code) | | Indicates the presence of the GL_ARB_texture_rectangle extension.
|
CAPS_STORED_ALPHA | final static int CAPS_STORED_ALPHA(Code) | | Indicates that the context supports a stored alpha channel.
|
invalidateCurrentContext | static void invalidateCurrentContext()(Code) | | Invalidates the currentContext field to ensure that we properly
revalidate the OGLContext (make it current, etc.) next time through
the validate() method. This is typically invoked from methods
that affect the current context state (e.g. disposing a context or
surface).
|
setScratchSurface | static void setScratchSurface(OGLGraphicsConfig gc)(Code) | | Convenience method that delegates to setScratchSurface() below.
|
setScratchSurface | static void setScratchSurface(long pConfigInfo)(Code) | | Makes the given GraphicsConfig's context current to its associated
"scratch surface". Each GraphicsConfig maintains a native context
(GLXContext on Unix, HGLRC on Windows) as well as a native pbuffer
known as the "scratch surface". By making the context current to the
scratch surface, we are assured that we have a current context for
the relevant GraphicsConfig, and can therefore perform operations
depending on the capabilities of that GraphicsConfig. For example,
if the GraphicsConfig supports the GL_ARB_texture_non_power_of_two
extension, then we should be able to make a non-pow2 texture for this
GraphicsConfig once we make the context current to the scratch surface.
This method should be used for operations with an OpenGL texture
as the destination surface (e.g. a sw->texture blit loop), or in those
situations where we may not otherwise have a current context (e.g.
when disposing a texture-based surface).
|
validateContext | static void validateContext(OGLSurfaceData srcData, OGLSurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)(Code) | | Fetches the OGLContext associated with the current GraphicsConfig
and validates the context using the given parameters. Most rendering
operations will call this method first in order to set the necessary
state before issuing rendering commands.
|
validateContext | static void validateContext(OGLSurfaceData dstData)(Code) | | Simplified version of validateContext() that disables all context
state settings.
|
|
|