From: fincs Date: Sat, 22 Aug 2015 19:20:37 +0000 (+0200) Subject: Merge pull request #154 from Subv/tev_buffer_color X-Git-Tag: v0.6.0~16^2~18 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=6f9edd9bbe4fbc56212b57965a3235d67e9d8805;p=corbenik%2Fctrulib.git Merge pull request #154 from Subv/tev_buffer_color GPU: Added code to manipulate the combiner buffer. --- 6f9edd9bbe4fbc56212b57965a3235d67e9d8805 diff --cc libctru/include/3ds/gpu/gpu.h index ca21524,b58cf89..6d97393 --- a/libctru/include/3ds/gpu/gpu.h +++ b/libctru/include/3ds/gpu/gpu.h @@@ -263,9 -263,11 +267,11 @@@ void GPU_SetScissorTest(GPU_SCISSORMOD void GPU_DepthMap(float zScale, float zOffset); void GPU_SetAlphaTest(bool enable, GPU_TESTFUNC function, u8 ref); void GPU_SetDepthTestAndWriteMask(bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemask); // GPU_WRITEMASK values can be ORed together -void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 mask, u8 replace); +void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_mask); void GPU_SetStencilOp(GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass); void GPU_SetFaceCulling(GPU_CULLMODE mode); + // Only the first four tev stages can write to the combiner buffer, use GPU_TEV_BUFFER_WRITE_CONFIG to build the parameters + void GPU_SetCombinerBufferWrite(u8 rgb_config, u8 alpha_config); // these two can't be used together void GPU_SetAlphaBlending(GPU_BLENDEQUATION colorEquation, GPU_BLENDEQUATION alphaEquation,