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