template<int yinc, int offset, int step>
static void FX::TnFXGraph::ReduceE2x ( QMemArray< FXVec3f > &  out,
const QMemArray< FXVec3f > &  in 
) [inline, static, inherited]

Translates a 3d array into a 2d array by elimination of two coordinates.

Definition at line 153 of file TnFXGraph.h.

References FX::QMemArray< type, allocator >::count(), FX::QMemArray< type, allocator >::data(), and FX::QMemArray< type, allocator >::resize().

00154     {
00155         out.resize(in.count()*3/step);
00156         FXfloat y=0;
00157         FXfloat *FXRESTRICT o=(FXfloat *) out.data();
00158         const FXfloat *FXRESTRICT i=(const FXfloat *) in.data();
00159         for(FXuint n=offset; n<in.count()*3; n+=step)
00160         {
00161             *o++=i[n];
00162             *o++=y;
00163             *o++=0;
00164             y+=yinc;
00165         }
00166     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:48 2009 for TnFOX by doxygen v1.4.7