mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
add gltexture stuff
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user