====== PluginUpdateOverlay plugin export ====== Overlay plugins should export this function to be able to draw anything. ====Syntax==== <code> PLUGIN_EXPORT void PluginUpdateOverlay( ); </code> ====Remarks==== In theory you can do anything in this function. PlayClaw just calls it every N msec (by default 10 times per second) to give plugin ability to update its overlay. For example, you can draw overlay one time and then do not update it. In this case PlayClaw will render just static image. Everything is in your hands (and head). ====Sample code==== <code> PLUGIN_EXPORT void PluginUpdateOverlay() { OverlayLockStruct m_Lock; // lock overlay buffer and get its size if (!PC_LockOverlay(m_dwPluginID, &m_Lock)) return; // fill memory buffer memset(m_Lock.pBuffer, 0xaa, m_Lock.dwPitch * m_Lock.dwHeight); // unlock and mark buffer as changed PC_UnlockOverlay(m_dwPluginID, true); ); </code> ====See also==== [[plugin_sdk:exports:pluginshutdown|PluginShutdown]]\\ Other [[plugin_sdk:exports:|export functions]]\\ [[plugin_sdk:imports:PC_LockOverlay|PC_LockOverlay]]\\ [[plugin_sdk:imports:PC_UnlockOverlay|PC_UnlockOverlay]]\\ Other [[plugin_sdk:imports:|import functions]]\\ [[plugin_sdk:structures:OverlayLockStruct|OverlayLockStruct]]\\