Skip to content

Instantly share code, notes, and snippets.

@stoyannk
Created December 10, 2016 09:53
Show Gist options
  • Select an option

  • Save stoyannk/2ae4c413c77f85d0d46d1ab6bbf501ac to your computer and use it in GitHub Desktop.

Select an option

Save stoyannk/2ae4c413c77f85d0d46d1ab6bbf501ac to your computer and use it in GitHub Desktop.
Sample for fixed blend modes function
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