tahoma2d/toonz/sources/include/toonzqt/flipconsoleowner.h
Toshihiro Shimizu 890dddabbd first commit
2016-03-19 02:57:51 +09:00

23 lines
No EOL
642 B
C++

#ifndef FLIPCONSOLEOWNER_H
#define FLIPCONSOLEOWNER_H
//-----------------------------------------------------------------
/*! FlipConsoleOwner class
inherited by ViewerPane and FlipBook, which receives redraw signal from FlipConsole.
*/
#include "toonzqt/flipconsole.h"
class FlipConsole;
class FlipConsoleOwner
{
public:
virtual void onDrawFrame(int frame, const ImagePainter::VisualSettings &settings) = 0;
// return true if the frmae is in cache. reimplemented only in Flipbook
virtual bool isFrameAlreadyCached(int frame) { return true; };
virtual void swapBuffers(){};
virtual void changeSwapBehavior(bool enable){};
};
#endif