Last active
December 10, 2016 09:37
-
-
Save stoyannk/74f4f47efcce5eab5bc69f66f24fa96d to your computer and use it in GitHub Desktop.
Sample of the blend modes unoptimal function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inline BlendingState BlendingMode2State(BlendModes mode) | |
| { | |
| static BlendingState states[] = { | |
| { /* Clear */ | |
| true, | |
| BC_Zero, | |
| BC_Zero, | |
| BLOP_Add, | |
| BC_Zero, | |
| BC_Zero, | |
| BLOP_Add, | |
| }, | |
| // .. Many more states defined here | |
| }; | |
| return states[mode]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment