本文整理了Java中com.ardor3d.scenegraph.Node.propagateStatesFromRoot()
方法的一些代码示例,展示了Node.propagateStatesFromRoot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.propagateStatesFromRoot()
方法的具体详情如下:
包路径:com.ardor3d.scenegraph.Node
类名称:Node
方法名:propagateStatesFromRoot
暂无
代码示例来源:origin: Renanse/Ardor3D
/**
* Called during updateRenderState(Stack[]), this function goes up the scene graph tree until the parent is null and
* pushes RenderStates onto the states Stack array.
*
* @param stack
* The stack to push any parent states onto.
*/
public void propagateStatesFromRoot(final StateStack stack) {
// traverse to root to allow downward state propagation
if (_parent != null) {
_parent.propagateStatesFromRoot(stack);
}
// push states onto current render state stack
for (final RenderState state : _renderStateList.values()) {
stack.push(state);
}
}
代码示例来源:origin: com.ardor3d/ardor3d-core
/**
* Called during updateRenderState(Stack[]), this function goes up the scene graph tree until the parent is null and
* pushes RenderStates onto the states Stack array.
*
* @param stack
* The stack to push any parent states onto.
*/
public void propagateStatesFromRoot(final StateStack stack) {
// traverse to root to allow downward state propagation
if (_parent != null) {
_parent.propagateStatesFromRoot(stack);
}
// push states onto current render state stack
for (final RenderState state : _renderStateList.values()) {
stack.push(state);
}
}
内容来源于网络,如有侵权,请联系作者删除!