@Nazariglez to my knowledge the current opengl binding is a binding for the C
compilation backend only. The webgl api is a different API that tries to be as
close as possible to the original API, but it has some differences because of
the fact that it targets javascript. You cannot change the compilation target
to javascript and assume that things just work there. That doesn't mean that it
is impossible, it is just not trivial. Since you already thought about writing
your own 2D engine. When you want to have some more interactive feedback to
evaluate nim for your goals, try out the nim irc/gitter channel (they are
bridged together)