android hangs after using texture
in
Android Processing
•
2 years ago
Hi,
my android phone crashes after using an texture.
Here's my code:
- PImage img;
- void setup() {
- size(screenWidth, screenHeight,A3D);
- smooth();
- noStroke();
- img = loadImage("texture.png");
- }
- void draw() {
- background(0);
- lights();
- beginShape();
- texture(img);
- translate(width/2, height/2,-200);
- rotateY(frameCount*PI/200);
- box(200);
- endShape();
- }
1