The first lines of code
I finally started the VisualStudio project for the demo today.. And I have to say I got quite much done for the demo framework. I wrote a Timeline class that handles the initialization and running all the effects/parts. It also controls the music playback. Then I made a DemoComponent -class (inherits GameComponent) which all the demo parts will inherit. The DemoComponent extends GameComponent by adding multiple starting/ending points for the Timeline.
So, all effects/parts will be initialized in Timeline and all starting/ending points will be set. Then all effects know when they should be drawn. So far I have only done small tests and I’m sure there are important stuff still missing, for example the rendertargets. The Timeline could then handle transitions as well.
The win32 version now uses BASS for music playback because it is much more flexible than the XNA booboo. I can now rewind/fastforward the music or slow it down etc. All the effects are bound to the music timer so I can jump anywhere in the demo. This is very helpful when doing all the syncs..
–fragment