template<int offset, int stepe, int stepm>
Translates a 3d array into a 2d array by elimination of a coordinate, stepping stepe at the end and stepm in the middle.
Definition at line 140 of file TnFXGraph.h. References FX::QMemArray< type, allocator >::count(), FX::QMemArray< type, allocator >::data(), and FX::QMemArray< type, allocator >::resize(). 00141 { 00142 out.resize(in.count()*3/(stepe+stepm)); 00143 FXfloat *FXRESTRICT o=(FXfloat *) out.data(); 00144 const FXfloat *FXRESTRICT i=(const FXfloat *) in.data(); 00145 for(FXuint n=offset; n<in.count()*3; n+=stepe) 00146 { 00147 *o++=i[n]; 00148 *o++=i[n+stepm]; 00149 *o++=0; 00150 } 00151 }
|