mirror of
https://github.com/aap/librw.git
synced 2024-11-25 13:15:43 +00:00
small changes
This commit is contained in:
parent
0b5498c060
commit
5c3240cce3
@ -106,6 +106,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
|
|||||||
Plugin *p = (Plugin*)malloc(sizeof(Plugin));
|
Plugin *p = (Plugin*)malloc(sizeof(Plugin));
|
||||||
p->offset = this->size;
|
p->offset = this->size;
|
||||||
this->size += size;
|
this->size += size;
|
||||||
|
int32 round = sizeof(void*)-1;
|
||||||
|
this->size = (this->size + round)&~round;
|
||||||
|
|
||||||
p->size = size;
|
p->size = size;
|
||||||
p->id = id;
|
p->id = id;
|
||||||
|
@ -472,6 +472,11 @@ struct Atomic : PluginBase<Atomic>
|
|||||||
Sphere *getWorldBoundingSphere(void);
|
Sphere *getWorldBoundingSphere(void);
|
||||||
ObjPipeline *getPipeline(void);
|
ObjPipeline *getPipeline(void);
|
||||||
void render(void) { this->renderCB(this); }
|
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,
|
static Atomic *streamReadClump(Stream *stream,
|
||||||
FrameList_ *frameList, Geometry **geometryList);
|
FrameList_ *frameList, Geometry **geometryList);
|
||||||
bool streamWriteClump(Stream *stream, FrameList_ *frmlst);
|
bool streamWriteClump(Stream *stream, FrameList_ *frmlst);
|
||||||
|
Loading…
Reference in New Issue
Block a user