this code loads an image as a texture in my app . in processing it runs but when I try to run it in android device , it gives me an error : cannot find symbol for textureMode(NORMALIZED); and I could not see any image there .
do you know whats the problem ?
import processing.opengl.*;
int x;
PImage car;
void setup(){
size(400,400,OPENGL);
smooth();
noStroke();
car = loadImage("car.jpg");
}
void draw(){
background(255);
beginShape();
texture(car);
textureMode(NORMALIZED);
vertex(100, 100, 0, 0);
vertex(100, 200, 0, 1);
vertex(200, 200, 1, 1);
vertex(200, 100, 1, 0);
endShape(CLOSE);
}
1