Distinguish 2D/3D modes
File split, finished init functions