bucketorder.java

来自「Sunflow是一个照片级的渲染系统」· Java 代码 · 共 20 行

JAVA
20
字号
package org.sunflow.core;

/**
 * Creates an array of coordinates that iterate over the tiled screen. Classes
 * which implement this interface are responsible for guarenteeing the entire
 * screen is tiled. No attempt is made to check for duplicates or incomplete
 * coverage.
 */
public interface BucketOrder {
    /**
     * Computes the order in which each coordinate on the screen should be
     * visited.
     * 
     * @param nbw number of buckets in the X direction
     * @param nbh number of buckets in the Y direction
     * @return array of coordinates with interleaved X, Y of the positions of
     *         buckets to be rendered.
     */
    int[] getBucketSequence(int nbw, int nbh);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?