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

Method wrapBackTexture

core/src/processing/opengl/PGL.java:529–543  ·  view source on GitHub ↗
(Texture texture)

Source from the content-addressed store, hash-verified

527
528
529 protected Texture wrapBackTexture(Texture texture) {
530 if (texture == null) {
531 texture = new Texture(graphics);
532 texture.init(graphics.width, graphics.height,
533 glColorTex.get(backTex), TEXTURE_2D, RGBA,
534 fboWidth, fboHeight, NEAREST, NEAREST,
535 CLAMP_TO_EDGE, CLAMP_TO_EDGE);
536 texture.invertedY(true);
537 texture.colorBuffer(true);
538 graphics.setCache(graphics, texture);
539 } else {
540 texture.glName = glColorTex.get(backTex);
541 }
542 return texture;
543 }
544
545
546 protected Texture wrapFrontTexture(Texture texture) {

Callers 1

beginOnscreenDrawMethod · 0.80

Calls 5

invertedYMethod · 0.80
colorBufferMethod · 0.80
initMethod · 0.65
getMethod · 0.65
setCacheMethod · 0.45

Tested by

no test coverage detected