public class WrappedSurface extends ProxySurface implements SurfaceChangeable
DEBUGLOCK_SUCCESS, LOCK_SURFACE_CHANGED, LOCK_SURFACE_NOT_READY, LOCK_SURFACE_UNLOCKED| Constructor and Description |
|---|
WrappedSurface(AbstractGraphicsConfiguration cfg) |
WrappedSurface(AbstractGraphicsConfiguration cfg,
long handle) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSurfaceHandle()
Returns the handle to the surface for this NativeSurface.
|
void |
setSurfaceHandle(long surfaceHandle)
Sets the surface handle which is created outside of this implementation
|
String |
toString() |
addSurfaceUpdatedListener, addSurfaceUpdatedListener, getDisplayHandle, getGraphicsConfiguration, getHeight, getScreenIndex, getSurfaceLockOwner, getWidth, isSurfaceLocked, isSurfaceLockedByOtherThread, lockSurface, removeSurfaceUpdatedListener, surfaceSizeChanged, surfaceSwap, surfaceUpdated, unlockSurface, validateSurfaceLockedequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsurfaceSizeChangedpublic WrappedSurface(AbstractGraphicsConfiguration cfg)
public WrappedSurface(AbstractGraphicsConfiguration cfg, long handle)
public final long getSurfaceHandle()
NativeSurface
The surface handle should be set/update by NativeSurface.lockSurface(),
where NativeSurface.unlockSurface() is not allowed to modify it.
After NativeSurface.unlockSurface() it is no more guaranteed
that the surface handle is still valid.
The surface handle shall reflect the platform one
for all drawable surface operations, e.g. opengl, swap-buffer.
On X11 this returns an entity of type Window,
since there is no differentiation of surface and window there.
On Microsoft Windows this returns an entity of type HDC.
getSurfaceHandle in interface NativeSurfacegetSurfaceHandle in class ProxySurfacepublic final void setSurfaceHandle(long surfaceHandle)
SurfaceChangeablesetSurfaceHandle in interface SurfaceChangeablepublic String toString()
toString in class ProxySurfaceCopyright 2010 JogAmp Community.