more updates
[synfig.git] / synfig-core / trunk / src / synfig / render.h
1 /* === S I N F G =========================================================== */
2 /*!     \file render.h
3 **      \brief Template Header
4 **
5 **      $Id: render.h,v 1.1.1.1 2005/01/04 01:23:14 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_RENDER_H
25 #define __SINFG_RENDER_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "target_scanline.h"
30 #include "vector.h"
31 #include "color.h"
32 #include "renddesc.h"
33 #include "general.h"
34 #include "layer.h"
35 #include "canvas.h"
36 #include <ETL/handle>
37
38 /* === M A C R O S ========================================================= */
39
40 /* === T Y P E D E F S ===================================================== */
41
42 /* === C L A S S E S & S T R U C T S ======================================= */
43
44 namespace sinfg {
45
46 //! Renders starting at \a context to \a target
47 /*! \warning \a Target::set_rend_desc() must have
48 **              already been called on \a target before
49 **              you call this function!
50 */
51 extern bool render(Context context, Target_Scanline::Handle target, const RendDesc &desc,ProgressCallback *);
52
53 extern bool parametric_render(Context context, Surface &surface, const RendDesc &desc,ProgressCallback *);
54
55 extern bool render_threaded(    Context context,
56         Target_Scanline::Handle target,
57         const RendDesc &desc,
58         ProgressCallback *callback,
59         int threads);
60
61 }; /* end namespace sinfg */
62
63 /* -- E N D ----------------------------------------------------------------- */
64
65 #endif