Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alphablending, color logic op, alphatest, multitexturing, and more stability #14

Merged
merged 1 commit into from
Oct 23, 2014

Conversation

Arisotura
Copy link
Contributor

Notes:

GPU_FinishDrawing() is to be called after a batch of GPU_DrawArray() or GPU_DrawElements() calls if a) you're done drawing or b) you intend to change the GPU configuration before drawing more.

GPU no longer freezes if GPU_DrawArray/Elements is called an even number of times.

GPU_SetTextureEnable() takes a bitmask specifying which textures to enable. GPU_SetTextureEnable(GPU_TEXUNIT0|GPU_TEXUNIT1|GPU_TEXUNIT2); would enable all three texture units for example.

In consequence, GPU_SetTexture() takes an extra parameter (GPU_TEXUNIT0/1/2) specifying which texture unit to setup.

…turing.

* add GPU_FinishDrawing() to be called after a batch of GPU_DrawArray() calls if you're done drawing or if you intend to change the GPU configuration before drawing more. Also fix GPU_Finalize(). With those changes, the GPU no longer freezes if you call GPU_DrawArray() an even number of times.
* fix GPU_SetViewport() to allow color buffer reading, so blending and logicop work as expected.
smealum added a commit that referenced this pull request Oct 23, 2014
Alphablending, color logic op, alphatest, multitexturing, and more stability
@smealum smealum merged commit 4851ff3 into devkitPro:refactor Oct 23, 2014
encounter pushed a commit to encounter/ctrulib that referenced this pull request Aug 17, 2015
Alphablending, color logic op, alphatest, multitexturing, and more stability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants