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

Method setCache

core/src/processing/core/PGraphics.java:814–816  ·  view source on GitHub ↗

Store data of some kind for the renderer that requires extra metadata of some kind. Usually this is a renderer-specific representation of the image data, for instance a BufferedImage with tint() settings applied for PGraphicsJava2D, or resized image data and OpenGL texture indices for PGraphicsOpenG

(PImage image, Object storage)

Source from the content-addressed store, hash-verified

812 * @param storage The metadata required by the renderer
813 */
814 public void setCache(PImage image, Object storage) { // ignore
815 cacheMap.put(image, storage);
816 }
817
818
819 /**

Callers 1

imageImplMethod · 0.45

Calls 1

putMethod · 0.45

Tested by

no test coverage detected