aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-07-02 02:32:47 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-07-02 02:32:47 +0000
commit2670e3d751b8c99502ab80b6e5e45c37731603ee (patch)
tree8a9cca7d050626f1b02caa099a8fb49433648426 /externals/grill/flext/source/flsupport.h
parent630623a0c7289ddd442d139232dea68dcb07a197 (diff)
""
svn path=/trunk/; revision=743
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r--externals/grill/flext/source/flsupport.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index 72bfcf3e..0ea42442 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -132,7 +132,15 @@ public:
\param refr: if true forces immediate graphics refresh
*/
void Dirty(bool refr = false);
-
+
+ //! Clear the dirty flag.
+ void ClearDirty();
+
+ /*! Query whether the buffer content has been changed since the last ClearDirty()
+ \note With mainstream versions of PD this will always return true, since the dirtiness can't be judged
+ */
+ bool IsDirty() const;
+
//! Get symbol of buffer
t_symbol *Symbol() const { return const_cast<t_symbol *>(sym); }
@@ -174,10 +182,15 @@ public:
bool ticking;
//! update clock
t_clock *tick;
+ //! last time the dirty flag was cleared (using the clock_getlogicaltime function)
+ double cleantime;
private:
//! update clock callback
static void cb_tick(buffer *b);
+#elif FLEXT_SYS == FLEXT_SYS_MAX
+ //! last time the dirty flag was cleared (using the gettime function)
+ long cleantime;
#endif
};