33 const char *valueAsString =
"";
34 if (json_object_get_type(js) == json_type_string)
35 valueAsString = json_object_get_string(js);
39 if (! strcmp(valueAsString,
"none")) {
40 value = VuoImageWrapMode_None;
41 }
else if (! strcmp(valueAsString,
"clamp")) {
42 value = VuoImageWrapMode_ClampEdge;
43 }
else if (! strcmp(valueAsString,
"repeat")) {
44 value = VuoImageWrapMode_Repeat;
45 }
else if (! strcmp(valueAsString,
"mirror")) {
46 value = VuoImageWrapMode_MirroredRepeat;