Neat transition implementation

Started by
-1 comments, last by SiddharthBhat 12 years ago
Hi all!
Right now, states should draw the transitions that they need ( fade in / fade out / pixelate / whatever). So the state manager calls

CurrentState->drawTransition(TRANSITION_OUT, time);
NextState->drawTransition(TRANSITION_IN, time);

drawTransition is a pure virtual function which each state should implement.

What's the actual, neat, non hacky method to do this?

Thanks
~siddu

a WIP 2d game engine: https://code.google.com/p/modulusengine/

English is not my first language, so do feel free to correct me :)

This topic is closed to new replies.

Advertisement