示例#1
0
  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;
  }
示例#3
0
 @Override
 public void onRemove() {
   super.onRemove();
   impl.onRemove(this);
 }
示例#4
0
 @Override
 public void onAdd() {
   super.onAdd();
   impl.onAdd(this);
 }
示例#5
0
 @Override
 public void destroy() {
   super.destroy();
   impl.destroy(this);
 }