Package javax.media.opengl

Examples of javax.media.opengl.GLDrawable.createContext()


      GLDrawable  glDrawable   = null;
      GLContext   glContext  = null;

      if (offScreen) {
        glDrawable = drawable(cv.drawable); // cv.drawable != null, set in 'createOffScreenBuffer'
      glContext = glDrawable.createContext(context(shareCtx));
        }
      else {
        // determined in 'getBestConfiguration'
      GraphicsConfigInfo gcInf0 = Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration);
      AWTGraphicsConfiguration awtConfig = (AWTGraphicsConfiguration)gcInf0.getPrivateData();
View Full Code Here


        // 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();
        }
View Full Code Here

           GLDrawable glDrawable = drawable(offDrawable);

          glDrawable.setRealized(true);

        GLContext glContext = glDrawable.createContext(null);
            glContext.makeCurrent();

            JoglContext ctx = new JoglContext(glContext);

            GL2 gl = glContext.getGL().getGL2();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.