mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
removed old cruft
This commit is contained in:
@@ -8935,11 +8935,6 @@ public class PApplet extends Activity implements PConstants, Runnable {
|
||||
}
|
||||
|
||||
|
||||
public void delete() {
|
||||
g.delete();
|
||||
}
|
||||
|
||||
|
||||
public Bitmap getBitmap() {
|
||||
return g.getBitmap();
|
||||
}
|
||||
|
||||
@@ -323,34 +323,8 @@ public class PFont implements PConstants {
|
||||
smooth = is.readBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void delete() {
|
||||
if (cacheMap != null) {
|
||||
Set<PGraphics> keySet = cacheMap.keySet();
|
||||
if (!keySet.isEmpty()) {
|
||||
Object[] keys = keySet.toArray();
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
Object data = getCache((PGraphics)keys[i]);
|
||||
Method del = null;
|
||||
|
||||
try {
|
||||
Class<?> c = data.getClass();
|
||||
del = c.getMethod("delete", new Class[] {});
|
||||
} catch (Exception e) {}
|
||||
|
||||
if (del != null) {
|
||||
// The metadata have a delete method. We try running it.
|
||||
try {
|
||||
del.invoke(data, new Object[] {});
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Write this PFont to an OutputStream.
|
||||
* <p>
|
||||
|
||||
@@ -145,32 +145,6 @@ public class PImage implements PConstants, Cloneable {
|
||||
}
|
||||
|
||||
|
||||
public void delete() {
|
||||
if (cacheMap != null) {
|
||||
Set<PGraphics> keySet = cacheMap.keySet();
|
||||
if (!keySet.isEmpty()) {
|
||||
Object[] keys = keySet.toArray();
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
Object data = getCache((PGraphics)keys[i]);
|
||||
Method del = null;
|
||||
|
||||
try {
|
||||
Class<?> c = data.getClass();
|
||||
del = c.getMethod("delete", new Class[] {});
|
||||
} catch (Exception e) {}
|
||||
|
||||
if (del != null) {
|
||||
// The metadata have a delete method. We try running it.
|
||||
try {
|
||||
del.invoke(data, new Object[] {});
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check the alpha on an image, using a really primitive loop.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -8,10 +8,10 @@ _ Have Capture.list() return all supported resolutions, and use the string as th
|
||||
_ for the capture object
|
||||
_ Add DISABLE_PERSPECTIVE_CORRECTED_STROKE hint, remove DISABLE_PERSPECTIVE_CORRECTED_LINES
|
||||
_ Rename shader constants (FLAT, LIT, TEXTURED, etc), resetShader() w/out args?
|
||||
_ Cleaner Implementation of PImage.loadPixels()
|
||||
_ Back-buffer support in shaders: http://code.google.com/p/processing/issues/detail?id=1169
|
||||
|
||||
processing-core todo (after beta):
|
||||
_ Cleaner Implementation of PImage.loadPixels()
|
||||
_ some glitches with SVG shapes in P2D
|
||||
_ load world.svg and disable style)
|
||||
_ simple bevel algorithm for retained mode tessellation
|
||||
|
||||
@@ -13983,12 +13983,6 @@ public class PApplet extends Applet
|
||||
}
|
||||
|
||||
|
||||
public void delete() {
|
||||
if (recorder != null) recorder.delete();
|
||||
g.delete();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Store data of some kind for a renderer that requires extra metadata of
|
||||
* some kind. Usually this is a renderer-specific representation of the
|
||||
|
||||
@@ -395,31 +395,6 @@ public class PFont implements PConstants {
|
||||
findFont();
|
||||
}
|
||||
|
||||
|
||||
void delete() {
|
||||
if (cacheMap != null) {
|
||||
Set<PGraphics> keySet = cacheMap.keySet();
|
||||
if (!keySet.isEmpty()) {
|
||||
Object[] keys = keySet.toArray();
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
Object data = getCache((PGraphics)keys[i]);
|
||||
Method del = null;
|
||||
|
||||
try {
|
||||
Class<?> c = data.getClass();
|
||||
del = c.getMethod("delete", new Class[] {});
|
||||
} catch (Exception e) {}
|
||||
|
||||
if (del != null) {
|
||||
// The metadata have a delete method. We try running it.
|
||||
try {
|
||||
del.invoke(data, new Object[] {});
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Write this PFont to an OutputStream.
|
||||
|
||||
@@ -970,10 +970,7 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ {
|
||||
//System.out.println("making new buffered image");
|
||||
// image = new BufferedImage(source.width, source.height, type);
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update the pixels of the cache image. Already determined that the tint
|
||||
* has changed, or the pixels have changed, so should just go through
|
||||
|
||||
@@ -306,31 +306,6 @@ public class PImage implements PConstants, Cloneable {
|
||||
}
|
||||
|
||||
|
||||
public void delete() {
|
||||
if (cacheMap != null) {
|
||||
Set<PGraphics> keySet = cacheMap.keySet();
|
||||
if (!keySet.isEmpty()) {
|
||||
Object[] keys = keySet.toArray();
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
Object data = getCache((PGraphics)keys[i]);
|
||||
Method del = null;
|
||||
|
||||
try {
|
||||
Class<?> c = data.getClass();
|
||||
del = c.getMethod("delete", new Class[] {});
|
||||
} catch (Exception e) {}
|
||||
|
||||
if (del != null) {
|
||||
// The metadata have a delete method. We try running it.
|
||||
try {
|
||||
del.invoke(data, new Object[] {});
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
// METADATA/PARAMETERS REQUIRED BY RENDERERS
|
||||
|
||||
Reference in New Issue
Block a user