Drawing tool implemented in OpenGL