Graphics server in C++