3d pipeline with c++