Really simple code, I use it to make image transition between different scenes, (ie: for loading screen, for Intro-screen, etc...).
Here are some screens and a demo:
REMOVED IMAGES
Demo: (about 2mb)
REMOVED UNTIL FIX
FIXED RELEASE : http://www.mediafire.com/?wuymwymmjjn
How to use :
Code: Select all
///CALLING A NEW TRANSITION
CTransition* Transit = new CTransition(device);
Transit->CutScene(device->getVideoDriver()->getTexture("INTRO1.jpg"),
0,SColor(0,255,255,0)); ///YELLOW TRANSIT
Transit->CutScene(device->getVideoDriver()->getTexture("INTRO2.jpg"),
0,SColor(0,0,255,255)); ///CYAN TRANSIT
delete Transit;
///END OF TRANSITION
1-The texture, or image of background.
2-The time of showing image.
3-The color of fading.
You could also use the specific functions as FadeIn(), FadeOut() or Attendre(), to manually compose different transitions. Im used to add a load function to my loading transitions.
Enjoy it and thanks for commenting.