本文整理了Java中com.jme3.scene.Spatial.getQueueBucket()
方法的一些代码示例,展示了Spatial.getQueueBucket()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Spatial.getQueueBucket()
方法的具体详情如下:
包路径:com.jme3.scene.Spatial
类名称:Spatial
方法名:getQueueBucket
[英]Returns this spatial's renderqueue bucket. If the mode is set to inherit, then the spatial gets its renderqueue bucket from its parent.
[中]返回此spatial的renderqueue存储桶。如果模式设置为继承,则空间从其父级获取其renderqueue bucket。
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
private void renderSubScene(Spatial scene, ViewPort vp) {
// check culling first.
if (!scene.checkCulling(vp.getCamera())) {
return;
}
scene.runControlRender(this, vp);
if (scene instanceof Node) {
// Recurse for all children
Node n = (Node) scene;
List<Spatial> children = n.getChildren();
// Saving cam state for culling
int camState = vp.getCamera().getPlaneState();
for (int i = 0; i < children.size(); i++) {
// Restoring cam state before proceeding children recursively
vp.getCamera().setPlaneState(camState);
renderSubScene(children.get(i), vp);
}
} else if (scene instanceof Geometry) {
// add to the render queue
Geometry gm = (Geometry) scene;
if (gm.getMaterial() == null) {
throw new IllegalStateException("No material is set for Geometry: " + gm.getName());
}
vp.getQueue().addToQueue(gm, scene.getQueueBucket());
}
}
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
if (getQueueBucket() == Bucket.Gui) {
return cam.containsGui(getWorldBound());
} else {
代码示例来源:origin: org.jmonkeyengine/jme3-core
private void renderSubScene(Spatial scene, ViewPort vp) {
// check culling first.
if (!scene.checkCulling(vp.getCamera())) {
return;
}
scene.runControlRender(this, vp);
if (scene instanceof Node) {
// Recurse for all children
Node n = (Node) scene;
List<Spatial> children = n.getChildren();
// Saving cam state for culling
int camState = vp.getCamera().getPlaneState();
for (int i = 0; i < children.size(); i++) {
// Restoring cam state before proceeding children recursively
vp.getCamera().setPlaneState(camState);
renderSubScene(children.get(i), vp);
}
} else if (scene instanceof Geometry) {
// add to the render queue
Geometry gm = (Geometry) scene;
if (gm.getMaterial() == null) {
throw new IllegalStateException("No material is set for Geometry: " + gm.getName());
}
vp.getQueue().addToQueue(gm, scene.getQueueBucket());
}
}
代码示例来源:origin: info.projectkyoto/mms-engine
if (getQueueBucket() == Bucket.Gui) {
return cam.containsGui(getWorldBound());
} else {
代码示例来源:origin: org.jmonkeyengine/jme3-core
if (getQueueBucket() == Bucket.Gui) {
return cam.containsGui(getWorldBound());
} else {
代码示例来源:origin: jMonkeyEngine-Contributions/Lemur
return result;
if( rootEntry.root instanceof Spatial && ((Spatial)rootEntry.root).getQueueBucket() == Bucket.Gui ) {
trace("Creating GuiBucket ray.");
代码示例来源:origin: info.projectkyoto/mms-engine
vp.getQueue().addToQueue(gm, scene.getQueueBucket());
代码示例来源:origin: jMonkeyEngine-Contributions/Lemur
if( cam.isParallelProjection() || capture.getQueueBucket() == Bucket.Gui ) {
Vector2f current = new Vector2f(event.getX(), event.getY());
Vector2f delta = current.subtract(drag);
内容来源于网络,如有侵权,请联系作者删除!