Creating projection updater function in graphics library