Page 1 of 1

What does EFL_MANUALFLIP do?

PostPosted: Jan 31, 2008 @ 5:00am
by eugraphics
When this is set, OnNextFrame() still gets called. Is there a way to never have OnNextFrame called and just do the Flip myself as needed? I can just call Flip() from anywhere correct?

Is there any harm to not implementing OnNextFrame()?

PostPosted: Jan 31, 2008 @ 1:37pm
by edge
Hi,

You can use EFL_MANUALFLIP to prevent automatic flipping. If you don't want to use OnNextFrame, you can make the function empty (only return E_OK), or not implement it at all.

Flip can be called from everywhere as long as the display is opened and you're using the pointer from ecd.dsp or the parameter passed to OnNextFrame or OnDisplayInit. It's safe to store the display pointer in a global variable.