Updating the sample plugin with performance optimizations and better audio support.

This commit is contained in:
Derek Sollenberger
2009-07-09 09:19:39 -04:00
parent ef864da77f
commit 21f3991238
11 changed files with 174 additions and 102 deletions

View File

@@ -130,6 +130,10 @@ static void bounce(float* x, float* dx, const float max) {
}
}
bool BallAnimation::supportsDrawingModel(ANPDrawingModel model) {
return (model == kBitmap_ANPDrawingModel);
}
void BallAnimation::draw(ANPCanvas* canvas) {
NPP instance = this->inst();
PluginObject *obj = (PluginObject*) instance->pdata;