X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_surface.h;h=0770b8538bd06d63edbdf6a334390c844eb61a95;hb=4b886acca3929def466b0fb6a948bb5c37029190;hp=cd1afed330ff4799cadaebdf2ce443dae7adeda3;hpb=cee5940bae97612105db8b7e1ffcf513f9d9150c;p=synfig.git diff --git a/ETL/trunk/ETL/_surface.h b/ETL/trunk/ETL/_surface.h index cd1afed..0770b85 100644 --- a/ETL/trunk/ETL/_surface.h +++ b/ETL/trunk/ETL/_surface.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Surface Class Implementation -** $Id: _surface.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -32,6 +32,7 @@ #include "_pen.h" #include "_misc.h" #include +#include /* === M A C R O S ========================================================= */ @@ -410,7 +411,7 @@ public: #define R(x) ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f) #define F(i,j) (cooker_.cook((*this)[max(min(j+v,h_-1),0)][max(min(i+u,w_-1),0)])*(R((i)-a)*R(b-(j)))) #define Z(i,j) ret+=F(i,j) - #define X(i,j) // placeholder... To make box more symetric + #define X(i,j) // placeholder... To make box more symmetric int u(floor_to_int(x)), v(floor_to_int(y)); float a, b; @@ -495,7 +496,7 @@ public: if(y0 > y1) std::swap(y0,y1); //local variable madness - //all things that want to interoperate should provide a default value constructor for = 0 + //all things that want to inter-operate should provide a default value constructor for = 0 accumulator_type acum = 0; int xi=0,yi=0; @@ -561,7 +562,7 @@ public: if(y0 > y1) std::swap(y0,y1); //local variable madness - //all things that want to interoperate should provide a default value constructor for = 0 + //all things that want to inter-operate should provide a default value constructor for = 0 accumulator_type acum = 0; int xi=0,yi=0;