23 sg::separator*
sep =
new sg::separator;
25 sg::separator* sep1 =
new sg::separator;
27 sg::matrix* tsf1 =
new sg::matrix;
37 sg::separator* op_sep =
new sg::separator;
39 sg::matrix* op_tsf =
new sg::matrix;
42 sg::separator* sep2 =
new sg::separator;
44 sg::matrix* tsf2 =
new sg::matrix;
73 float odx = omx[0]-omn[0];
74 float xmargin = odx*0.1f;
76 op_tsf->mul_translate(-omn[0]+mx1[0]+xmargin,0,0);
78 tsf2->mul_translate(-mn2[0]+mx1[0]+xmargin+odx+xmargin,0,0);
83 float xspace = (mx1[0]-mn1[0])*0.1f;
85 tsf2->mul_translate(-mn2[0]+mx1[0]+xspace,0,0);
90 sg::vertices* vtcs =
new sg::vertices;
107 float osx =
mx(mx1[0]-mn1[0],mx2[0]-mn2[0]);
110 op_tsf->mul_scale(osx,1,1);
114 float dx1 = -(mn1[0]+mx1[0])*0.5f;
115 float dy1 = -mn1[1]+h+ymargin;
116 tsf1->mul_translate(dx1,dy1,0);
120 float dx2 = -(mn2[0]+mx2[0])*0.5f;
121 float dy2 = -mx2[1]-ymargin;
122 tsf2->mul_translate(dx2,dy2,0);
131 float s2 = 0.5f*(mx1[0]-mn1[0])/(mx2[0]-mn2[0]);
132 tsf2->set_scale(s2,s2,1);
135 float xshift = (mx1[0]-mn1[0])*0.1f;
136 float dx2 = -mn2[0]+mx1[0]+xshift;
138 float yshift = (mx1[1]-mn1[1])*0.3f;
139 float dy2 = -mn2[1]+mx1[1]-yshift;
141 tsf2->set_translate(dx2,dy2,0);
142 tsf2->mul_scale(s2,s2,1);
151 float s2 = 0.5f*(mx1[0]-mn1[0])/(mx2[0]-mn2[0]);
152 tsf2->set_scale(s2,s2,1);
155 float xshift = (mx1[0]-mn1[0])*0.1f;
156 float dx2 = -mn2[0]+mx1[0]+xshift;
158 float yshift = (mx1[1]-mn1[1])*0.3f;
159 float dy2 = -mn2[1]-yshift;
161 tsf2->set_translate(dx2,dy2,0);
162 tsf2->mul_scale(s2,s2,1);