[Bf-committers] Preliminary Design (render api)

Aaron Moore two.a.ron at gmail.com
Thu Jun 28 06:26:35 CEST 2007


Ben,

Good point, I considered this a weak point in the system up to this
point. I'm taking a look at the modifier types and I'll propose a
alternate solution.

Aaron

On 6/27/07, Ben Batt <benbatt at gmail.com> wrote:
> Hey, just thought I'd mention something which concerns me a little:
>
> On 6/26/07, Aaron Moore <two.a.ron at gmail.com> wrote:
> > ... All the void*s are so that multiple kinds of handlers
> > can be returned from a single function...
>
> It seems to me that this could be done in a more typesafe way, perhaps
> using a header structure which stores information common to all
> handlers, and has a type field so you can safely cast to the
> appropriate type if necessary. Something like the ModifierData system
> is what I have in mind (DNA_modifier_types.h).
>
> Just my two cents, mainly because large amounts of void* make me
> uncomfortable :-)
>
> Ben
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list