It's very simple. When you load the models/setup the scene you call commands something like CreatShadowCaster (I don't remember the exact commands off the top of my head) for every shadow casting entity, CastShadows for the lightsource, and ReceiveShadows for the model the shadows will be cast onto. Then just call UpdateShadows every frame, probably right after UpdateWorld.