Examples of PGraphicsOpenGL


Examples of processing.opengl.PGraphicsOpenGL

        Ray invertedRay = Ray.getTransformedRay(realRayForThisObj, shape.getGlobalInverseMatrix());
         
          Vector3D NewPt = bSphere.getIntersectionLocal(invertedRay);
         
          if (NewPt != null){
            PGraphicsOpenGL pgl = ((PGraphicsOpenGL)applet.g);
          GL gl   = pgl.beginGL()
            gl.glPushMatrix();
              gl.glMultMatrixf(shape.getGlobalMatrix().toFloatBuffer());
              NewPt = Tools3D.projectGL(gl, pgl.glu, NewPt, NewPt);
            gl.glPopMatrix();
            pgl.endGL();
           
            logger.debug(NewPt);
            this.drag(NewPt, q);
          }else{
            return Matrix.get4x4Identity();
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.