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;
}
PostProcessor.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:RuinsOfRevenge
作者:
评论列表
文章目录