com.ardor3d.scenegraph.Node.markDirty()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中com.ardor3d.scenegraph.Node.markDirty()方法的一些代码示例,展示了Node.markDirty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.markDirty()方法的具体详情如下:
包路径:com.ardor3d.scenegraph.Node
类名称:Node
方法名:markDirty

Node.markDirty介绍

暂无

代码示例

代码示例来源:origin: com.ardor3d/ardor3d-core

/**
 * 
 * <code>detachChildAt</code> removes a child at a given index. That child is returned for saving purposes.
 * 
 * @param index
 *            the index of the child to be removed.
 * @return the child at the supplied index.
 */
public Spatial detachChildAt(final int index) {
  final Spatial child = _children.remove(index);
  if (child != null) {
    child.setParent(null);
    markDirty(child, DirtyType.Detached);
    if (child.getListener() != null) {
      child.setListener(null);
    }
    if (logger.isLoggable(Level.INFO)) {
      logger.fine("Child removed.");
    }
  }
  return child;
}

代码示例来源:origin: Renanse/Ardor3D

/**
 *
 * <code>detachChildAt</code> removes a child at a given index. That child is returned for saving purposes.
 *
 * @param index
 *            the index of the child to be removed.
 * @return the child at the supplied index.
 */
public Spatial detachChildAt(final int index) {
  final Spatial child = _children.remove(index);
  if (child != null) {
    child.setParent(null);
    markDirty(child, DirtyType.Detached);
    if (child.getListener() != null) {
      child.setListener(null);
    }
    if (logger.isLoggable(Level.INFO)) {
      logger.fine("Child removed.");
    }
  }
  return child;
}

相关文章