[Bf-committers] Approving the Basic Render API

Aaron Moore two.a.ron at gmail.com
Sun Jul 1 18:34:37 CEST 2007


Hi again,

On 7/1/07, Shaul Kedem <shaul.kedem at gmail.com> wrote:
> Hi,
>  sorry for the phrasing, by hooks I mean your callbacks, by queries I
> am asking about this
> http://wiki.blender.org/index.php/Render_API#Queries

> > >  Also, I've seen you are using both registered "hooks" and "query"
> > > function in the main API, isn't there a way to give all of the control
> > > to the caller and have only queries in the main API side? I always
> > > think of such "event driven" mechanisms as risky and since this is C
> > > and not C++ the whole constructor/destructor thing is not available,
> > > and simulating it never goes well.

Well, I've taken an object-oriented approach to this design as a
whole, which in my mind is the only way the problem makes sense:
getting objects and looping through them. I should be careful about
how I initialize and destroy these handlers but, I can't think of a
better way to do this.

So are you saying you want to remove the callbacks and just transfer
control to the plugin for the whole render job? Basically, one
callback, do_render_job, for all frames?

Aaron


More information about the Bf-committers mailing list