1 parent 749a6d0 commit ed30c5aCopy full SHA for ed30c5a
1 file changed
src/Processing.h
@@ -566,6 +566,10 @@ class PImage {
566
// These mirror the Processing Java API; dirty flag is used by updatePixels()
567
void loadPixels() {}
568
void updatePixels() { dirty = true; }
569
+ bool isLoaded() const { return width>0 && height>0; }
570
+ int getWidth() const { return width; }
571
+ int getHeight() const { return height; }
572
+ int format = 1; // RGB=1, ARGB=2, ALPHA=4
573
574
// Upload CPU pixels to the GPU texture
575
void uploadTexture(); // defined in Processing.cpp
0 commit comments