public interface AccelSurface extends BufferedContextProvider, Surface
| Modifier and Type | Field and Description |
|---|---|
static int |
FLIP_BACKBUFFER
A back-buffer surface (SwapChain surface for Direct3D, backbuffer for
OpenGL)
|
static int |
RT_PLAIN
Render-To Plain surface (pbuffer for OpenGL, Render Target surface
for Direct3D)
|
static int |
RT_TEXTURE
Render-To Texture surface (fbobject for OpenGL, texture with render-to
attribute for Direct3D)
|
static int |
TEXTURE
Texture surface
|
static int |
UNDEFINED
Undefined
|
static int |
WINDOW
Window (or window substitute) surface
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBounds()
Returns the requested bounds of the destination surface.
|
Rectangle |
getNativeBounds()
Returns real bounds of the native surface, which may differ from those
returned by
getBounds(). |
long |
getNativeOps()
Returns a pointer to the native surface data associated with this
surface.
|
long |
getNativeResource(int resType)
Returns a pointer to the real native resource
of the specified type associated with this AccelSurface.
|
int |
getType()
Returns
int representing surface's type as defined by constants
in this interface. |
boolean |
isSurfaceLost()
Returns whether this surface is lost.
|
boolean |
isValid()
Returns whether the pipeline considers this surface valid.
|
void |
markDirty()
Marks this surface dirty.
|
getContextstatic final int UNDEFINED
static final int WINDOW
static final int RT_PLAIN
static final int TEXTURE
static final int FLIP_BACKBUFFER
static final int RT_TEXTURE
int getType()
int representing surface's type as defined by constants
in this interface.UNDEFINED,
WINDOW,
RT_PLAIN,
TEXTURE,
FLIP_BACKBUFFER,
RT_TEXTURElong getNativeOps()
long getNativeResource(int resType)
resType - the type of the requested resourcevoid markDirty()
boolean isValid()
boolean isSurfaceLost()
true it could be lost in the next moment unless it is called
on the rendering thread.Rectangle getBounds()
getNativeBounds() to get the bounds of the native surface.Rectangle getNativeBounds()
getBounds().