Package processing.core

Examples of processing.core.PGraphics.pushMatrix()


    Vector visibleKeys = getVisibleKeys(pg);

    if (visibleKeys.size() > 0) {
      Coordinate previous = (Coordinate) visibleKeys.get(0);
      pg.pushMatrix();
      pg.scale(1.0f / PApplet.pow(2, previous.zoom));

      for (int i = 0; i < visibleKeys.size(); i++) {
        Coordinate coord = (Coordinate) visibleKeys.get(i);
        if (coord.zoom != previous.zoom) {
View Full Code Here


      for (int i = 0; i < visibleKeys.size(); i++) {
        Coordinate coord = (Coordinate) visibleKeys.get(i);
        if (coord.zoom != previous.zoom) {
          pg.popMatrix();
          pg.pushMatrix();
          pg.scale(1.0f / PApplet.pow(2, coord.zoom));
        }

        if (images.containsKey(coord)) {
          PImage tile = (PImage) images.get(coord);
View Full Code Here

    offscreenCutoffPG.endDraw();

    // Transforms (outer) map pane, and draws inner map + marker onto canvas
    // This cuts off marker at the border.
    PGraphics canvasPG = papplet.g;
    canvasPG.pushMatrix();
    canvasPG.translate(offsetX, offsetY);
    if (canvasPG.is3D()) {
      canvasPG.applyMatrix(matrix);
    } else {
      canvasPG.applyMatrix(matrix.m00, matrix.m01, matrix.m03, matrix.m10, matrix.m11, matrix.m13);
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.