Exemple #1
0
/* 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);
}
Exemple #2
0
/* 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);
}
Exemple #3
0
/* 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);
}
Exemple #4
0
/* 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);
}
Exemple #5
0
/* 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);
}