public void setup() { super.setup(); _texture = p.createGraphics(p.width, p.height, P.OPENGL); _texture.smooth(OpenGLUtil.SMOOTH_HIGH); _texture.beginDraw(); _texture.background(0); _texture.endDraw(); }
public void setup() { super.setup(); ((PGraphics) g).textureWrap(Texture.REPEAT); // _warpShader = p.loadShader(FileUtil.getFile("shaders/texturewarp/round-tunnel.glsl")); _warpShader = p.loadShader(FileUtil.getFile("shaders/texturewarp/square-tunnel.glsl")); _warpShader.set("time", p.frameCount / 100f); PImage img = p.loadImage(FileUtil.getFile("images/ello-grid-crap-512.png")); _warpShader.set("textureInput", img); }
public void setup() { super.setup(); p.smooth(OpenGLUtil.SMOOTH_HIGH); buildCanvas(); }
public void keyPressed() { super.keyPressed(); if (p.key == ' ') {} }
public void setup() { super.setup(); buff = new FloatBuffer(10); }