Package com.jogamp.nativewindow.awt

Examples of com.jogamp.nativewindow.awt.JAWTWindow


        // determined in 'getBestConfiguration'
      GraphicsConfigInfo gcInf0 = Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration);
      AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();

        // JAWTWindow
      JAWTWindow nativeWindow = (JAWTWindow)NativeWindowFactory.getNativeWindow(cv, awtConfig);
      nativeWindow.lockSurface();
        try {
          glDrawable = GLDrawableFactory.getFactory(profile).createGLDrawable(nativeWindow);
          glContext = glDrawable.createContext(context(shareCtx));
        }
        finally {
          nativeWindow.unlockSurface();
        }

        cv.drawable = new JoglDrawable(glDrawable, nativeWindow);
        }
View Full Code Here


static boolean isOffscreenLayerSurfaceEnabled(Canvas3D cv) {
  if (cv.drawable == null || cv.offScreen)
    return false;

  JoglDrawable joglDrawble = (JoglDrawable)cv.drawable;
  JAWTWindow jawtwindow = (JAWTWindow)joglDrawble.getNativeWindow();
  if (jawtwindow == null)
    return false;

  return jawtwindow.isOffscreenLayerSurfaceEnabled();
}
View Full Code Here

TOP

Related Classes of com.jogamp.nativewindow.awt.JAWTWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.