This feature allows someone to modify the geometry
before Cal3D calculate the bone transformations.
Pre-callbacks is the way like other OpenSource projects
like OpenSceneGraph modify the geometry before the
drawing process. This feature adds more generality and
flexibility to the design.
One file called callback.h is added. This file contains an
interface class that someone who likes to use
pre-callbacks must extend:
updateModel: the method for update the geometry with
pre-callbacks.
getVectorVertex(CalSubmesh *pSubmesh): gets the
VectorVertex buffer that can be modified, for one cal3d
submesh.
hasPreCallback(CalSubmesh *pSubmesh): checks if one
cal3d submesh has one pre-callback associated.
callback interface
Physique with proxy methods
Logged In: YES
user_id=1289812
One file was modified: physique.cpp. To mantain
compatibility It was added one new method for each one
that exist. This methos do like proxy methods, it checks if
some pre-callback was associated and uses the new
buffer or uses the cal3d core-submesh vertices for the
model.
Added to makefile.am
Logged In: YES
user_id=1289812
Add callback.h to the Makefile.am to compile the patched
version