#include <target_scanline.h>
Public Types | |
typedef etl::handle < Target_Scanline > | Handle |
typedef etl::loose_handle < Target_Scanline > | LooseHandle |
typedef etl::handle < const Target_Scanline > | ConstHandle |
Public Member Functions | |
Target_Scanline () | |
virtual bool | render (ProgressCallback *cb=NULL) |
Renders the canvas to the target. | |
virtual bool | start_frame (ProgressCallback *cb=NULL)=0 |
Marks the start of a frame. | |
virtual int | next_frame (Time &time) |
virtual void | end_frame ()=0 |
Marks the end of a frame. | |
virtual Color * | start_scanline (int scanline)=0 |
Marks the start of a scanline. | |
virtual bool | end_scanline ()=0 |
Marks the end of a scanline. | |
void | set_threads (int x) |
int | get_threads () const |
bool | add_frame (const synfig::Surface *surface) |
typedef etl::handle<Target_Scanline> synfig::Target_Scanline::Handle |
Reimplemented from synfig::Target.
typedef etl::loose_handle<Target_Scanline> synfig::Target_Scanline::LooseHandle |
Reimplemented from synfig::Target.
typedef etl::handle<const Target_Scanline> synfig::Target_Scanline::ConstHandle |
Reimplemented from synfig::Target.
Target_Scanline::Target_Scanline | ( | ) |
bool synfig::Target_Scanline::render | ( | ProgressCallback * | cb = NULL |
) | [virtual] |
virtual bool synfig::Target_Scanline::start_frame | ( | ProgressCallback * | cb = NULL |
) | [pure virtual] |
Marks the start of a frame.
true
on success, false
upon an error. Implemented in synfig::Target_Multi, and synfig::Target_Null.
int Target_Scanline::next_frame | ( | Time & | time | ) | [virtual] |
virtual void synfig::Target_Scanline::end_frame | ( | ) | [pure virtual] |
Marks the end of a frame.
Implemented in synfig::Target_Multi, and synfig::Target_Null.
virtual Color* synfig::Target_Scanline::start_scanline | ( | int | scanline | ) | [pure virtual] |
Marks the start of a scanline.
scanline | Which scanline is going to be rendered. |
Implemented in synfig::Target_Multi, and synfig::Target_Null.
virtual bool synfig::Target_Scanline::end_scanline | ( | ) | [pure virtual] |
Marks the end of a scanline.
Takes the data that was put at the address returned to by start_scanline() and does whatever it is supose to do with it.
true
on success, false
on failure. Implemented in synfig::Target_Multi, and synfig::Target_Null.
void synfig::Target_Scanline::set_threads | ( | int | x | ) | [inline] |
int synfig::Target_Scanline::get_threads | ( | ) | const [inline] |
bool Target_Scanline::add_frame | ( | const synfig::Surface * | surface | ) |
Reimplemented in synfig::Target_Multi.