#22 Added pre-callbacks support

open
nobody
None
5
2005-10-13
2005-10-13
No

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.

Discussion

  • Jose A. Iglesias

    callback interface

     
  • Jose A. Iglesias

    Physique with proxy methods

     
  • Jose A. Iglesias

    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.

     
  • Jose A. Iglesias

    Added to makefile.am

     
  • Jose A. Iglesias

    Logged In: YES
    user_id=1289812

    Add callback.h to the Makefile.am to compile the patched
    version

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks