Example #1
0
  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();
  }
Example #2
0
  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);
  }
Example #3
0
 public void setup() {
   super.setup();
   p.smooth(OpenGLUtil.SMOOTH_HIGH);
   buildCanvas();
 }
Example #4
0
 public void keyPressed() {
   super.keyPressed();
   if (p.key == ' ') {}
 }
Example #5
0
 public void setup() {
   super.setup();
   buff = new FloatBuffer(10);
 }