当前位置: 首页>>代码示例>>Java>>正文


Java RenderQueue.Bucket方法代码示例

本文整理汇总了Java中com.jme3.renderer.queue.RenderQueue.Bucket方法的典型用法代码示例。如果您正苦于以下问题:Java RenderQueue.Bucket方法的具体用法?Java RenderQueue.Bucket怎么用?Java RenderQueue.Bucket使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jme3.renderer.queue.RenderQueue的用法示例。


在下文中一共展示了RenderQueue.Bucket方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: changeBucketType

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * Handle changing the bucket type.
 */
@FXThread
private void changeBucketType(@NotNull final RenderQueue.Bucket newValue) {

    final T editor3DState = getEditor3DState();
    editor3DState.changeBucketType(newValue);

    final EditorMaterialEditorState editorState = getEditorState();
    if (editorState != null) editorState.setBucketType(newValue);
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:13,代码来源:BaseMaterialFileEditor.java

示例2: setBucketType

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * Sets bucket type.
 *
 * @param bucketType the bucket type.
 */
@FXThread
public void setBucketType(@NotNull final RenderQueue.Bucket bucketType) {
    final boolean changed = getBucketTypeId() != bucketType.ordinal();
    this.bucketTypeId = bucketType.ordinal();
    final Runnable changeHandler = getChangeHandler();
    if (changed && changeHandler != null) {
        changeHandler.run();
    }
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:15,代码来源:EditorMaterialEditorState.java

示例3: getQueueBucket

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * Returns this spatial's renderqueue bucket. If the mode is set to inherit,
 * then the spatial gets its renderqueue bucket from its parent.
 *
 * @return The spatial's current renderqueue mode.
 */
public RenderQueue.Bucket getQueueBucket() {
    if (queueBucket != RenderQueue.Bucket.Inherit) {
        return queueBucket;
    } else if (parent != null) {
        return parent.getQueueBucket();
    } else {
        return RenderQueue.Bucket.Opaque;
    }
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:16,代码来源:Spatial.java

示例4: getBucketComboBox

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * @return the list of RenderQueue.Bucket.
 */
@FromAnyThread
private @NotNull ComboBox<RenderQueue.Bucket> getBucketComboBox() {
    return notNull(bucketComboBox);
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:8,代码来源:BaseMaterialFileEditor.java

示例5: getBucketType

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * Gets bucket type.
 *
 * @return the bucket type.
 */
@FXThread
public @NotNull RenderQueue.Bucket getBucketType() {
    return BUCKETS[bucketTypeId];
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:10,代码来源:EditorMaterialEditorState.java

示例6: setQueueBucket

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * <code>setQueueBucket</code> determines at what phase of the
 * rendering process this Spatial will rendered. See the
 * {@link Bucket} enum for an explanation of the various
 * render queue buckets.
 *
 * @param queueBucket
 *            The bucket to use for this Spatial.
 */
public void setQueueBucket(RenderQueue.Bucket queueBucket) {
    this.queueBucket = queueBucket;
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:13,代码来源:Spatial.java

示例7: getLocalQueueBucket

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * @return The locally set queue bucket mode
 *
 * @see Spatial#setQueueBucket(com.jme3.renderer.queue.RenderQueue.Bucket)
 */
public RenderQueue.Bucket getLocalQueueBucket() {
    return queueBucket;
}
 
开发者ID:JavaSaBr,项目名称:jmonkeybuilder,代码行数:9,代码来源:Spatial.java

示例8: setQueueBucket

import com.jme3.renderer.queue.RenderQueue; //导入方法依赖的package包/类
/**
 * <code>setQueueBucket</code> determines at what phase of the
 * rendering process this Spatial will rendered. See the
 * {@link Bucket} enum for an explanation of the various 
 * render queue buckets.
 * 
 * @param queueBucket
 *            The bucket to use for this Spatial.
 */
public void setQueueBucket(RenderQueue.Bucket queueBucket) {
    this.queueBucket = queueBucket;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:13,代码来源:Spatial.java


注:本文中的com.jme3.renderer.queue.RenderQueue.Bucket方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。