Skip to content

Instantly share code, notes, and snippets.

@BitPuffin
Created March 20, 2014 15:21
Show Gist options
  • Save BitPuffin/9666225 to your computer and use it in GitHub Desktop.
Save BitPuffin/9666225 to your computer and use it in GitHub Desktop.
proc alSetNewBitmapFlags*(flags: int) {.comalleg, importc: "al_set_new_bitmap_flags".}
proc setNewBitmapFlags*(flags: varargs[TAllegroBitmapFlags]) =
var f = 0
for fl in flags:
f = f or fl
alSetNewBitmapFlags(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment