public class WrappedSurface extends ProxySurface implements SurfaceChangeable
DEBUG
LOCK_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, validateSurfaceLocked
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
surfaceSizeChanged
public 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 NativeSurface
getSurfaceHandle
in class ProxySurface
public final void setSurfaceHandle(long surfaceHandle)
SurfaceChangeable
setSurfaceHandle
in interface SurfaceChangeable
public String toString()
toString
in class ProxySurface
Copyright 2010 JogAmp Community.