39{
41 data["cNear"] = cNear;
42 data["cFar"] = cFar;
43 data["aspect"] = aspect;
44 data["fov"] = fov;
45 data["ID"] = camID;
47 tmp["x"] = position[0];
48 tmp["y"] = position[1];
49 tmp["z"] = position[2];
50 data["position"] = tmp;
52 tmp["x"] = rotation[0];
53 tmp["y"] = rotation[1];
54 tmp["z"] = rotation[2];
55 data["rotation"] = tmp;
56 return data;
57}
a class to store JSON values
basic_json<> json
default JSON class