small changes

This commit is contained in:
aap 2016-07-21 17:06:56 +02:00
parent 0b5498c060
commit 5c3240cce3
2 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
Plugin *p = (Plugin*)malloc(sizeof(Plugin));
p->offset = this->size;
this->size += size;
int32 round = sizeof(void*)-1;
this->size = (this->size + round)&~round;
p->size = size;
p->id = id;

View File

@ -472,6 +472,11 @@ struct Atomic : PluginBase<Atomic>
Sphere *getWorldBoundingSphere(void);
ObjPipeline *getPipeline(void);
void render(void) { this->renderCB(this); }
void setRenderCB(RenderCB renderCB){
this->renderCB = renderCB;
if(this->renderCB == nil)
this->renderCB = defaultRenderCB;
};
static Atomic *streamReadClump(Stream *stream,
FrameList_ *frameList, Geometry **geometryList);
bool streamWriteClump(Stream *stream, FrameList_ *frmlst);