template<int yinc, int offset, int step>
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 }
|