Skip to content

Commit f1abac7

Browse files
committed
Add PApplet.getWidth/getHeight/getFrameRate methods
1 parent e926451 commit f1abac7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Processing.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4293,6 +4293,8 @@ struct PApplet {
42934293
void fullScreen(int mode);
42944294
void frameRate(int fps);
42954295
float getFrameRate() const { return _frameRate; }
4296+
int getWidth() const { return winWidth; }
4297+
int getHeight() const { return winHeight; }
42964298
void noLoop();
42974299
void loop();
42984300
void redraw();

0 commit comments

Comments
 (0)