adding README to sample plugins and cleaning up the animation plugin.

This commit is contained in:
Derek Sollenberger
2009-08-11 10:05:46 -04:00
parent 5ad138fef8
commit 0c763b60ce
4 changed files with 218 additions and 90 deletions

View File

@@ -40,11 +40,13 @@ extern ANPPaintInterfaceV0 gPaintI;
extern ANPSurfaceInterfaceV0 gSurfaceI;
extern ANPTypefaceInterfaceV0 gTypefaceI;
extern uint32_t getMSecs();
#define ARRAY_COUNT(array) (sizeof(array) / sizeof(array[0]))
//#define LOG_ERROR(inst, string, params...) gLogI.log(inst, kError_ANPLogType, (log_prefix + string), inst, params)
static uint32_t getMSecs() {
struct timeval tv;
gettimeofday(&tv, NULL);
return (uint32_t) (tv.tv_sec * 1000 + tv.tv_usec / 1000 ); // microseconds to milliseconds
}
///////////////////////////////////////////////////////////////////////////////