MCPcopy Index your code
hub / github.com/processing/processing / resize

Method resize

core/src/processing/opengl/Texture.java:248–264  ·  view source on GitHub ↗
(int wide, int high)

Source from the content-addressed store, hash-verified

246
247
248 public void resize(int wide, int high) {
249 // Disposing current resources.
250 dispose();
251
252 // Creating new texture with the appropriate size.
253 Texture tex = new Texture(pg, wide, high, getParameters());
254
255 // Copying the contents of this texture into tex.
256 tex.set(this);
257
258 // Now, overwriting "this" with tex.
259 copyObject(tex);
260
261 // Nullifying some utility objects so they are recreated with the
262 // appropriate size when needed.
263 tempFbo = null;
264 }
265
266
267 /**

Callers

nothing calls this directly

Calls 4

disposeMethod · 0.95
getParametersMethod · 0.95
setMethod · 0.95
copyObjectMethod · 0.95

Tested by

no test coverage detected