Added to the camera class onviewchanged event. I thing there is a better way is to change camera events to the simple callback function and therefore replace onviewchanged to the renderer.