[Bf-committers] Object Oriented Render API
Mathias Panzenböck
grosser.meister.morti at gmx.net
Wed Jun 20 16:15:00 CEST 2007
Eduardo Borges schrieb:
>> Second method syntax example:
>> dm->copyVertArray(dm, mvert);
>
> The second way to get object oriented functionality into C code is
> pretty clear to me. In fact, passing the struct address as the first
> parameter of the method is the way most OO languages are implemented.
> In my opinion you should proceed :)
>
> // Eduardo Borges
And with the second way you can implement virtuals and inheritance
(to some extend; at least single inheritance should be not so hard).
But that's when things get messy. Why not use C++?
-panzi
More information about the Bf-committers
mailing list