mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 01:29:17 +01:00
rocking the opengl
This commit is contained in:
@@ -110,8 +110,8 @@ public class PApplet extends Applet
|
||||
|
||||
//boolean drawMethod;
|
||||
//boolean loopMethod;
|
||||
boolean looping;
|
||||
boolean redraw;
|
||||
protected boolean looping;
|
||||
protected boolean redraw;
|
||||
|
||||
// true if inside the loop method
|
||||
//boolean insideLoop;
|
||||
@@ -145,9 +145,9 @@ public class PApplet extends Applet
|
||||
static public final int DEFAULT_HEIGHT = 100;
|
||||
public int width, height;
|
||||
|
||||
int libraryCount;
|
||||
PLibrary libraries[];
|
||||
boolean libraryCalls[][];
|
||||
protected int libraryCount;
|
||||
protected PLibrary libraries[];
|
||||
protected boolean libraryCalls[][];
|
||||
//int registeredCount[];
|
||||
//PLibrary registered[][];
|
||||
|
||||
@@ -4224,6 +4224,24 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
static public void saveHeaderTIFF(OutputStream output,
|
||||
int width, int height) throws IOException {
|
||||
PGraphics.saveHeaderTIFF(output, width, height);
|
||||
}
|
||||
|
||||
|
||||
static public void saveTIFF(OutputStream output, int pixels[],
|
||||
int width, int height) throws IOException {
|
||||
PGraphics.saveTIFF(output, pixels, width, height);
|
||||
}
|
||||
|
||||
|
||||
static public void saveTGA(OutputStream output, int pixels[],
|
||||
int width, int height) throws IOException {
|
||||
PGraphics.saveTGA(output, pixels, width, height);
|
||||
}
|
||||
|
||||
|
||||
public void save(String filename) {
|
||||
g.save(filename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user