PostProcessor.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:RuinsOfRevenge 作者:
public PostProcessor( int fboWidth, int fboHeight, boolean useDepth, boolean useAlphaChannel, boolean use32Bits,
        TextureWrap u, TextureWrap v ) {
    if( use32Bits ) {
        if( useAlphaChannel ) {
            fbFormat = Format.RGBA8888;
        } else {
            fbFormat = Format.RGB888;
        }
    } else {
        if( useAlphaChannel ) {
            fbFormat = Format.RGBA4444;
        } else {
            fbFormat = Format.RGB565;
        }
    }

    composite = newPingPongBuffer( fboWidth, fboHeight, fbFormat, useDepth );
    setBufferTextureWrap( u, v );

    pipelineState = new PipelineState();

    capturing = false;
    hasCaptured = false;
    enabled = true;
    this.useDepth = useDepth;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号