/* Plugin::execRender: run when scene is rendered */ void Plugin::execRender(MMDAgent *mmdagent) { DLLibrary *d; for (d = m_head; d; d = d->next) if (d->render != NULL) d->render(mmdagent); }
/* Plugin::execUpdate: run when motion is updated */ void Plugin::execUpdate(MMDAgent *mmdagent, double deltaFrame) { DLLibrary *d; for (d = m_head; d; d = d->next) if (d->update != NULL) d->update(mmdagent, deltaFrame); }
/* Plugin::execAppEnd: run when application is end */ void Plugin::execAppEnd(MMDAgent *mmdagent) { DLLibrary *d; for (d = m_head; d; d = d->next) if (d->appEnd != NULL) d->appEnd(mmdagent); }
/* Plugin::execProcEvent: process event message */ void Plugin::execProcEvent(MMDAgent *mmdagent, const char *type, const char *args) { DLLibrary *d; for (d = m_head; d; d = d->next) if (d->procEvent != NULL) d->procEvent(mmdagent, type, args); }
/* Plugin::execProcMessage: process message */ void Plugin::execProcMessage(MMDAgent *mmdagent, const char *type, const char *args) { DLLibrary *d; for (d = m_head; d; d = d->next) if (d->procMessage != NULL) d->procMessage(mmdagent, type, args); /* deprecated functions */ for (d = m_head; d; d = d->next) if (d->procCommand != NULL) d->procCommand(mmdagent, type, args); for (d = m_head; d; d = d->next) if (d->procEvent != NULL) d->procEvent(mmdagent, type, args); }