Added rendering stuff to CPP2D.h