Package com.jogamp.nativewindow
Class GenericUpstreamSurfacelessHook
- java.lang.Object
-
- com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
-
- com.jogamp.nativewindow.GenericUpstreamSurfacelessHook
-
- All Implemented Interfaces:
UpstreamSurfaceHook
,UpstreamSurfaceHook.MutableSize
public class GenericUpstreamSurfacelessHook extends UpstreamSurfaceHookMutableSize
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jogamp.nativewindow.UpstreamSurfaceHook
UpstreamSurfaceHook.MutableSize
-
-
Constructor Summary
Constructors Constructor Description GenericUpstreamSurfacelessHook(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(ProxySurface s)
called withinProxySurface.createNotify()
within lock, before using surface.void
destroy(ProxySurface s)
called withinProxySurface.destroyNotify()
within lock, before clearing fields.-
Methods inherited from class com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize
getSurfaceHeight, getSurfaceWidth, getUpstreamSurface, setSurfaceSize, toString
-
-
-
-
Constructor Detail
-
GenericUpstreamSurfacelessHook
public GenericUpstreamSurfacelessHook(int width, int height)
- Parameters:
width
- the initial width as returned byNativeSurface.getSurfaceWidth()
viaUpstreamSurfaceHook.getSurfaceWidth(ProxySurface)
, not the actual dummy surface width. The latter is platform specific and smallheight
- the initial height as returned byNativeSurface.getSurfaceHeight()
viaUpstreamSurfaceHook.getSurfaceHeight(ProxySurface)
, not the actual dummy surface height, The latter is platform specific and small
-
-
Method Detail
-
create
public final void create(ProxySurface s)
Description copied from interface:UpstreamSurfaceHook
called withinProxySurface.createNotify()
within lock, before using surface.- Specified by:
create
in interfaceUpstreamSurfaceHook
- Overrides:
create
in classUpstreamSurfaceHookMutableSize
-
destroy
public final void destroy(ProxySurface s)
Description copied from interface:UpstreamSurfaceHook
called withinProxySurface.destroyNotify()
within lock, before clearing fields.- Specified by:
destroy
in interfaceUpstreamSurfaceHook
- Overrides:
destroy
in classUpstreamSurfaceHookMutableSize
-
-