Function:ds2protect
From S2PLOT
(Difference between revisions)
Revision as of 03:27, 10 March 2008 S2plot admin (Talk | contribs) ← Previous diff |
Revision as of 03:29, 10 March 2008 S2plot admin (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
==ds2protect== | ==ds2protect== | ||
- | Protect/unprotect dynamic geometry. | + | Protect dynamic geometry. |
==Prototype== | ==Prototype== | ||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
- | Protect / unprotect the dynamic geometry, in order reduce the amount of geometry to call each refresh cycle. Typically use this by setting ds2protect() at the end of your standard dynamic callback, then call [[Function:ds2unprotect | ds2unprotect()]] if key presses / events processed by other callbacks will result in a changed geometry state. Use with caution ... incorrect use can result in TMC: total memory consumption. | + | Protect the dynamic geometry, in order reduce the amount of geometry to call each refresh cycle. Typically use this by setting ds2protect() at the end of your standard dynamic callback, then call [[Function:ds2unprotect | ds2unprotect()]] if key presses / events processed by other callbacks will result in a changed geometry state. Use with caution ... incorrect use can result in TMC: total memory consumption. |
== See Also == | == See Also == | ||
<table> | <table> | ||
- | <tr><td>[[Function:s2open | s2open]]</td><td>. </td></tr> | + | <tr><td>[[Function:ds2protect | ds2protect]]</td><td>Protect dynamic geometry.</td></tr> |
+ | <tr><td>[[Function:ds2unprotect | ds2unprotect]]</td><td>Unprotect the dynamic geometry.</td></tr> | ||
+ | <tr><td>[[Function:ds2isprotected | ds2isprotected]]</td><td>Query state of dynamic geometry protection. </td></tr> | ||
</table> | </table> | ||
Revision as of 03:29, 10 March 2008
ds2protect
Protect dynamic geometry.
Prototype
void ds2protect(void);
Description
Protect the dynamic geometry, in order reduce the amount of geometry to call each refresh cycle. Typically use this by setting ds2protect() at the end of your standard dynamic callback, then call ds2unprotect() if key presses / events processed by other callbacks will result in a changed geometry state. Use with caution ... incorrect use can result in TMC: total memory consumption.
See Also
ds2protect | Protect dynamic geometry. |
ds2unprotect | Unprotect the dynamic geometry. |
ds2isprotected | Query state of dynamic geometry protection. |
Code Example
Back to S2PLOT function list.