Hey guys. My Windows graphics have been fickering badly since I started animating them across the screen. I am currently using BitBlt() and InvalidateRect() which are just too damn slow! Any suggestions?
Hey guys. My Windows graphics have been fickering badly since I started animating them across the screen. I am currently using BitBlt() and InvalidateRect() which are just too damn slow! Any suggestions?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Ah a classic case of cross posting...Are you using double buffering? Maybe that is your problem.
Here is a page that explains double buffering and page flipping http://java.sun.com/docs/books/tutor...doublebuf.html, BTW I know it is Java, concepts are the same though.
gcc -lalleg
http://www.ciusa.net/~jrgrant/
In theory they are the same in JAVA and in the Win API but really they are completely different to program. Believe me they are different! Long story short I already gave him an example of how to do this.