void paint(WebGLRenderingContext gl, Transform parentTransform, float parentAlpha) { if (!visible()) return; for (HtmlLayerGL child : impl.children) { child.paint(gl, localTransform(parentTransform), parentAlpha * alpha); } }
@Override public void destroy() { super.destroy(); gfx.destroyTexture(tex); gfx.gl.deleteFramebuffer(fbuf); tex = null; fbuf = null; surface = null; }
@Override public void onRemove() { super.onRemove(); impl.onRemove(this); }
@Override public void onAdd() { super.onAdd(); impl.onAdd(this); }
@Override public void destroy() { super.destroy(); impl.destroy(this); }