more updates
[synfig.git] / synfig-core / trunk / src / synfig / target_multi.h
1 /* === S I N F G =========================================================== */
2 /*!     \file target_multi.h
3 **      \brief Template Header
4 **
5 **      $Id: target_multi.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SINFG_TARGET_MULTI_H
25 #define __SINFG_TARGET_MULTI_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "target_scanline.h"
30
31 /* === M A C R O S ========================================================= */
32
33 /* === T Y P E D E F S ===================================================== */
34
35 /* === C L A S S E S & S T R U C T S ======================================= */
36
37 namespace sinfg {
38
39 /*!     \class Target_Multi
40 **      \brief Render-target
41 **      \todo writeme
42 */
43 class Target_Multi : public Target_Scanline
44 {
45         Target_Scanline::Handle a,b;
46         Color *buffer_a;
47         Color *buffer_b;
48 public:
49
50         Target_Multi(Target_Scanline::Handle a,Target_Scanline::Handle b);
51         virtual ~Target_Multi();
52         virtual bool add_frame(const sinfg::Surface *surface);
53         virtual bool start_frame(ProgressCallback *cb=NULL);
54         virtual void end_frame();
55         virtual Color * start_scanline(int scanline);
56         virtual bool end_scanline();
57         
58         virtual void set_canvas(etl::handle<Canvas> c);
59         virtual bool set_rend_desc(RendDesc *d);
60         virtual bool init();
61 }; // END of class Target_Multi
62
63 }; // END of namespace sinfg
64
65 /* === E N D =============================================================== */
66
67 #endif