+ imm.end();
+}
+
+void Graphic::create_coords(float low, float high, float brd1, float brd2, float block, vector<float> &coords) const
+{
+ coords.push_back(low);
+ coords.push_back(low+brd1);
+ if(repeat)
+ {
+ float space=high-low-brd1-brd2;
+ unsigned div=max(static_cast<unsigned>(space/block), 1U);
+ float delta=space/div;
+ for(unsigned i=1; i<div; ++i)
+ coords.push_back(low+brd1+delta*i);
+ }
+ coords.push_back(high-brd2);
+ coords.push_back(high);
+}
+
+void Graphic::create_texcoords(float low, float high, float brd1, float brd2, float scale, vector<float> &coords) const
+{
+ coords.push_back(low/scale);
+ coords.push_back((low+brd1)/scale);
+ coords.push_back((high-brd2)/scale);
+ coords.push_back(high/scale);