DrawFunc ( vs. r1.1)

Webs: Faemalia -:- Greatprawn -:- Playground -:- Technical -:- Tweak
Technical Web Sections: Register -:- Users -:- Changes -:- Index -:- Search -:- Statistics

 <<O>>  Difference Topic DrawFunc (r1.1 - 20 Sep 2002 - LarsClausen)
Line: 1 to 1
Added:
>
>
void (*DrawFunc) (Object* obj, Renderer* renderer)
META TOPICPARENT ObjectOps

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 called myobject_update_data) that updates internal data whenever the object changes.

-- LarsClausen - 20 Sep 2002


View -:- Diffs | r1.1 -:- More

Revision -
Revision r1.1 - 20 Sep 2002 - 17:54 - LarsClausen
Copyright © 2002 by the Author of the article. All material on this collaboration tool is the property of the contributing authors.