template<int xinc, int offset, int step>
Translates a 3d array into a 2d array by elimination of two coordinates.
Definition at line 168 of file TnFXGraph.h. References FX::QMemArray< type, allocator >::count(), FX::QMemArray< type, allocator >::data(), and FX::QMemArray< type, allocator >::resize(). 00169 { 00170 out.resize(in.count()*3/step); 00171 FXfloat x=0; 00172 FXfloat *FXRESTRICT o=(FXfloat *) out.data(); 00173 const FXfloat *FXRESTRICT i=(const FXfloat *) in.data(); 00174 for(FXuint n=offset; n<in.count()*3; n+=step) 00175 { 00176 *o++=x; 00177 x+=xinc; 00178 *o++=i[n]; 00179 *o++=0; 00180 } 00181 }
|