| Modifier and Type | Field and Description |
|---|---|
| private static Method | |
| private static boolean | |
| private static Method | |
| public static final int | |
| private static boolean | |
| public static final int | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static Method | |
| private static boolean | |
| private static Method | |
| private static Method | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static Method | |
| private static GLContext | |
| private static Method | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| public static long | createOGLContextOnSurface(final Graphics g, final long shareCtx)
(Mac OS X-specific) Creates a new OpenGL context on the surface associated with the given Graphics object, sharing textures and display lists with the specified (CGLContextObj) share context. |
| public static void | |
| public static GLContext | filterShareContext(final GLContext shareContext)
Returns either the given GLContext or a substitute one with which clients should share textures and display lists. |
| public static Rectangle | getOGLScissorBox(final Graphics g)
Returns the OpenGL scissor region associated with the given Graphics object, taking into account all clipping regions, etc. To avoid destroying Java2D's previous rendering results, this method should be called and the resulting rectangle's bounds passed to a call to glScissor(). |
| public static Object | getOGLSurfaceIdentifier(final Graphics g)
Returns an opaque "surface identifier" associated with the given Graphics object. |
| public static int | getOGLSurfaceType(final Graphics g)
Returns the underlying surface type for the given Graphics object. |
| public static int | getOGLTextureType(final Graphics g)
Returns the underlying texture target of the given Graphics object assuming it is rendering to an FBO. |
| private static int | |
| public static Rectangle | getOGLViewport(final Graphics g, final int componentWidth, final int componentHeight)
Returns the OpenGL viewport associated with the given Graphics object, assuming that the Graphics object is associated with a component of the specified width and height. |
| public static GLContext | getShareContext(final GraphicsDevice device)
Returns the GLContext associated with the Java2D "share context", with which all contexts created by JOGL must share textures and display lists when the FBO option is enabled for the Java2D/OpenGL pipeline. |
| private static void | |
| public static void | invokeWithOGLContextCurrent(final Graphics g, final Runnable r)
Makes current the OpenGL context associated with the passed Graphics object and runs the given Runnable on the Queue Flushing Thread in one atomic action. |
| public static boolean | invokeWithOGLSharedContextCurrent(final GraphicsConfiguration g, final Runnable r)
Makes current the "shared" OpenGL context associated with the given GraphicsConfiguration object, allowing JOGL to share server-side OpenGL objects like textures and display lists with this context when necessary. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | makeOGLContextCurrentOnSurface(final Graphics g, final long ctx)
(Mac OS X-specific) Makes the given OpenGL context current on the surface associated with the given Graphics object. |
| createOGLContextOnSurfaceMethod | back to summary |
|---|---|
| private static Method createOGLContextOnSurfaceMethod | |
| DEBUG | back to summary |
|---|---|
| private static boolean DEBUG | |
| destroyOGLContextMethod | back to summary |
|---|---|
| private static Method destroyOGLContextMethod | |
| FBOBJECT | back to summary |
|---|---|
| public static final int FBOBJECT | |
| fbObjectSupportInitialized | back to summary |
|---|---|
| private static boolean fbObjectSupportInitialized | |
| FLIP_BACKBUFFER | back to summary |
|---|---|
| public static final int FLIP_BACKBUFFER | |
| getOGLScissorBoxMethod | back to summary |
|---|---|
| private static Method getOGLScissorBoxMethod | |
| getOGLSurfaceIdentifierMethod | back to summary |
|---|---|
| private static Method getOGLSurfaceIdentifierMethod | |
| getOGLSurfaceTypeMethod | back to summary |
|---|---|
| private static Method getOGLSurfaceTypeMethod | |
| getOGLTextureTypeMethod | back to summary |
|---|---|
| private static Method getOGLTextureTypeMethod | |
| getOGLViewportMethod | back to summary |
|---|---|
| private static Method getOGLViewportMethod | |
| initializedJ2DFBOShareContext | back to summary |
|---|---|
| private static boolean initializedJ2DFBOShareContext | |
| invokeWithOGLContextCurrentMethod | back to summary |
|---|---|
| private static Method invokeWithOGLContextCurrentMethod | |
| invokeWithOGLSharedContextCurrentMethod | back to summary |
|---|---|
| private static Method invokeWithOGLSharedContextCurrentMethod | |
| isHeadless | back to summary |
|---|---|
| private static boolean isHeadless | |
| isOGLPipelineActive | back to summary |
|---|---|
| private static boolean isOGLPipelineActive | |
| isOGLPipelineResourceCompatible | back to summary |
|---|---|
| private static boolean isOGLPipelineResourceCompatible | |
| isQueueFlusherThreadMethod | back to summary |
|---|---|
| private static Method isQueueFlusherThreadMethod | |
| j2dFBOShareContext | back to summary |
|---|---|
| private static GLContext j2dFBOShareContext | |
| makeOGLContextCurrentOnSurfaceMethod | back to summary |
|---|---|
| private static Method makeOGLContextCurrentOnSurfaceMethod | |
| PBUFFER | back to summary |
|---|---|
| public static final int PBUFFER | |
| TEXTURE | back to summary |
|---|---|
| public static final int TEXTURE | |
| UNDEFINED | back to summary |
|---|---|
| public static final int UNDEFINED | |
| WINDOW | back to summary |
|---|---|
| public static final int WINDOW | |
| Java2D | back to summary |
|---|---|
| public Java2D() | |
| checkActive | back to summary |
|---|---|
| private static void checkActive() | |
| checkCompatible | back to summary |
|---|---|
| private static void checkCompatible() | |
| createOGLContextOnSurface | back to summary |
|---|---|
| public static long createOGLContextOnSurface(final Graphics g, final long shareCtx) (Mac OS X-specific) Creates a new OpenGL context on the surface associated with the given Graphics object, sharing textures and display lists with the specified (CGLContextObj) share context. | |
| destroyOGLContext | back to summary |
|---|---|
| public static void destroyOGLContext(final long ctx) (Mac OS X-specific) Destroys the given OpenGL context. | |
| filterShareContext | back to summary |
|---|---|
| public static GLContext filterShareContext(final GLContext shareContext) Returns either the given GLContext or a substitute one with which clients should share textures and display lists. Needed when the Java2D/OpenGL pipeline is active and FBOs are being used for rendering. FIXME: may need to alter the API in the future to indicate which GraphicsDevice the source context is associated with. | |
| getOGLScissorBox | back to summary |
|---|---|
| public static Rectangle getOGLScissorBox(final Graphics g) Returns the OpenGL scissor region associated with the given Graphics object, taking into account all clipping regions, etc. To avoid destroying Java2D's previous rendering results, this method should be called and the resulting rectangle's bounds passed to a call to glScissor(). Should only be called from the Queue Flusher Thread. | |
| getOGLSurfaceIdentifier | back to summary |
|---|---|
| public static Object getOGLSurfaceIdentifier(final Graphics g) Returns an opaque "surface identifier" associated with the given Graphics object. If this changes from invocation to invocation, the underlying OpenGL drawable for the Graphics object has changed and a new external GLDrawable and GLContext should be created (and the old ones destroyed). Should only be called from the Queue Flusher Thread. | |
| getOGLSurfaceType | back to summary |
|---|---|
| public static int getOGLSurfaceType(final Graphics g) Returns the underlying surface type for the given Graphics object. This indicates, in particular, whether Java2D is currently rendering into a pbuffer or FBO. | |
| getOGLTextureType | back to summary |
|---|---|
| public static int getOGLTextureType(final Graphics g) Returns the underlying texture target of the given Graphics object assuming it is rendering to an FBO. Returns either GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB. | |
| getOGLUtilitiesIntField | back to summary |
|---|---|
| private static int getOGLUtilitiesIntField(final String name) | |
| getOGLViewport | back to summary |
|---|---|
| public static Rectangle getOGLViewport(final Graphics g, final int componentWidth, final int componentHeight) Returns the OpenGL viewport associated with the given Graphics object, assuming that the Graphics object is associated with a component of the specified width and height. The user should call glViewport() with the returned rectangle's bounds in order to get correct rendering results. Should only be called from the Queue Flusher Thread. | |
| getShareContext | back to summary |
|---|---|
| public static GLContext getShareContext(final GraphicsDevice device) Returns the GLContext associated with the Java2D "share context", with which all contexts created by JOGL must share textures and display lists when the FBO option is enabled for the Java2D/OpenGL pipeline. | |
| initFBOShareContext | back to summary |
|---|---|
| private static void initFBOShareContext(final GraphicsDevice device) | |
| invokeWithOGLContextCurrent | back to summary |
|---|---|
| public static void invokeWithOGLContextCurrent(final Graphics g, final Runnable r) throws GLException Makes current the OpenGL context associated with the passed Graphics object and runs the given Runnable on the Queue Flushing Thread in one atomic action. | |
| invokeWithOGLSharedContextCurrent | back to summary |
|---|---|
| public static boolean invokeWithOGLSharedContextCurrent(final GraphicsConfiguration g, final Runnable r) throws GLException Makes current the "shared" OpenGL context associated with the given GraphicsConfiguration object, allowing JOGL to share server-side OpenGL objects like textures and display lists with this context when necessary. This is needed when Java2D's FBO support is enabled, because in order to render into that FBO, JOGL must share textures and display lists with it. Returns false if the passed GraphicsConfiguration was not an OpenGL GraphicsConfiguration. | |
| isFBOEnabled | back to summary |
|---|---|
| public static boolean isFBOEnabled() | |
| isOGLPipelineActive | back to summary |
|---|---|
| public static boolean isOGLPipelineActive() | |
| isOGLPipelineResourceCompatible | back to summary |
|---|---|
| public static boolean isOGLPipelineResourceCompatible() | |
| isQueueFlusherThread | back to summary |
|---|---|
| public static boolean isQueueFlusherThread() | |
| makeOGLContextCurrentOnSurface | back to summary |
|---|---|
| public static boolean makeOGLContextCurrentOnSurface(final Graphics g, final long ctx) (Mac OS X-specific) Makes the given OpenGL context current on the surface associated with the given Graphics object. | |