134 |
* @param h The w |
* @param h The w |
135 |
* when mapped . |
* when mapped . |
136 |
*/ |
*/ |
137 |
public void place(final Cell c, final VobScene v, final int cs, |
public void place(final Cell c, final VobScene v, |
138 |
final float w, final float h, |
final Box box, |
139 |
final ViewContext context) { |
final ViewContext context) { |
140 |
setCenter(context.getAccursed()); |
setCenter(context.getAccursed()); |
141 |
if(d_clone == null) |
if(d_clone == null) |
166 |
bg.setBg(bg.getBg().darker().darker()); |
bg.setBg(bg.getBg().darker().darker()); |
167 |
} |
} |
168 |
|
|
169 |
/* |
final Box contentBox = new Box(); |
170 |
if(c.s(d_spaces, -1) != null) // if includes a slice |
float pad = 5; |
171 |
bg.setBg(new Color(bg.getBg().getRGB() & (int)0xff00ffffL)); |
contentBox.setSubWH(box, "CO", pad, pad, box.getWidth()-2*pad, box.getHeight()-2*pad); |
|
*/ |
|
|
|
|
|
final int content_cs = v.coordsys(cs, CONTENT_KEY, 0, 5, 5, 2, 2); |
|
|
final int cs_box = v.coordsys(cs, BOX_KEY, 0, 0, 0, w, h); |
|
172 |
|
|
173 |
if(!(GraphicsAPI.getInstance() instanceof gzz.client.gl.GLAPI)) { |
if(!(GraphicsAPI.getInstance() instanceof gzz.client.gl.GLAPI)) { |
174 |
ccv.place(c, v, content_cs, w-10, h-10, context, 1); |
ccv.place(c, v, contentBox, context, 1); |
175 |
v.map.put(bg, cs_box); |
v.map.put(bg, box.getUnitCoordsys()); |
176 |
} else { |
} else { |
177 |
v.map.put(bg, cs_box); |
v.map.put(bg, box.getUnitCoordsys()); |
178 |
gzz.gfx.gl.Stencil.drawStenciled( |
gzz.gfx.gl.Stencil.drawStenciled( |
179 |
v, |
v, |
180 |
new Runnable() { public void run() { |
new Runnable() { public void run() { |
181 |
v.map.put(bg, cs_box); |
v.map.put(bg, box.getUnitCoordsys()); |
182 |
}}, |
}}, |
183 |
null, |
null, |
184 |
null, |
null, |
185 |
new Runnable() { public void run() { |
new Runnable() { public void run() { |
186 |
ccv.place(c, v, content_cs, w-10, h-10, context, 1); |
ccv.place(c, v, contentBox, context, 1); |
187 |
}}, |
}}, |
188 |
false |
false |
189 |
); |
); |