imagesampler.java

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

JAVA
25
字号
package org.sunflow.core;

/**
 * This interface represents an image sampling algorithm capable of rendering
 * the entire image. Implementations are responsible for anti-aliasing and
 * filtering.
 */
public interface ImageSampler {
    /**
     * Prepare the sampler for rendering an image of w x h pixels
     * 
     * @param w width of the image
     * @param h height of the image
     */
    public boolean prepare(Options options, Scene scene, int w, int h);

    /**
     * Render the image to the specified display. The sampler can assume the
     * display has been opened and that it will be closed after the method
     * returns.
     * 
     * @param display Display driver to send image data to
     */
    public void render(Display display);
}

⌨️ 快捷键说明

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