MCPcopy Create free account
hub / github.com/benfry/processing4 / getCache

Method getCache

core/src/processing/core/PGraphics.java:826–828  ·  view source on GitHub ↗

Get cache storage data for the specified renderer. Because each renderer will cache data in different formats, it's necessary to store cache data keyed by the renderer object. Otherwise, attempting to draw the same image to both a PGraphicsJava2D and a PGraphicsOpenGL will cause errors. @return meta

(PImage image)

Source from the content-addressed store, hash-verified

824 * @return metadata stored for the specified renderer
825 */
826 public Object getCache(PImage image) { // ignore
827 return cacheMap.get(image);
828 }
829
830
831 /**

Callers 1

imageImplMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected