Skip to content

Commit a710e19

Browse files
committed
Fix Processing_api.h: restore header comment, add deltaTime forwarder
1 parent c1d2638 commit a710e19

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Processing_api.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// Processing_api.h
1+
/
2+
inline float deltaTime() { return ::Processing::PApplet::g_papplet ? ::Processing::PApplet::g_papplet->deltaTime : 0.016f; }
3+
/Processing_api.h
24
// Included in Sketch_run.cpp to make Processing API available to user-defined
35
// classes inside sketches (which don't inherit from PApplet).
46
#pragma once

0 commit comments

Comments
 (0)