-/*! ========================================================================
-** Synfig
-** Template File
-** $Id: supersample.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $
+/* === S Y N F I G ========================================================= */
+/*! \file supersample.cpp
+** \brief Template Header
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** This package is free software; you can redistribute it and/or
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** This package is free software; you can redistribute it and/or
** 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.
** 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.
SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,_("Super Sample"));
SYNFIG_LAYER_SET_CATEGORY(SuperSample,_("Other"));
SYNFIG_LAYER_SET_VERSION(SuperSample,"0.1");
SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,_("Super Sample"));
SYNFIG_LAYER_SET_CATEGORY(SuperSample,_("Other"));
SYNFIG_LAYER_SET_VERSION(SuperSample,"0.1");
// don't bother supersampling if our quality is too low.
if(quality>=10)
return context.accelerated_render(surface,quality,renddesc,cb);
// don't bother supersampling if our quality is too low.
if(quality>=10)
return context.accelerated_render(surface,quality,renddesc,cb);
RendDesc desc(renddesc);
SuperCallback subcb(cb,1,9000,10000);
RendDesc desc(renddesc);
SuperCallback subcb(cb,1,9000,10000);