C++ drawing basis