Alphablending, color logic op, alphatest, multitexturing, and more stability #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.