Lines Matching defs:dst
175 static void getBasicTexCoord2D (std::vector<float>& dst, int cellNdx)
209 computeQuadTexCoord2D(dst, bottomLeft, topRight);
212 static void getAffineTexCoord2D (std::vector<float>& dst, int cellNdx)
215 getBasicTexCoord2D(dst, cellNdx);
226 Vec2 p0 = transform * Vec2(dst[0], dst[1]);
227 Vec2 p1 = transform * Vec2(dst[2], dst[3]);
228 Vec2 p2 = transform * Vec2(dst[4], dst[5]);
229 Vec2 p3 = transform * Vec2(dst[6], dst[7]);
231 dst[0] = p0.x(); dst[1] = p0.y();
232 dst[2] = p1.x(); dst[3] = p1.y();
233 dst[4] = p2.x(); dst[5] = p2.y();
234 dst[6] = p3.x(); dst[7] = p3.y();
482 static void randomPartition (vector<IVec4>& dst, de::Random& rnd, int x, int y, int width, int height)
494 randomPartition(dst, rnd, x, y, split, height);
495 randomPartition(dst, rnd, x+split, y, width-split, height);
500 randomPartition(dst, rnd, x, y, width, split);
501 randomPartition(dst, rnd, x, y+split, width, height-split);
504 dst.push_back(IVec4(x, y, width, height));
507 static void computeGridLayout (vector<IVec4>& dst, int width, int height)
510 randomPartition(dst, rnd, 0, 0, width, height);