Converting functions from C to C++ in Camera.h