X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftags%2Fsynfig_0_61_05%2Fsynfig-core%2Fsrc%2Fsynfig%2Ftarget_multi.cpp;fp=synfig-core%2Ftags%2Fsynfig_0_61_05%2Fsynfig-core%2Fsrc%2Fsynfig%2Ftarget_multi.cpp;h=0000000000000000000000000000000000000000;hb=6fa8f2f38d4b0b35f8539bf94e27ae27015c7689;hp=298fc140ed8e1566efca8c5054ebfb453ac19bbd;hpb=47fce282611fbba1044921d22ca887f9b53ad91a;p=synfig.git diff --git a/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/target_multi.cpp b/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/target_multi.cpp deleted file mode 100644 index 298fc14..0000000 --- a/synfig-core/tags/synfig_0_61_05/synfig-core/src/synfig/target_multi.cpp +++ /dev/null @@ -1,119 +0,0 @@ -/* === S Y N F I G ========================================================= */ -/*! \file target_multi.cpp -** \brief Template File -** -** $Id: target_multi.cpp,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ -** -** \legal -** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** -** This package is free software; you can redistribute it and/or -** modify it under the terms of the GNU General Public License as -** published by the Free Software Foundation; either version 2 of -** the License, or (at your option) any later version. -** -** This package is distributed in the hope that it will be useful, -** but WITHOUT ANY WARRANTY; without even the implied warranty of -** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -** General Public License for more details. -** \endlegal -*/ -/* ========================================================================= */ - -/* === H E A D E R S ======================================================= */ - -#ifdef USING_PCH -# include "pch.h" -#else -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "target_multi.h" -#include "string.h" -#include "surface.h" -#include "canvas.h" -#include "context.h" - -#endif - -/* === U S I N G =========================================================== */ - -using namespace std; -using namespace etl; -using namespace synfig; - -/* === M A C R O S ========================================================= */ - -/* === G L O B A L S ======================================================= */ - -/* === P R O C E D U R E S ================================================= */ - -/* === M E T H O D S ======================================================= */ - -Target_Multi::Target_Multi(Target_Scanline::Handle a,Target_Scanline::Handle b): - a(a), - b(b) -{ -} - -Target_Multi::~Target_Multi() -{ -} - -void -Target_Multi::set_canvas(etl::handle c) -{ - canvas=c; - RendDesc desc=canvas->rend_desc(); - a->set_canvas(c); - b->set_canvas(c); - set_rend_desc(&desc); -} - -bool -Target_Multi::set_rend_desc(RendDesc *d) -{ - desc=*d; - return a->set_rend_desc(d) && b->set_rend_desc(d); -} - -bool -Target_Multi::init() -{ - return a->init() && b->init(); -} - -bool -Target_Multi::add_frame(const synfig::Surface *surface) -{ - return a->add_frame(surface) && b->add_frame(surface); -} - -bool -Target_Multi::start_frame(ProgressCallback *cb) -{ - return a->start_frame(cb) && b->start_frame(cb); -} - -void -Target_Multi::end_frame() -{ - a->end_frame(); - b->end_frame(); -} - -Color * -Target_Multi::start_scanline(int scanline) -{ - buffer_a=a->start_scanline(scanline); - buffer_b=b->start_scanline(scanline); - return buffer_a; -} - -bool -Target_Multi::end_scanline() -{ - memcpy(buffer_b,buffer_a,sizeof(Color)*desc.get_w()); - return a->end_scanline() && b->end_scanline(); -}