Converting C code to use several C++ features (e.g., replacing malloc/free calls with new/delete) and modifying render routines/data structures