Created
May 6, 2015 19:58
-
-
Save fowlmouth/51ed23f75b9c3d37e8e9 to your computer and use it in GitHub Desktop.
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
template mkcolor (a,b,c,d): uint32 = | |
uint32(SDL_FOURCC(a.int, b.int, c.int, d.int)) | |
converter toUint32 (some:color):uint32 = | |
mkColor(some.r, some.g, some.b, some.a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment