X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fsurface.h;h=265d8d7955e9f75ea832da2e79240d7fce482d27;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=976b1594a484a3e846c806bcd186bf9db9d05d15;hpb=e3acc0b267b14fda5db3c7bbb2f218b993ef84b3;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/surface.h b/synfig-core/trunk/src/synfig/surface.h index 976b159..265d8d7 100644 --- a/synfig-core/trunk/src/synfig/surface.h +++ b/synfig-core/trunk/src/synfig/surface.h @@ -1,28 +1,29 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file surface.h ** \brief Surface and Pen Definitions ** -** $Id: surface.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** 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. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** 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 */ /* ========================================================================= */ /* === S T A R T =========================================================== */ -#ifndef __SINFG_SURFACE_H -#define __SINFG_SURFACE_H +#ifndef __SYNFIG_SURFACE_H +#define __SYNFIG_SURFACE_H /* === H E A D E R S ======================================================= */ @@ -38,7 +39,7 @@ /* === C L A S S E S & S T R U C T S ======================================= */ -namespace sinfg { +namespace synfig { class Target; class Target_Scanline; @@ -57,9 +58,9 @@ public: { if(!x.get_a()) return Color::alpha(); - + const float a(1.0f/x.get_a()); - + x.set_r(x.get_r()*a); x.set_g(x.get_g()*a); x.set_b(x.get_b()*a); @@ -136,7 +137,7 @@ public: alpha_pen(const etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc > &x): etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc >(x) { } - + alpha_pen(const etl::generic_pen& pen, const Color::value_type &a = 1, const _BlendFunc &func = _BlendFunc()): etl::alpha_pen< etl::generic_pen, Color::value_type, _BlendFunc >(pen,a,func) { } @@ -151,7 +152,7 @@ public: //! Creates a target that will render to \a surface etl::handle surface_target(Surface *surface); -}; // END of namespace sinfg +}; // END of namespace synfig /* === E N D =============================================================== */