add gltexture stuff

This commit is contained in:
benfry
2010-03-01 13:46:09 +00:00
parent 695ac5fd3e
commit 8bf697ebee

View File

@@ -57,7 +57,8 @@ public class PImage implements PConstants, Cloneable {
*/
public PApplet parent;
public Bitmap bitmap;
protected Bitmap bitmap;
protected GLTexture texture;
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
@@ -188,6 +189,16 @@ public class PImage implements PConstants, Cloneable {
public Bitmap getBitmap() {
return bitmap;
}
public void setTexture(GLTexture texture) {
this.texture = texture;
}
public GLTexture getTexture() {
return texture;
}
//////////////////////////////////////////////////////////////