| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | GLXSurfaceData.
A surface which implements a v-synced flip back-buffer with COPIED FlipContents. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private GLXGraphicsConfig | |
| protected X11ComponentPeer |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static GLXSurfaceData. | createData(X11ComponentPeer peer)
Creates a SurfaceData object representing the primary (front) buffer of an on-screen Window. |
| public static GLXSurfaceData. | createData(X11ComponentPeer peer, Image image, int type)
Creates a SurfaceData object representing the back buffer of a double-buffered on-screen Window. |
| public static GLXSurfaceData. | createData(GLXGraphicsConfig gc, int width, int height, ColorModel cm, Image image, int type)
Creates a SurfaceData object representing an off-screen buffer (either a FBO or Texture). |
| public GraphicsConfiguration | getDeviceConfiguration()
Implements abstract sun. Return the GraphicsConfiguration object that describes this destination surface. |
| public static GLXGraphicsConfig | |
| private native void |
| graphicsConfig | back to summary |
|---|---|
| private GLXGraphicsConfig graphicsConfig | |
| peer | back to summary |
|---|---|
| protected X11ComponentPeer peer | |
| GLXSurfaceData | back to summary |
|---|---|
| protected GLXSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc, ColorModel cm, int type) | |
| createData | back to summary |
|---|---|
| public static GLXSurfaceData. Creates a SurfaceData object representing the primary (front) buffer of an on-screen Window. | |
| createData | back to summary |
|---|---|
| public static GLXSurfaceData. Creates a SurfaceData object representing the back buffer of a double-buffered on-screen Window. | |
| createData | back to summary |
|---|---|
| public static GLXSurfaceData. Creates a SurfaceData object representing an off-screen buffer (either a FBO or Texture). | |
| getDeviceConfiguration | back to summary |
|---|---|
| public GraphicsConfiguration getDeviceConfiguration() Implements abstract sun. Doc from sun. Return the GraphicsConfiguration object that describes this destination surface.
| |
| getGC | back to summary |
|---|---|
| public static GLXGraphicsConfig getGC(X11ComponentPeer peer) | |
| initOps | back to summary |
|---|---|
| private native void initOps(OGLGraphicsConfig gc, X11ComponentPeer peer, long aData) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Image | |
| private final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | GLXOffScreenSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc, int width, int height, Image image, ColorModel cm, int type)
|
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | getBounds()
Implements abstract sun. Implements sun. Returns the requested bounds of the destination surface. |
| public double | getDefaultScaleX()
Overrides sun. Returns default horizontal scale factor of the destination surface. |
| public double | getDefaultScaleY()
Overrides sun. Returns default vertical scale factor of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Image associated with this SurfaceData. |
| public SurfaceData | getReplacement()
Implements abstract sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. |
| height | back to summary |
|---|---|
| private int height | |
| offscreenImage | back to summary |
|---|---|
| private Image offscreenImage | |
| scale | back to summary |
|---|---|
| private final int scale | |
| width | back to summary |
|---|---|
| private int width | |
| GLXOffScreenSurfaceData | back to summary |
|---|---|
| public GLXOffScreenSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc, int width, int height, Image image, ColorModel cm, int type) | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Implements sun. Doc from sun. Returns the requested bounds of the destination surface. The real bounds
of the native accelerated surface may differ. Use
| |
| getDefaultScaleX | back to summary |
|---|---|
| public double getDefaultScaleX() Overrides sun. Doc from sun. Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDefaultScaleY | back to summary |
|---|---|
| public double getDefaultScaleY() Overrides sun. Doc from sun. Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Image associated with this SurfaceData.
| |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Doc from sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement.
| |
| Modifier and Type | Field and Description |
|---|---|
| private GLXSurfaceData. |
| Access | Constructor and Description |
|---|---|
| public | GLXVSyncOffScreenSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc, int width, int height, Image image, ColorModel cm, int type)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | flush()
Overrides sun. Synchronously releases resources associated with this surface. |
| public SurfaceData |
| flipSurface | back to summary |
|---|---|
| private GLXSurfaceData. | |
| GLXVSyncOffScreenSurfaceData | back to summary |
|---|---|
| public GLXVSyncOffScreenSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc, int width, int height, Image image, ColorModel cm, int type) | |
| flush | back to summary |
|---|---|
| public void flush() Overrides sun. Doc from sun. Synchronously releases resources associated with this surface.
| |
| getFlipSurface | back to summary |
|---|---|
| public SurfaceData getFlipSurface() | |
| Modifier and Type | Field and Description |
|---|---|
| protected final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | getBounds()
Implements abstract sun. Implements sun. Returns the requested bounds of the destination surface. |
| public double | getDefaultScaleX()
Overrides sun. Returns default horizontal scale factor of the destination surface. |
| public double | getDefaultScaleY()
Overrides sun. Returns default vertical scale factor of the destination surface. |
| public Object | getDestination()
Implements abstract sun. Returns destination Component associated with this SurfaceData. |
| public SurfaceData | getReplacement()
Implements abstract sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. |
| scale | back to summary |
|---|---|
| protected final int scale | |
| GLXWindowSurfaceData | back to summary |
|---|---|
| public GLXWindowSurfaceData(X11ComponentPeer peer, GLXGraphicsConfig gc) | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract sun. Implements sun. Doc from sun. Returns the requested bounds of the destination surface. The real bounds
of the native accelerated surface may differ. Use
| |
| getDefaultScaleX | back to summary |
|---|---|
| public double getDefaultScaleX() Overrides sun. Doc from sun. Returns default horizontal scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDefaultScaleY | back to summary |
|---|---|
| public double getDefaultScaleY() Overrides sun. Doc from sun. Returns default vertical scale factor of the destination surface. Scale factor describes the mapping between virtual and physical coordinates of the SurfaceData. If the scale is 2 then virtual pixel coordinates need to be doubled for physical pixels.
| |
| getDestination | back to summary |
|---|---|
| public Object getDestination() Implements abstract sun. Returns destination Component associated with this SurfaceData.
| |
| getReplacement | back to summary |
|---|---|
| public SurfaceData getReplacement() Implements abstract sun. Doc from sun. Certain changes in the configuration of a surface require the invalidation of existing associated SurfaceData objects and the creation of brand new ones. These changes include size, ColorModel, or SurfaceType. Existing Graphics objects which are directed at such surfaces, however, must continue to render to them even after the change occurs underneath the covers. The getReplacement() method is called from SunGraphics2D.revalidateAll() when the associated SurfaceData is found to be invalid so that a Graphics object can continue to render to the surface in its new configuration. Such changes only tend to happen to window based surfaces since most image based surfaces never change size or pixel format. Even VolatileImage objects never change size and they only change their pixel format when manually validated against a new GraphicsConfiguration, at which point old Graphics objects are no longer expected to render to them after the validation step. Thus, only window based surfaces really need to deal with this form of replacement.
| |