convert char* to const char* in graphics.hpp