com.jogamp.nativewindow
Class WrappedSurface
java.lang.Object
javax.media.nativewindow.ProxySurface
com.jogamp.nativewindow.WrappedSurface
- All Implemented Interfaces:
- NativeSurface, SurfaceChangeable, SurfaceUpdatedListener
public class WrappedSurface
- extends ProxySurface
- implements SurfaceChangeable
Methods inherited from class javax.media.nativewindow.ProxySurface |
addSurfaceUpdatedListener, addSurfaceUpdatedListener, getDisplayHandle, getGraphicsConfiguration, getHeight, getScreenIndex, getSurfaceLockOwner, getWidth, isSurfaceLocked, isSurfaceLockedByOtherThread, lockSurface, removeSurfaceUpdatedListener, surfaceSizeChanged, surfaceSwap, surfaceUpdated, unlockSurface, validateSurfaceLocked |
WrappedSurface
public WrappedSurface(AbstractGraphicsConfiguration cfg)
WrappedSurface
public WrappedSurface(AbstractGraphicsConfiguration cfg,
long handle)
getSurfaceHandle
public final long getSurfaceHandle()
- Description copied from interface:
NativeSurface
- Returns the handle to the surface for this 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.
- Specified by:
getSurfaceHandle
in interface NativeSurface
- Specified by:
getSurfaceHandle
in class ProxySurface
setSurfaceHandle
public final void setSurfaceHandle(long surfaceHandle)
- Description copied from interface:
SurfaceChangeable
- Sets the surface handle which is created outside of this implementation
- Specified by:
setSurfaceHandle
in interface SurfaceChangeable
toString
public String toString()
- Specified by:
toString
in class ProxySurface
Copyright 2010 JogAmp Community.