moving inmediate mode render line method to class camera