void (*DrawFunc) (Object* obj, Renderer* renderer)This function is called to draw the object. All drawing must be done with the renderer, so that the object can be rendered (exported) to different formats. The drawing function will be called often, so avoid expensive calculations in it. It's preferable to have a seperate function (normal calledmyobject_update_data) that updates internal data whenever the object changes. -- LarsClausen - 20 Sep 2002
| Edit -:- Attach -:- Ref-By -:- Printable -:- More |