FC2_Camera_Information FC2_Camera__information_get(FC2_Camera camera) { FC2_Camera_Information camera_information = Memory__new(FC2_Camera_Information); FC2_Error error = fc2GetCameraInfo(camera, camera_information); assert (error == FC2_ERROR_OK); return camera_information; }
FC2_Camera_Identifier FC2_Camera__identifier_fetch( FC2_Camera camera, Unsigned index) { FC2_Camera_Identifier camera_identifier = Memory__new(FC2_Camera_Identifier); FC2_Error error = fc2GetCameraFromIndex(camera, index, camera_identifier); assert (error == FC2_ERROR_OK); return camera_identifier; }
Tag Tag__create(Unsigned id, Map map) { Tag_Height tag_height = Map__tag_height_lookup(map, id); Tag tag = Memory__new(Tag, "Tag__create"); tag->twist = (Double)0.0; tag->arcs = List__new("Tag__create:List__new:arcs"); // <Arc> tag->diagonal = 0.0; tag->hop_count = 0; tag->id = id; tag->initialized = (Logical)0; tag->map = map; tag->world_diagonal = tag_height->world_diagonal; tag->visit = map->visit; tag->x = (Double)0.0; tag->y = (Double)0.0; tag->z = tag_height->z; tag->updated = (Logical)1; return tag; }
Tag_Height Tag_Height__xml_read(File xml_in_file) { // Read in "<Tag_Height .../>": File__tag_match(xml_in_file, "Tag_Height"); Unsigned first_id = (Unsigned)File__integer_attribute_read(xml_in_file, "First_Id"); Unsigned last_id = (Unsigned)File__integer_attribute_read(xml_in_file, "Last_Id"); Double World_Diagonal = File__double_attribute_read(xml_in_file, "World_Diagonal"); Double z = File__double_attribute_read(xml_in_file, "Z"); File__string_match(xml_in_file, "/>\n"); // Load up *tag_height*: Tag_Height tag_height = Memory__new(Tag_Height, "Tag_Height__xml_read"); tag_height->world_diagonal = World_Diagonal; tag_height->first_id = first_id; tag_height->last_id = last_id; tag_height->z = z; return tag_height; }
FC2_Image FC2_Image__create(void) { FC2_Image image = Memory__new(FC2_Image); FC2_Error error = fc2CreateImage(image); assert (error == FC2_ERROR_OK); return image; }