zntg/allegro5/flagmut.go
Sander Schobers 7d7bc43a80 Added flag to NewBitmapFromImage.
Bitmap is now created as a memory bitmap and converted to a video bitmap if the user requested that explicitly.
2018-02-15 20:28:53 +01:00

19 lines
209 B
Go

package allegro5
// #include <stdlib.h>
import "C"
type flagMut struct {
flg C.int
}
func (m *flagMut) Set(f C.int) {
m.flg |= f
}
func (m *flagMut) Unset(f C.int) {
if m.flg&f == f {
m.flg ^= f
}
}