| Modifier and Type | Field and Description |
|---|---|
| public static final int | FLIP_BACKBUFFER
A back-buffer surface (SwapChain surface for Direct3D, backbuffer for OpenGL) |
| public static final int | RT_PLAIN
Render-To Plain surface (Render Target surface for Direct3D) |
| public static final int | RT_TEXTURE
Render-To Texture surface (fbobject for OpenGL, texture with render-to attribute for Direct3D) |
| public static final int | TEXTURE
Texture surface |
| public static final int | UNDEFINED
Undefined |
| public static final int | WINDOW
Window (or window substitute) surface |
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | Returns: Rectangle representing java surface's boundsReturns the requested bounds of the destination surface. |
| public Rectangle | Returns: Rectangle representing native surface's boundsReturns real bounds of the native surface, which may differ from those
returned by |
| public long | Returns: pointer to the native surface's dataReturns a pointer to the native surface data associated with this surface. |
| public long | Returns: a long containing a pointer to the native resource of the specified type or 0L if such resource doesn't exist for this surfacethe type of the requested resource resType)Returns a pointer to the real native resource of the specified type associated with this AccelSurface. |
| public int | Returns: an integer representing this surface's typeReturns |
| public boolean | Returns: true if the surface is known to be lost, false otherwiseReturns whether this surface is lost. |
| public boolean | Returns: true if valid, false otherwiseReturns whether the pipeline considers this surface valid. |
| public void |
| FLIP_BACKBUFFER | back to summary |
|---|---|
| public static final int FLIP_BACKBUFFER A back-buffer surface (SwapChain surface for Direct3D, backbuffer for OpenGL) | |
| RT_PLAIN | back to summary |
|---|---|
| public static final int RT_PLAIN Render-To Plain surface (Render Target surface for Direct3D) | |
| RT_TEXTURE | back to summary |
|---|---|
| public static final int RT_TEXTURE Render-To Texture surface (fbobject for OpenGL, texture with render-to attribute for Direct3D) | |
| TEXTURE | back to summary |
|---|---|
| public static final int TEXTURE Texture surface | |
| UNDEFINED | back to summary |
|---|---|
| public static final int UNDEFINED Undefined | |
| WINDOW | back to summary |
|---|---|
| public static final int WINDOW Window (or window substitute) surface | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns the requested bounds of the destination surface. The real bounds
of the native accelerated surface may differ. Use
| |
| getNativeBounds | back to summary |
|---|---|
| public Rectangle getNativeBounds() Returns real bounds of the native surface, which may differ from those
returned by
| |
| getNativeOps | back to summary |
|---|---|
| public long getNativeOps() Returns a pointer to the native surface data associated with this surface. Note this pointer is only valid on the rendering thread.
| |
| getNativeResource | back to summary |
|---|---|
| public long getNativeResource(int resType) Returns a pointer to the real native resource of the specified type associated with this AccelSurface. Note this pointer is only valid on the rendering thread.
| |
| getType | back to summary |
|---|---|
| public int getType() Returns
| |
| isSurfaceLost | back to summary |
|---|---|
| public boolean isSurfaceLost() Returns whether this surface is lost. The return value is only valid
on the render thread, meaning that even if this method returns
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Returns whether the pipeline considers this surface valid. A surface may become invalid if it is disposed of, or resized.
| |
| markDirty | back to summary |
|---|---|
| public void markDirty() Marks this surface dirty. | |