本文整理了Java中com.ardor3d.scenegraph.Node.markDirty()
方法的一些代码示例,展示了Node.markDirty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.markDirty()
方法的具体详情如下:
包路径:com.ardor3d.scenegraph.Node
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!