All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jogamp.opengl.egl.EGLWrappedSurface Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
package jogamp.opengl.egl;

import javax.media.nativewindow.NativeSurface;

import jogamp.nativewindow.WrappedSurface;

/**
 * 
 * EGLWrappedSurface [ is_a -> WrappedSurface -> ProxySurfaceImpl -> ProxySurface -> MutableSurface -> NativeSurface] has_a
 *     EGLUpstreamSurfaceHook [ is_a -> UpstreamSurfaceHook.MutableSize -> UpstreamSurfaceHook ] has_a
 *        NativeSurface (i.e. native X11 surface)
 * 
*/ public class EGLWrappedSurface extends WrappedSurface { public static EGLWrappedSurface get(NativeSurface surface) { if(surface instanceof EGLWrappedSurface) { return (EGLWrappedSurface)surface; } return new EGLWrappedSurface(surface); } public EGLWrappedSurface(NativeSurface surface) { super(surface.getGraphicsConfiguration(), EGL.EGL_NO_SURFACE, new EGLUpstreamSurfaceHook(surface), false /* tbd in UpstreamSurfaceHook */); if(EGLDrawableFactory.DEBUG) { System.err.println("EGLWrappedSurface.ctor(): "+this); } } @Override public final NativeSurface getUpstreamSurface() { return ((EGLUpstreamSurfaceHook)super.getUpstreamSurfaceHook()).getUpstreamSurface(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy