Created
December 10, 2016 09:53
-
-
Save stoyannk/2ae4c413c77f85d0d46d1ab6bbf501ac to your computer and use it in GitHub Desktop.
Sample for fixed blend modes 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
| static const BlendingState s_BlendingModes2State[] = { | |
| { /* Clear */ | |
| true, | |
| BC_Zero, | |
| BC_Zero, | |
| BLOP_Add, | |
| BC_Zero, | |
| BC_Zero, | |
| BLOP_Add, | |
| }, | |
| // .. Many more blend states here | |
| }; | |
| inline BlendingState BlendingMode2State(BlendModes mode) | |
| { | |
| return s_BlendingModes2State[mode]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment