Author: Diego Barrios Romero <[email protected]>
Date: Sun Feb 26 18:09:45 2012 +0100
Target creation - Rendering possible
---
synfig-core/src/tool/main.cpp | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/synfig-core/src/tool/main.cpp b/synfig-core/src/tool/main.cpp
index 24f5da1..4938606 100644
--- a/synfig-core/src/tool/main.cpp
+++ b/synfig-core/src/tool/main.cpp
@@ -720,6 +720,41 @@ int main(int ac, char* av[])
cerr << _("Throwing out job...") << endl;
}
+ VERBOSE_OUT(4) << _("Creating the target...") << endl;
+ job_list.front().target =
+ synfig::Target::create(target_name,
+
job_list.front().outfilename,
+
target_parameters);
+
+ if(target_name == "sif")
+ job_list.front().sifout=true;
+ else
+ {
+ if(!job_list.front().target)
+ {
+ cerr << _("Unknown target for ") <<
job_list.front().filename()
+ << ": " << target_name << endl;
+ cerr << _("Throwing out job...") << endl;
+ job_list.pop_front();
+ }
+ job_list.front().sifout=false;
+ }
+
+ // Set the Canvas on the Target
+ if(job_list.front().target)
+ {
+ VERBOSE_OUT(4) << _("Setting the canvas on the
target...") << endl;
+
job_list.front().target->set_canvas(job_list.front().canvas);
+
+ VERBOSE_OUT(4) << _("Setting the quality of the
target...") << endl;
+
job_list.front().target->set_quality(job_list.front().quality);
+ }
+
+ // Set the threads for the target
+ if (job_list.front().target &&
+
Target_Scanline::Handle::cast_dynamic(job_list.front().target))
+
Target_Scanline::Handle::cast_dynamic(job_list.front().target)->set_threads(threads);
+
// Process Job list --------------------------------------------
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl