You could go a step further and create a proper high level SDL2 module. For 
example, use sets and define flags as enums instead of using this bitwise ORing.

That said, it might be better for you to create a high level, 
graphics-library-agnostic, 2D graphics package. Better yet, update this: 
[https://github.com/nim-lang/graphics](https://github.com/nim-lang/graphics)

Reply via email to