Processing port to C++