Tabnine Logo
PApplet.handleDraw
Code IndexAdd Tabnine to your IDE (free)

How to use
handleDraw
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.handleDraw (Showing top 8 results out of 315)

origin: ajavamind/Processing-Cardboard

@Override
public void requestDraw() {
 parent.handleDraw(Eye.Type.MONOCULAR);
}
origin: org.processing/core

public void callDraw() {
 sketch.handleDraw();
}
origin: ajavamind/Processing-Cardboard

public void onDrawFrame(GL10 igl) {
 gl = igl;
 glThread = Thread.currentThread();
 sketch.handleDraw(Eye.Type.MONOCULAR);
}
origin: org.processing/core

 @Override
 public void callDraw() {
  sketch.handleDraw();
  render();
 }
};
origin: ajavamind/Processing-Cardboard

@Override
public void onDrawFrame(HeadTransform headTransform, Eye leftEye, Eye rightEye) {
 glThread = Thread.currentThread();
 sketch.handleHeadTransform(headTransform);
 if (DEBUG_CARDBOARD) {
  Viewport vleft = leftEye.getViewport();
  Log.d(TAG, "onDrawFrame left viewport " + vleft.x + " " + vleft.y + " " + vleft.width + " " + vleft.height);
 }
 sketch.handleDraw(leftEye.getType());
 if (rightEye != null) {
  if (DEBUG_CARDBOARD) {
   Viewport vright = rightEye.getViewport();
   Log.d(TAG, "onDrawFrame right viewport " + vright.x + " " + vright.y + " " + vright.width + " " + vright.height);
  }
  sketch.handleDraw(rightEye.getType());
 }
}
origin: ajavamind/Processing-Cardboard

@Override
public void onDrawEye(Eye eye) {
 GLES20.glEnable(GLES20.GL_DEPTH_TEST);
 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
 checkGLError("onDrawEye");
 if (DEBUG_CARDBOARD) {
  Viewport viewport = eye.getViewport();
  String e = "MONOCULAR";
  if (eye.getType() == Eye.Type.RIGHT)
   e = "RIGHT";
  else if (eye.getType() == Eye.Type.LEFT)
   e = "LEFT";
  Log.d(TAG, "onDrawEye " + e + " viewport " + viewport.x + " " + viewport.y + " " + viewport.width + " " + viewport.height);
 }
 sketch.handleDraw(eye);
}
origin: org.processing/core

   public void handle(ActionEvent event) {
    long startNanoTime = System.nanoTime();
    try {
     sketch.handleDraw();
    } catch (Throwable e) {
     // Let exception handler thread crash with our exception
     drawExceptionQueue.offer(e);
     // Stop animating right now so nothing runs afterwards
     // and crash frame can be for example traced by println()
     animation.stop();
     return;
    }
    long drawNanos = System.nanoTime() - startNanoTime;

    if (sketch.exitCalled()) {
     // using Platform.runLater() didn't work
//          Platform.runLater(new Runnable() {
//            public void run() {
     // instead of System.exit(), safely shut down JavaFX this way
     Platform.exit();
//            }
//          });
    }
    if (sketch.frameCount > 5) {
     animation.setRate(-PApplet.min(1e9f / drawNanos, frameRate));
    }
   }
  });
origin: org.processing/core

pgl.getGL(drawable);
int pframeCount = sketch.frameCount;
sketch.handleDraw();
if (pframeCount == sketch.frameCount || sketch.finished) {
processing.corePApplethandleDraw

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now