scriptup 2026.0.1 → 2026.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +43 -24
- data/ext/arc_curve.c +50 -0
- data/ext/attribute_dictionaries.c +49 -32
- data/ext/attribute_dictionary.c +54 -127
- data/ext/axes.c +79 -0
- data/ext/behavior.c +100 -9
- data/ext/bounding_box.c +195 -0
- data/ext/camera.c +178 -0
- data/ext/classifications.c +85 -0
- data/ext/color.c +91 -163
- data/ext/component_definition.c +78 -162
- data/ext/component_instance.c +88 -9
- data/ext/construction.c +59 -0
- data/ext/curve.c +87 -0
- data/ext/definition_list.c +89 -109
- data/ext/depend +1 -0
- data/ext/drawing_element.c +96 -117
- data/ext/edge.c +147 -0
- data/ext/edge_use.c +37 -0
- data/ext/entities.c +573 -16
- data/ext/entities_builder.c +145 -0
- data/ext/entity.c +175 -215
- data/ext/environments.c +149 -0
- data/ext/extconf.rb +54 -10
- data/ext/face.c +331 -0
- data/ext/geom.c +172 -0
- data/ext/group.c +86 -0
- data/ext/helpers.c +244 -0
- data/ext/image.c +182 -0
- data/ext/image_rep.c +158 -0
- data/ext/instance_path.c +185 -0
- data/ext/lat_long.c +88 -0
- data/ext/layer.c +98 -0
- data/ext/layer_folder.c +99 -0
- data/ext/layers.c +122 -0
- data/ext/length.c +253 -0
- data/ext/line_styles.c +60 -0
- data/ext/loop.c +24 -0
- data/ext/material.c +144 -197
- data/ext/materials.c +49 -60
- data/ext/model.c +232 -26
- data/ext/options_store.c +188 -0
- data/ext/page.c +168 -0
- data/ext/pages.c +135 -0
- data/ext/point2d.c +195 -0
- data/ext/point3d.c +340 -0
- data/ext/polygon_mesh.c +253 -0
- data/ext/scriptup.h +279 -0
- data/ext/section_plane.c +44 -0
- data/ext/sketchup.c +102 -76
- data/ext/styles.c +91 -0
- data/ext/text.c +135 -0
- data/ext/texture.c +74 -83
- data/ext/texture_writer.c +104 -0
- data/ext/transformation.c +309 -0
- data/ext/transformation2d.c +190 -0
- data/ext/uv_helper.c +41 -0
- data/ext/vector2d.c +238 -0
- data/ext/vector3d.c +294 -0
- data/ext/vertex.c +67 -0
- data/lib/sketchup.rb +2 -2
- data/sig/_top_level.rbs +188 -0
- data/sig/array.rbs +52 -0
- data/sig/geom/bounding_box.rbs +28 -0
- data/sig/geom/bounds2d.rbs +20 -0
- data/sig/geom/lat_long.rbs +13 -0
- data/sig/geom/oriented_bounds2d.rbs +10 -0
- data/sig/geom/point2d.rbs +32 -0
- data/sig/geom/point3d.rbs +46 -0
- data/sig/geom/polygon_mesh.rbs +35 -0
- data/sig/geom/transformation.rbs +44 -0
- data/sig/geom/transformation2d.rbs +26 -0
- data/sig/geom/utm.rbs +14 -0
- data/sig/geom/vector2d.rbs +40 -0
- data/sig/geom/vector3d.rbs +49 -0
- data/sig/geom.rbs +25 -0
- data/sig/language_handler.rbs +8 -0
- data/sig/layout/angular_dimension.rbs +32 -0
- data/sig/layout/auto_text_definition.rbs +73 -0
- data/sig/layout/auto_text_definitions.rbs +15 -0
- data/sig/layout/connection_point.rbs +6 -0
- data/sig/layout/dictionary.rbs +18 -0
- data/sig/layout/document.rbs +61 -0
- data/sig/layout/ellipse.rbs +5 -0
- data/sig/layout/entities.rbs +10 -0
- data/sig/layout/entity.rbs +28 -0
- data/sig/layout/formatted_text.rbs +30 -0
- data/sig/layout/grid.rbs +24 -0
- data/sig/layout/group.rbs +17 -0
- data/sig/layout/image.rbs +7 -0
- data/sig/layout/label.rbs +31 -0
- data/sig/layout/layer.rbs +21 -0
- data/sig/layout/layer_instance.rbs +9 -0
- data/sig/layout/layers.rbs +18 -0
- data/sig/layout/linear_dimension.rbs +39 -0
- data/sig/layout/locked_entity_error.rbs +4 -0
- data/sig/layout/locked_layer_error.rbs +4 -0
- data/sig/layout/page.rbs +20 -0
- data/sig/layout/page_info.rbs +37 -0
- data/sig/layout/pages.rbs +17 -0
- data/sig/layout/path.rbs +34 -0
- data/sig/layout/rectangle.rbs +15 -0
- data/sig/layout/reference_entity.rbs +7 -0
- data/sig/layout/sketch_up_model.rbs +54 -0
- data/sig/layout/style.rbs +150 -0
- data/sig/layout/table.rbs +17 -0
- data/sig/layout/table_cell.rbs +13 -0
- data/sig/layout/table_column.rbs +10 -0
- data/sig/layout/table_row.rbs +10 -0
- data/sig/layout.rbs +4 -0
- data/sig/length.rbs +37 -0
- data/sig/numeric.rbs +23 -0
- data/sig/sketchup/animation.rbs +8 -0
- data/sig/sketchup/app_observer.rbs +11 -0
- data/sig/sketchup/arc_curve.rbs +14 -0
- data/sig/sketchup/attribute_dictionaries.rbs +11 -0
- data/sig/sketchup/attribute_dictionary.rbs +18 -0
- data/sig/sketchup/axes.rbs +13 -0
- data/sig/sketchup/behavior.rbs +19 -0
- data/sig/sketchup/camera.rbs +33 -0
- data/sig/sketchup/classification_schema.rbs +8 -0
- data/sig/sketchup/classifications.rbs +12 -0
- data/sig/sketchup/color.rbs +22 -0
- data/sig/sketchup/component_definition.rbs +43 -0
- data/sig/sketchup/component_instance.rbs +32 -0
- data/sig/sketchup/console.rbs +8 -0
- data/sig/sketchup/construction_line.rbs +17 -0
- data/sig/sketchup/construction_point.rbs +5 -0
- data/sig/sketchup/curve.rbs +13 -0
- data/sig/sketchup/definition_list.rbs +26 -0
- data/sig/sketchup/definition_observer.rbs +6 -0
- data/sig/sketchup/definitions_observer.rbs +8 -0
- data/sig/sketchup/dimension.rbs +18 -0
- data/sig/sketchup/dimension_linear.rbs +24 -0
- data/sig/sketchup/dimension_observer.rbs +5 -0
- data/sig/sketchup/dimension_radial.rbs +9 -0
- data/sig/sketchup/drawingelement.rbs +18 -0
- data/sig/sketchup/edge.rbs +24 -0
- data/sig/sketchup/edge_use.rbs +13 -0
- data/sig/sketchup/entities.rbs +61 -0
- data/sig/sketchup/entities_builder.rbs +15 -0
- data/sig/sketchup/entities_observer.rbs +9 -0
- data/sig/sketchup/entity.rbs +21 -0
- data/sig/sketchup/entity_observer.rbs +6 -0
- data/sig/sketchup/environment.rbs +25 -0
- data/sig/sketchup/environments.rbs +18 -0
- data/sig/sketchup/environments_observer.rbs +8 -0
- data/sig/sketchup/extensions_manager.rbs +11 -0
- data/sig/sketchup/face.rbs +44 -0
- data/sig/sketchup/frame_change_observer.rbs +5 -0
- data/sig/sketchup/group.rbs +38 -0
- data/sig/sketchup/http/request.rbs +17 -0
- data/sig/sketchup/http/response.rbs +7 -0
- data/sig/sketchup/http.rbs +27 -0
- data/sig/sketchup/image.rbs +23 -0
- data/sig/sketchup/image_rep.rbs +17 -0
- data/sig/sketchup/importer.rbs +14 -0
- data/sig/sketchup/input_point.rbs +25 -0
- data/sig/sketchup/instance_observer.rbs +6 -0
- data/sig/sketchup/instance_path.rbs +20 -0
- data/sig/sketchup/layer.rbs +20 -0
- data/sig/sketchup/layer_folder.rbs +26 -0
- data/sig/sketchup/layers.rbs +30 -0
- data/sig/sketchup/layers_observer.rbs +13 -0
- data/sig/sketchup/licensing/extension_license.rbs +8 -0
- data/sig/sketchup/licensing.rbs +15 -0
- data/sig/sketchup/line_style.rbs +5 -0
- data/sig/sketchup/line_styles.rbs +13 -0
- data/sig/sketchup/load_handler.rbs +8 -0
- data/sig/sketchup/loop.rbs +10 -0
- data/sig/sketchup/material.rbs +74 -0
- data/sig/sketchup/materials.rbs +22 -0
- data/sig/sketchup/materials_observer.rbs +10 -0
- data/sig/sketchup/menu.rbs +9 -0
- data/sig/sketchup/model.rbs +105 -0
- data/sig/sketchup/model_observer.rbs +23 -0
- data/sig/sketchup/options_manager.rbs +12 -0
- data/sig/sketchup/options_provider.rbs +23 -0
- data/sig/sketchup/options_provider_observer.rbs +5 -0
- data/sig/sketchup/overlay.rbs +21 -0
- data/sig/sketchup/overlays_manager.rbs +10 -0
- data/sig/sketchup/page.rbs +55 -0
- data/sig/sketchup/pages.rbs +25 -0
- data/sig/sketchup/pages_observer.rbs +7 -0
- data/sig/sketchup/pick_helper.rbs +28 -0
- data/sig/sketchup/regional_settings.rbs +7 -0
- data/sig/sketchup/rendering_options.rbs +89 -0
- data/sig/sketchup/rendering_options_observer.rbs +5 -0
- data/sig/sketchup/section_plane.rbs +12 -0
- data/sig/sketchup/selection.rbs +31 -0
- data/sig/sketchup/selection_observer.rbs +8 -0
- data/sig/sketchup/set.rbs +15 -0
- data/sig/sketchup/shadow_info.rbs +18 -0
- data/sig/sketchup/shadow_info_observer.rbs +5 -0
- data/sig/sketchup/skp.rbs +5 -0
- data/sig/sketchup/snap.rbs +10 -0
- data/sig/sketchup/style.rbs +9 -0
- data/sig/sketchup/styles.rbs +21 -0
- data/sig/sketchup/text.rbs +22 -0
- data/sig/sketchup/texture.rbs +14 -0
- data/sig/sketchup/texture_writer.rbs +14 -0
- data/sig/sketchup/tool.rbs +45 -0
- data/sig/sketchup/tools.rbs +14 -0
- data/sig/sketchup/tools_observer.rbs +6 -0
- data/sig/sketchup/uv_helper.rbs +6 -0
- data/sig/sketchup/vertex.rbs +11 -0
- data/sig/sketchup/view.rbs +87 -0
- data/sig/sketchup/view_observer.rbs +6 -0
- data/sig/sketchup.rbs +137 -0
- data/sig/sketchup_extension.rbs +23 -0
- data/sig/string.rbs +5 -0
- data/sig/ui/command.rbs +20 -0
- data/sig/ui/html_dialog.rbs +29 -0
- data/sig/ui/notification.rbs +16 -0
- data/sig/ui/toolbar.rbs +18 -0
- data/sig/ui/web_dialog.rbs +38 -0
- data/sig/ui.rbs +66 -0
- metadata +204 -287
- data/ext/attribute_dictionaries.h +0 -8
- data/ext/attribute_dictionary.h +0 -8
- data/ext/behavior.h +0 -8
- data/ext/color.h +0 -8
- data/ext/component_definition.h +0 -8
- data/ext/component_instance.h +0 -8
- data/ext/definition_list.h +0 -8
- data/ext/drawing_element.h +0 -8
- data/ext/entities.h +0 -8
- data/ext/entity.h +0 -8
- data/ext/material.h +0 -8
- data/ext/materials.h +0 -8
- data/ext/model.h +0 -8
- data/ext/not_implemented.c +0 -88
- data/ext/not_implemented.h +0 -20
- data/ext/sketchup.h +0 -9
- data/ext/texture.h +0 -8
- data/ext/typed_value.c +0 -84
- data/ext/typed_value.h +0 -11
- data/ext/utils.h +0 -111
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
- data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
- data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
- data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
- data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
- data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
- data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
- data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
- data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
- data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
- data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
- data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
- data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
- data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
- data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
- data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
- data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
- data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
- data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
- data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
- data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
- data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
- data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
- data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
- data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
- data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
- data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
- data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
- data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
- data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
- data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
- data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
- data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
- data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
- data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
- data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
- data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
- data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
- data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
- data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
- data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
- data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
- data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
- data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
- data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
- data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
- data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
- data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
- data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
- data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
- data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
- data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
- data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
- data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
- data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
- data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
- data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
- data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
- data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
- data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
- data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
- data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
- data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
- data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
- data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
- data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
- data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
- data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
- data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
- data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
- data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
- data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
- data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
- data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
- data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
- data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
- data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
- data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
- data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
- data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
- data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
- data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
- data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
- data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
- data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
- data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
- data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
- data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
- data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
- data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
- data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
- data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
- data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
- data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
|
@@ -1,797 +0,0 @@
|
|
|
1
|
-
// Copyright 2012-2024 Trimble Inc. All Rights Reserved.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file
|
|
5
|
-
* @brief Interfaces for SUMaterialRef.
|
|
6
|
-
*/
|
|
7
|
-
#ifndef SKETCHUP_MODEL_MATERIAL_H_
|
|
8
|
-
#define SKETCHUP_MODEL_MATERIAL_H_
|
|
9
|
-
|
|
10
|
-
#include <SketchUpAPI/color.h>
|
|
11
|
-
#include <SketchUpAPI/common.h>
|
|
12
|
-
#include <SketchUpAPI/unicodestring.h>
|
|
13
|
-
#include <SketchUpAPI/model/defs.h>
|
|
14
|
-
|
|
15
|
-
#ifdef __cplusplus
|
|
16
|
-
extern "C" {
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
@struct SUMaterialRef
|
|
21
|
-
@extends SUEntityRef
|
|
22
|
-
@brief References a material object.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
@enum SUMaterialType
|
|
27
|
-
@brief Indicates material type.
|
|
28
|
-
*/
|
|
29
|
-
enum SUMaterialType {
|
|
30
|
-
SUMaterialType_Colored = 0, ///< Colored material
|
|
31
|
-
SUMaterialType_Textured, ///< Textured material
|
|
32
|
-
SUMaterialType_ColorizedTexture ///< Colored and textured material
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
@enum SUMaterialOwnerType
|
|
37
|
-
@brief Indicates material owner type.
|
|
38
|
-
@since SketchUp 2019.2, API 7.1
|
|
39
|
-
*/
|
|
40
|
-
enum SUMaterialOwnerType {
|
|
41
|
-
SUMaterialOwnerType_None = 0, ///< Not owned
|
|
42
|
-
SUMaterialOwnerType_DrawingElement, ///< Can be applied to SUDrawingElements
|
|
43
|
-
SUMaterialOwnerType_Image, ///< Owned exclusively by an Image
|
|
44
|
-
SUMaterialOwnerType_Layer ///< Owned exclusively by a Layer
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
@enum SUMaterialColorizeType
|
|
49
|
-
@brief Indicates material type.
|
|
50
|
-
@since SketchUp 2019.2, API 7.1
|
|
51
|
-
*/
|
|
52
|
-
enum SUMaterialColorizeType {
|
|
53
|
-
SUMaterialColorizeType_Shift = 0, ///< Shifts the texture's Hue
|
|
54
|
-
SUMaterialColorizeType_Tint, ///< Colorize the texture
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
@enum SUMaterialWorkflow
|
|
59
|
-
@brief Indicates the workflow being used to represent materials
|
|
60
|
-
@since SketchUp 2025.0, API 13.0
|
|
61
|
-
*/
|
|
62
|
-
enum SUMaterialWorkflow {
|
|
63
|
-
SUMaterialWorkflow_Classic = 0, ///< Classic material workflow
|
|
64
|
-
SUMaterialWorkflow_PBRMetallicRoughness ///< PBR metallic/roughness material workflow
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
@enum SUMaterialNormalMapStyle
|
|
69
|
-
@brief Indicates the normal mapping convention used by the material.
|
|
70
|
-
@since SketchUp 2025.0, API 13.0
|
|
71
|
-
*/
|
|
72
|
-
enum SUMaterialNormalMapStyle {
|
|
73
|
-
SUMaterialNormalMapStyle_OpenGL = 0, ///< OpenGL style
|
|
74
|
-
SUMaterialNormalMapStyle_DirectX, ///< DirectX style
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
@brief Converts from an \ref SUMaterialRef to an \ref SUEntityRef.
|
|
79
|
-
This is essentially an upcast operation.
|
|
80
|
-
@param[in] material The given material reference.
|
|
81
|
-
@related SUMaterialRef
|
|
82
|
-
@return
|
|
83
|
-
- The converted \ref SUEntityRef if material is a valid object
|
|
84
|
-
- If not, the returned reference will be invalid
|
|
85
|
-
*/
|
|
86
|
-
SU_EXPORT SUEntityRef SUMaterialToEntity(SUMaterialRef material);
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
@brief Converts from an \ref SUEntityRef to an \ref SUMaterialRef.
|
|
90
|
-
This is essentially a downcast operation so the given SUEntityRef must be
|
|
91
|
-
convertible to an \ref SUMaterialRef.
|
|
92
|
-
@param[in] entity The given entity reference.
|
|
93
|
-
@related SUMaterialRef
|
|
94
|
-
@return
|
|
95
|
-
- The converted \ref SUMaterialRef if the downcast operation succeeds
|
|
96
|
-
- If not, the returned reference will be invalid
|
|
97
|
-
*/
|
|
98
|
-
SU_EXPORT SUMaterialRef SUMaterialFromEntity(SUEntityRef entity);
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
@brief Creates a material.
|
|
102
|
-
|
|
103
|
-
If the material is not associated with any face, it must be deallocated with
|
|
104
|
-
\ref SUMaterialRelease().
|
|
105
|
-
@param[out] material The material created.
|
|
106
|
-
@related SUMaterialRef
|
|
107
|
-
@return
|
|
108
|
-
- \ref SU_ERROR_NONE on success
|
|
109
|
-
- \ref SU_ERROR_INVALID_OUTPUT if the input parameter is NULL
|
|
110
|
-
*/
|
|
111
|
-
SU_RESULT SUMaterialCreate(SUMaterialRef* material);
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
@brief Releases a material and its resources.
|
|
115
|
-
|
|
116
|
-
The material must not be associated with a parent object such as a face.
|
|
117
|
-
@param[in,out] material The material to be released.
|
|
118
|
-
@related SUMaterialRef
|
|
119
|
-
@return
|
|
120
|
-
- \ref SU_ERROR_NONE on success
|
|
121
|
-
- \ref SU_ERROR_INVALID_INPUT material is not a valid object
|
|
122
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if material is NULL
|
|
123
|
-
*/
|
|
124
|
-
SU_RESULT SUMaterialRelease(SUMaterialRef* material);
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
@brief Sets the name of a material object.
|
|
128
|
-
|
|
129
|
-
@warning Breaking Change: A new failure mode was added in SketchUp 2018,
|
|
130
|
-
API 6.0. Returns \ref SU_ERROR_INVALID_ARGUMENT if the material is
|
|
131
|
-
managed by a model and the provided name was previously associated
|
|
132
|
-
with a different material in the model.
|
|
133
|
-
|
|
134
|
-
@param[in,out] material The material object.
|
|
135
|
-
@param[in] name The name to set the material name. Assumed to be UTF-8
|
|
136
|
-
encoded.
|
|
137
|
-
@related SUMaterialRef
|
|
138
|
-
@return
|
|
139
|
-
- \ref SU_ERROR_NONE on success
|
|
140
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
141
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
|
|
142
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if material is managed and name is not unique
|
|
143
|
-
*/
|
|
144
|
-
SU_RESULT SUMaterialSetName(SUMaterialRef material, const char* name);
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
@brief Retrieves the internal name of a material object. The internal name is
|
|
148
|
-
the unprocessed identifier string stored with the material.
|
|
149
|
-
|
|
150
|
-
@warning Breaking Change: The behavior of this method was changed in
|
|
151
|
-
SketchUp 2017, API 5.0. In previous releases this method retrieved the
|
|
152
|
-
material's non-localized display name but it was changed to retrieve
|
|
153
|
-
the internal name. If the old functionality is required, use \ref
|
|
154
|
-
SUMaterialGetNameLegacyBehavior.
|
|
155
|
-
|
|
156
|
-
@param[in] material The material object.
|
|
157
|
-
@param[out] name The name retrieved.
|
|
158
|
-
@related SUMaterialRef
|
|
159
|
-
@return
|
|
160
|
-
- \ref SU_ERROR_NONE on success
|
|
161
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
162
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
|
|
163
|
-
- \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
|
|
164
|
-
SUStringRef object
|
|
165
|
-
*/
|
|
166
|
-
SU_RESULT SUMaterialGetName(SUMaterialRef material, SUStringRef* name);
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
@brief Retrieves the name of a material object. This method was added for users
|
|
170
|
-
who require the functionality of \ref SUMaterialGetName() prior to
|
|
171
|
-
SketchUp 2017, API 5.0. If the internal name is encased in square
|
|
172
|
-
brackets, [], this method will return the name without brackets,
|
|
173
|
-
otherwise the name will match the name retrieved by \ref
|
|
174
|
-
SUMaterialGetName.
|
|
175
|
-
@since SketchUp 2017, API 5.0
|
|
176
|
-
@param[in] material The material object.
|
|
177
|
-
@param[out] name The name retrieved.
|
|
178
|
-
@related SUMaterialRef
|
|
179
|
-
@return
|
|
180
|
-
- \ref SU_ERROR_NONE on success
|
|
181
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
182
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if name is NULL
|
|
183
|
-
- \ref SU_ERROR_INVALID_OUTPUT if name does not point to a valid \ref
|
|
184
|
-
SUStringRef object
|
|
185
|
-
*/
|
|
186
|
-
SU_RESULT SUMaterialGetNameLegacyBehavior(SUMaterialRef material, SUStringRef* name);
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
@brief Sets the color of a material object.
|
|
190
|
-
@param[in,out] material The material object.
|
|
191
|
-
@param[in] color The color value to set the material color.
|
|
192
|
-
@related SUMaterialRef
|
|
193
|
-
@return
|
|
194
|
-
- \ref SU_ERROR_NONE on success
|
|
195
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
196
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if color is NULL
|
|
197
|
-
*/
|
|
198
|
-
SU_RESULT SUMaterialSetColor(SUMaterialRef material, const SUColor* color);
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
@brief Retrieves the color value of a material object.
|
|
202
|
-
@param[in] material The material object.
|
|
203
|
-
@param[out] color The color value retrieved.
|
|
204
|
-
@related SUMaterialRef
|
|
205
|
-
@return
|
|
206
|
-
- \ref SU_ERROR_NONE on success
|
|
207
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if color is NULL
|
|
208
|
-
- \ref SU_ERROR_NO_DATA if the material object does not have a color value
|
|
209
|
-
*/
|
|
210
|
-
SU_RESULT SUMaterialGetColor(SUMaterialRef material, SUColor* color);
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
@brief Sets the texture of a material object.
|
|
214
|
-
@note Materials take ownership of their assigned textures, so textures should not be shared
|
|
215
|
-
accross different materials.
|
|
216
|
-
@param[in,out] material The material object.
|
|
217
|
-
@param[in] texture The texture object to set the material texture.
|
|
218
|
-
@related SUMaterialRef
|
|
219
|
-
@return
|
|
220
|
-
- \ref SU_ERROR_NONE on success
|
|
221
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material or \p texture is not a valid object
|
|
222
|
-
- \ref SU_ERROR_GENERIC if \p texture contains invalid image data
|
|
223
|
-
*/
|
|
224
|
-
SU_RESULT SUMaterialSetTexture(SUMaterialRef material, SUTextureRef texture);
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
@brief Retrieves the texture of a material object.
|
|
228
|
-
@param[in] material The material object.
|
|
229
|
-
@param[out] texture The texture object retrieved. This texture should not be released
|
|
230
|
-
via SUTextureRelease() since it is owned by the material.
|
|
231
|
-
@related SUMaterialRef
|
|
232
|
-
@return
|
|
233
|
-
- \ref SU_ERROR_NONE on success
|
|
234
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
235
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if texture is NULL
|
|
236
|
-
- \ref SU_ERROR_NO_DATA if the material object does not have a texture
|
|
237
|
-
*/
|
|
238
|
-
SU_RESULT SUMaterialGetTexture(SUMaterialRef material, SUTextureRef* texture);
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
@brief Retrieves the alpha value (0.0 - 1.0) of a material object.
|
|
242
|
-
@param[in] material The material object.
|
|
243
|
-
@param[out] alpha The alpha value retrieved.
|
|
244
|
-
@related SUMaterialRef
|
|
245
|
-
@return
|
|
246
|
-
- \ref SU_ERROR_NONE on success
|
|
247
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
248
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if alpha is NULL
|
|
249
|
-
*/
|
|
250
|
-
SU_RESULT SUMaterialGetOpacity(SUMaterialRef material, double* alpha);
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
@brief Sets the alpha value of a material object.
|
|
254
|
-
@param[in,out] material The material object.
|
|
255
|
-
@param[in] alpha The alpha value to set. Must be within range [0.0, 1.0].
|
|
256
|
-
@related SUMaterialRef
|
|
257
|
-
@return
|
|
258
|
-
- \ref SU_ERROR_NONE on success
|
|
259
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
260
|
-
- \ref SU_ERROR_OUT_OF_RANGE if alpha is not within the acceptable range
|
|
261
|
-
*/
|
|
262
|
-
SU_RESULT SUMaterialSetOpacity(SUMaterialRef material, double alpha);
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
@brief Retrieves the flag indicating whether alpha values are used from a
|
|
266
|
-
material object.
|
|
267
|
-
@param[in] material The material object.
|
|
268
|
-
@param[out] use_opacity The flag retrieved.
|
|
269
|
-
@related SUMaterialRef
|
|
270
|
-
@return
|
|
271
|
-
- \ref SU_ERROR_NONE on success
|
|
272
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
273
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if use_opacity is NULL
|
|
274
|
-
*/
|
|
275
|
-
SU_RESULT SUMaterialGetUseOpacity(SUMaterialRef material, bool* use_opacity);
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
@brief Sets the flag indicating whether alpha values are used on a material
|
|
279
|
-
object.
|
|
280
|
-
@param[in,out] material The material object.
|
|
281
|
-
@param[in] use_opacity The flag boolean value to set.
|
|
282
|
-
@related SUMaterialRef
|
|
283
|
-
@return
|
|
284
|
-
- \ref SU_ERROR_NONE on success
|
|
285
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
286
|
-
*/
|
|
287
|
-
SU_RESULT SUMaterialSetUseOpacity(SUMaterialRef material, bool use_opacity);
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
@brief Sets the type of a material object.
|
|
291
|
-
@param[in,out] material The material object.
|
|
292
|
-
@param[in] type The type to set.
|
|
293
|
-
@related SUMaterialRef
|
|
294
|
-
@return
|
|
295
|
-
- \ref SU_ERROR_NONE on success
|
|
296
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
297
|
-
*/
|
|
298
|
-
SU_RESULT SUMaterialSetType(SUMaterialRef material, enum SUMaterialType type);
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
@brief Retrieves the type of a material object.
|
|
302
|
-
@param[in] material The material object.
|
|
303
|
-
@param[out] type The type retrieved.
|
|
304
|
-
@related SUMaterialRef
|
|
305
|
-
@return
|
|
306
|
-
- \ref SU_ERROR_NONE on success
|
|
307
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
308
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
|
|
309
|
-
*/
|
|
310
|
-
SU_RESULT SUMaterialGetType(SUMaterialRef material, enum SUMaterialType* type);
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
@brief Retrieves the flag indicating whether the material is drawn with
|
|
314
|
-
transparency.
|
|
315
|
-
@since SketchUp 2018, API 6.0
|
|
316
|
-
@param[in] material The material object.
|
|
317
|
-
@param[out] transparency The flag retrieved.
|
|
318
|
-
@related SUMaterialRef
|
|
319
|
-
@return
|
|
320
|
-
- \ref SU_ERROR_NONE on success
|
|
321
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
322
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if is_drawn_transparent is NULL
|
|
323
|
-
*/
|
|
324
|
-
SU_RESULT SUMaterialIsDrawnTransparent(SUMaterialRef material, bool* transparency);
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
@brief Retrieves the owner type of a material object.
|
|
328
|
-
|
|
329
|
-
@warning Materials owned by SUImageRef and SULayerRef may not be applied
|
|
330
|
-
to any other entity in the model.
|
|
331
|
-
|
|
332
|
-
@since SketchUp 2019.2, API 7.1
|
|
333
|
-
@param[in] material The material object.
|
|
334
|
-
@param[out] type The type retrieved.
|
|
335
|
-
@related SUMaterialRef
|
|
336
|
-
@return
|
|
337
|
-
- \ref SU_ERROR_NONE on success
|
|
338
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
339
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
|
|
340
|
-
*/
|
|
341
|
-
SU_RESULT SUMaterialGetOwnerType(SUMaterialRef material, enum SUMaterialOwnerType* type);
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
@brief Sets the colorization type of a material object. This is used when the
|
|
345
|
-
material's color is set to a custom value. Call this function after
|
|
346
|
-
calling SUMaterialSetColor as otherwise the colorize type will be reset.
|
|
347
|
-
@since SketchUp 2019.2, API 7.1
|
|
348
|
-
@param[in,out] material The material object.
|
|
349
|
-
@param[in] type The type to set.
|
|
350
|
-
@related SUMaterialRef
|
|
351
|
-
@return
|
|
352
|
-
- \ref SU_ERROR_NONE on success
|
|
353
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
354
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if type is not a valid value
|
|
355
|
-
*/
|
|
356
|
-
SU_RESULT SUMaterialSetColorizeType(SUMaterialRef material, enum SUMaterialColorizeType type);
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
@brief Retrieves the colorization type of a material object.
|
|
360
|
-
@since SketchUp 2019.2, API 7.1
|
|
361
|
-
@param[in] material The material object.
|
|
362
|
-
@param[out] type The type retrieved.
|
|
363
|
-
@related SUMaterialRef
|
|
364
|
-
@return
|
|
365
|
-
- \ref SU_ERROR_NONE on success
|
|
366
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
367
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if type is NULL
|
|
368
|
-
*/
|
|
369
|
-
SU_RESULT SUMaterialGetColorizeType(SUMaterialRef material, enum SUMaterialColorizeType* type);
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
@brief The colorize_deltas method retrieves the HLS deltas for colorized
|
|
373
|
-
materials.
|
|
374
|
-
@since SketchUp 2019.2, API 7.1
|
|
375
|
-
@param[in] material The material object.
|
|
376
|
-
@param[out] hue The Hue delta.
|
|
377
|
-
@param[out] saturation The Saturation delta.
|
|
378
|
-
@param[out] lightness The Lightness delta.
|
|
379
|
-
@related SUMaterialRef
|
|
380
|
-
@return
|
|
381
|
-
- \ref SU_ERROR_NONE on success
|
|
382
|
-
- \ref SU_ERROR_INVALID_INPUT if material is not a valid object
|
|
383
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if either hue, saturation or lightness
|
|
384
|
-
is NULL
|
|
385
|
-
*/
|
|
386
|
-
SU_RESULT SUMaterialGetColorizeDeltas(
|
|
387
|
-
SUMaterialRef material, double* hue, double* saturation, double* lightness);
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
@brief Writes a material to a SKM file.
|
|
391
|
-
@since SketchUp 2021.1, API 9.1
|
|
392
|
-
@param[in] material The material object.
|
|
393
|
-
@param[in] file_path The location to save the material to. Assumed to be
|
|
394
|
-
UTF-8 encoded.
|
|
395
|
-
@related SUMaterialRef
|
|
396
|
-
@return
|
|
397
|
-
- \ref SU_ERROR_NONE on success
|
|
398
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
399
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not attached to a model
|
|
400
|
-
- \ref SU_ERROR_NULL_POINTER_INPUT if \p file_path is NULL
|
|
401
|
-
- \ref SU_ERROR_SERIALIZATION if the serialization operation itself fails
|
|
402
|
-
*/
|
|
403
|
-
SU_RESULT SUMaterialWriteToFile(SUMaterialRef material, const char* file_path);
|
|
404
|
-
|
|
405
|
-
/** @name PBR Metallic Roughness Workflow
|
|
406
|
-
*/
|
|
407
|
-
///@{
|
|
408
|
-
/**
|
|
409
|
-
@brief Queries the workflow type of a material.
|
|
410
|
-
@since SketchUp 2025.0, API 13.0
|
|
411
|
-
@param[in] material The material object.
|
|
412
|
-
@param[out] workflow The returned workflow type.
|
|
413
|
-
@related SUMaterialRef
|
|
414
|
-
@return
|
|
415
|
-
- \ref SU_ERROR_NONE on success
|
|
416
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
417
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p workflow is NULL
|
|
418
|
-
*/
|
|
419
|
-
SU_RESULT SUMaterialGetWorkflow(SUMaterialRef material, enum SUMaterialWorkflow* workflow);
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
@brief Enables metalness properties for the material.
|
|
423
|
-
@note After this is enabled, a metallic texture and/or a metallic factor can be set.
|
|
424
|
-
@since SketchUp 2025.0, API 13.0
|
|
425
|
-
@param[in,out] material The material object.
|
|
426
|
-
@param[in] enable Whether to enable or disable.
|
|
427
|
-
@related SUMaterialRef
|
|
428
|
-
@return
|
|
429
|
-
- \ref SU_ERROR_NONE on success
|
|
430
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
431
|
-
*/
|
|
432
|
-
SU_RESULT SUMaterialSetMetalnessEnabled(SUMaterialRef material, bool enable);
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
@brief Queries whether metalness properties are enabled for the material.
|
|
436
|
-
@since SketchUp 2025.0, API 13.0
|
|
437
|
-
@param[in] material The material object.
|
|
438
|
-
@param[out] enabled Whether metalness is enabled or not.
|
|
439
|
-
@related SUMaterialRef
|
|
440
|
-
@return
|
|
441
|
-
- \ref SU_ERROR_NONE on success
|
|
442
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
443
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p enabled is NULL
|
|
444
|
-
*/
|
|
445
|
-
SU_RESULT SUMaterialIsMetalnessEnabled(SUMaterialRef material, bool* enabled);
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
@brief Sets the metallic texture of a PBR material.
|
|
449
|
-
@note Materials take ownership of their assigned textures, so textures should not be shared
|
|
450
|
-
accross different materials.
|
|
451
|
-
@since SketchUp 2025.0, API 13.0
|
|
452
|
-
@param[in,out] material The material object.
|
|
453
|
-
@param[in] texture The texture containing the metalness information. Should be an 8 bit per
|
|
454
|
-
pixel (single channel) image. If an invalid texture reference is given (i.e.
|
|
455
|
-
\ref SU_INVALID), then any existing metallic texture will be removed from
|
|
456
|
-
the material.
|
|
457
|
-
@related SUMaterialRef
|
|
458
|
-
@return
|
|
459
|
-
- \ref SU_ERROR_NONE on success
|
|
460
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
461
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p texture contains invalid metalness data
|
|
462
|
-
*/
|
|
463
|
-
SU_RESULT SUMaterialSetMetallicTexture(SUMaterialRef material, SUTextureRef texture);
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
@brief Retrieves the metallic texture of a material.
|
|
467
|
-
@since SketchUp 2025.0, API 13.0
|
|
468
|
-
@param[in] material The material object.
|
|
469
|
-
@param[out] texture The texture containing the metalness information, if one exists. This texture
|
|
470
|
-
should not be released via SUTextureRelease() since it is owned by the
|
|
471
|
-
material.
|
|
472
|
-
@related SUMaterialRef
|
|
473
|
-
@return
|
|
474
|
-
- \ref SU_ERROR_NONE on success
|
|
475
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
476
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p texture is NULL
|
|
477
|
-
- \ref SU_ERROR_NO_DATA if \p material does not have a metalness texture
|
|
478
|
-
*/
|
|
479
|
-
SU_RESULT SUMaterialGetMetallicTexture(SUMaterialRef material, SUTextureRef* texture);
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
@brief Sets the metallic factor of a material.
|
|
483
|
-
@since SketchUp 2025.0, API 13.0
|
|
484
|
-
@param[in,out] material The material object.
|
|
485
|
-
@param[in] factor Metallic factor to set. The valid range is [0.0, 1.0].
|
|
486
|
-
@related SUMaterialRef
|
|
487
|
-
@return
|
|
488
|
-
- \ref SU_ERROR_NONE on success
|
|
489
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
490
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p factor is not within the valid range
|
|
491
|
-
*/
|
|
492
|
-
SU_RESULT SUMaterialSetMetallicFactor(SUMaterialRef material, double factor);
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
@brief Retrieves the metallic factor of a material.
|
|
496
|
-
@since SketchUp 2025.0, API 13.0
|
|
497
|
-
@param[in] material The material object.
|
|
498
|
-
@param[out] factor The factor returned.
|
|
499
|
-
@related SUMaterialRef
|
|
500
|
-
@return
|
|
501
|
-
- \ref SU_ERROR_NONE on success
|
|
502
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
503
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p factor is NULL
|
|
504
|
-
*/
|
|
505
|
-
SU_RESULT SUMaterialGetMetallicFactor(SUMaterialRef material, double* factor);
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
@brief Enables roughness properties for the material.
|
|
509
|
-
@note After this is enabled, a roughness texture and/or a roughness factor can be set.
|
|
510
|
-
@since SketchUp 2025.0, API 13.0
|
|
511
|
-
@param[in,out] material The material object.
|
|
512
|
-
@param[in] enable Whether to enable or disable.
|
|
513
|
-
@related SUMaterialRef
|
|
514
|
-
@return
|
|
515
|
-
- \ref SU_ERROR_NONE on success
|
|
516
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
517
|
-
*/
|
|
518
|
-
SU_RESULT SUMaterialSetRoughnessEnabled(SUMaterialRef material, bool enable);
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
@brief Queries whether roughness properties are enabled for the material.
|
|
522
|
-
@since SketchUp 2025.0, API 13.0
|
|
523
|
-
@param[in] material The material object.
|
|
524
|
-
@param[out] enabled Whether roughness is enabled or not.
|
|
525
|
-
@related SUMaterialRef
|
|
526
|
-
@return
|
|
527
|
-
- \ref SU_ERROR_NONE on success
|
|
528
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
529
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p enabled is NULL
|
|
530
|
-
*/
|
|
531
|
-
SU_RESULT SUMaterialIsRoughnessEnabled(SUMaterialRef material, bool* enabled);
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
@brief Sets the roughness texture of a PBR material.
|
|
535
|
-
@note Materials take ownership of their assigned textures, so textures should not be shared
|
|
536
|
-
accross different materials.
|
|
537
|
-
@since SketchUp 2025.0, API 13.0
|
|
538
|
-
@param[in,out] material The material object.
|
|
539
|
-
@param[in] texture The texture containing the roughness information. Should be an 8 bit per
|
|
540
|
-
pixel (single channel) image. If an invalid texture reference is given (i.e.
|
|
541
|
-
\ref SU_INVALID), then any existing metallic texture will be removed from
|
|
542
|
-
the material.
|
|
543
|
-
@related SUMaterialRef
|
|
544
|
-
@return
|
|
545
|
-
- \ref SU_ERROR_NONE on success
|
|
546
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
547
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p texture contains invalid roughness data
|
|
548
|
-
*/
|
|
549
|
-
SU_RESULT SUMaterialSetRoughnessTexture(SUMaterialRef material, SUTextureRef texture);
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
@brief Retrieves the roughness texture of a material.
|
|
553
|
-
@since SketchUp 2025.0, API 13.0
|
|
554
|
-
@param[in] material The material object.
|
|
555
|
-
@param[out] texture The texture containing the roughness information, if one exists. This texture
|
|
556
|
-
should not be released via SUTextureRelease() since it is owned by the
|
|
557
|
-
material.
|
|
558
|
-
@related SUMaterialRef
|
|
559
|
-
@return
|
|
560
|
-
- \ref SU_ERROR_NONE on success
|
|
561
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
562
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p texture is NULL
|
|
563
|
-
- \ref SU_ERROR_NO_DATA if \p material does not have a roughness texture
|
|
564
|
-
*/
|
|
565
|
-
SU_RESULT SUMaterialGetRoughnessTexture(SUMaterialRef material, SUTextureRef* texture);
|
|
566
|
-
|
|
567
|
-
/**
|
|
568
|
-
@brief Sets the roughness factor of a material.
|
|
569
|
-
@since SketchUp 2025.0, API 13.0
|
|
570
|
-
@param[in,out] material The material object.
|
|
571
|
-
@param[in] factor Roughness factor to set. The valid range is [0.0, 1.0].
|
|
572
|
-
@related SUMaterialRef
|
|
573
|
-
@return
|
|
574
|
-
- \ref SU_ERROR_NONE on success
|
|
575
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
576
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p factor is not within the valid range
|
|
577
|
-
*/
|
|
578
|
-
SU_RESULT SUMaterialSetRoughnessFactor(SUMaterialRef material, double factor);
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
@brief Retrieves the roughness factor of a material.
|
|
582
|
-
@since SketchUp 2025.0, API 13.0
|
|
583
|
-
@param[in] material The material object.
|
|
584
|
-
@param[out] factor The factor returned.
|
|
585
|
-
@related SUMaterialRef
|
|
586
|
-
@return
|
|
587
|
-
- \ref SU_ERROR_NONE on success
|
|
588
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
589
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p factor is NULL
|
|
590
|
-
*/
|
|
591
|
-
SU_RESULT SUMaterialGetRoughnessFactor(SUMaterialRef material, double* factor);
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
@brief Enables normal map for the material.
|
|
595
|
-
@note A normal map texture must be set before enabling it.
|
|
596
|
-
@since SketchUp 2025.0.2, API 13.1
|
|
597
|
-
@param[in,out] material The material object.
|
|
598
|
-
@param[in] enable Whether to enable or disable.
|
|
599
|
-
@related SUMaterialRef
|
|
600
|
-
@return
|
|
601
|
-
- \ref SU_ERROR_NONE on success
|
|
602
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if a normal map texture was not set before enabling.
|
|
603
|
-
*/
|
|
604
|
-
SU_RESULT SUMaterialSetNormalEnabled(SUMaterialRef material, bool enable);
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
@brief Queries whether normal mapping is enabled for the material.
|
|
608
|
-
@since SketchUp 2025.0, API 13.0
|
|
609
|
-
@param[in] material The material object.
|
|
610
|
-
@param[out] enabled Whether normal mapping is enabled or not.
|
|
611
|
-
@related SUMaterialRef
|
|
612
|
-
@return
|
|
613
|
-
- \ref SU_ERROR_NONE on success
|
|
614
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
615
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p enabled is NULL
|
|
616
|
-
*/
|
|
617
|
-
SU_RESULT SUMaterialIsNormalEnabled(SUMaterialRef material, bool* enabled);
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
@brief Sets the normal texture of a PBR material.
|
|
621
|
-
@note Materials take ownership of their assigned textures, so textures should not be shared
|
|
622
|
-
accross different materials.
|
|
623
|
-
@since SketchUp 2025.0, API 13.0
|
|
624
|
-
@param[in,out] material The material object.
|
|
625
|
-
@param[in] texture The texture containing the normal information. Should be an 24 bit per pixel
|
|
626
|
-
(3 channel) image. If an invalid texture reference is given (i.e. \ref
|
|
627
|
-
SU_INVALID), then any existing normal texture will be removed from the
|
|
628
|
-
material, which will effectively disable normal mapping.
|
|
629
|
-
@related SUMaterialRef
|
|
630
|
-
@return
|
|
631
|
-
- \ref SU_ERROR_NONE on success
|
|
632
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
633
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p texture contains invalid normal data
|
|
634
|
-
*/
|
|
635
|
-
SU_RESULT SUMaterialSetNormalTexture(SUMaterialRef material, SUTextureRef texture);
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
@brief Retrieves the normal texture of a material.
|
|
639
|
-
@since SketchUp 2025.0, API 13.0
|
|
640
|
-
@param[in] material The material object.
|
|
641
|
-
@param[out] texture The texture containing the normal information, if one exists. This texture
|
|
642
|
-
should not be released via SUTextureRelease() since it is owned by the
|
|
643
|
-
material.
|
|
644
|
-
@related SUMaterialRef
|
|
645
|
-
@return
|
|
646
|
-
- \ref SU_ERROR_NONE on success
|
|
647
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
648
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p texture is NULL
|
|
649
|
-
- \ref SU_ERROR_NO_DATA if \p material does not have a normal texture
|
|
650
|
-
*/
|
|
651
|
-
SU_RESULT SUMaterialGetNormalTexture(SUMaterialRef material, SUTextureRef* texture);
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
@brief Sets the normal scale of a material.
|
|
655
|
-
@since SketchUp 2025.0, API 13.0
|
|
656
|
-
@param[in] material The material object.
|
|
657
|
-
@param[in] scale Normal scale to set. Should be >= 0.0
|
|
658
|
-
@related SUMaterialRef
|
|
659
|
-
@return
|
|
660
|
-
- \ref SU_ERROR_NONE on success
|
|
661
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
662
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p scale is not valid
|
|
663
|
-
*/
|
|
664
|
-
SU_RESULT SUMaterialSetNormalScale(SUMaterialRef material, double scale);
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
@brief Retrieves the normal scale of a material.
|
|
668
|
-
@since SketchUp 2025.0, API 13.0
|
|
669
|
-
@param[in] material The material object.
|
|
670
|
-
@param[out] scale Normal scale returned.
|
|
671
|
-
@related SUMaterialRef
|
|
672
|
-
@return
|
|
673
|
-
- \ref SU_ERROR_NONE on success
|
|
674
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
675
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p scale is NULL
|
|
676
|
-
*/
|
|
677
|
-
SU_RESULT SUMaterialGetNormalScale(SUMaterialRef material, double* scale);
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
@brief Sets the normal mapping style of a material.
|
|
681
|
-
@since SketchUp 2025.0, API 13.0
|
|
682
|
-
@param[in] material The material object.
|
|
683
|
-
@param[in] style Normal style to set.
|
|
684
|
-
@related SUMaterialRef
|
|
685
|
-
@return
|
|
686
|
-
- \ref SU_ERROR_NONE on success
|
|
687
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
688
|
-
*/
|
|
689
|
-
SU_RESULT SUMaterialSetNormalStyle(SUMaterialRef material, enum SUMaterialNormalMapStyle style);
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
@brief Retrieves the normal mapping style of a material.
|
|
693
|
-
@since SketchUp 2025.0, API 13.0
|
|
694
|
-
@param[in] material The material object.
|
|
695
|
-
@param[out] style Normal style returned.
|
|
696
|
-
@related SUMaterialRef
|
|
697
|
-
@return
|
|
698
|
-
- \ref SU_ERROR_NONE on success
|
|
699
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
700
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p style is NULL
|
|
701
|
-
*/
|
|
702
|
-
SU_RESULT SUMaterialGetNormalStyle(SUMaterialRef material, enum SUMaterialNormalMapStyle* style);
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
@brief Enables ambient occlusion map for the material.
|
|
706
|
-
@note An ambient occlusion map texture must be set before enabling it.
|
|
707
|
-
@since SketchUp 2025.0.2, API 13.1
|
|
708
|
-
@param[in,out] material The material object.
|
|
709
|
-
@param[in] enable Whether to enable or disable.
|
|
710
|
-
@related SUMaterialRef
|
|
711
|
-
@return
|
|
712
|
-
- \ref SU_ERROR_NONE on success
|
|
713
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if an ambient occlusion map texture was not set before enabling.
|
|
714
|
-
*/
|
|
715
|
-
SU_RESULT SUMaterialSetAOEnabled(SUMaterialRef material, bool enable);
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
@brief Queries whether ambient occlusion mapping is enabled for the material.
|
|
719
|
-
@since SketchUp 2025.0, API 13.0
|
|
720
|
-
@param[in] material The material object.
|
|
721
|
-
@param[out] enabled Whether occlusion mapping is enabled or not.
|
|
722
|
-
@related SUMaterialRef
|
|
723
|
-
@return
|
|
724
|
-
- \ref SU_ERROR_NONE on success
|
|
725
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
726
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p enabled is NULL
|
|
727
|
-
*/
|
|
728
|
-
SU_RESULT SUMaterialIsAOEnabled(SUMaterialRef material, bool* enabled);
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
@brief Sets the ambient occlusion texture of a PBR material.
|
|
732
|
-
@note Materials take ownership of their assigned textures, so textures should not be shared
|
|
733
|
-
accross different materials.
|
|
734
|
-
@since SketchUp 2025.0, API 13.0
|
|
735
|
-
@param[in] material The material object.
|
|
736
|
-
@param[in] texture The texture containing the occlusion information. Should be an 8 bit per pixel
|
|
737
|
-
(single channel) image. If an invalid texture reference is given (i.e. \ref
|
|
738
|
-
SU_INVALID), then any existing AO texture will be removed from the material,
|
|
739
|
-
which will effectively disable AO mapping.
|
|
740
|
-
@related SUMaterialRef
|
|
741
|
-
@return
|
|
742
|
-
- \ref SU_ERROR_NONE on success
|
|
743
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
744
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p texture contains invalid occlusion data
|
|
745
|
-
*/
|
|
746
|
-
SU_RESULT SUMaterialSetAOTexture(SUMaterialRef material, SUTextureRef texture);
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
@brief Retrieves the ambient occlusion texture of a material.
|
|
750
|
-
@since SketchUp 2025.0, API 13.0
|
|
751
|
-
@param[in] material The material object.
|
|
752
|
-
@param[out] texture The texture containing the occlusion information, if one exists. This texture
|
|
753
|
-
should not be released via SUTextureRelease() since it is owned by the
|
|
754
|
-
material.
|
|
755
|
-
@related SUMaterialRef
|
|
756
|
-
@return
|
|
757
|
-
- \ref SU_ERROR_NONE on success
|
|
758
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
759
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p texture is NULL
|
|
760
|
-
- \ref SU_ERROR_NO_DATA if \p material does not have an AO texture
|
|
761
|
-
*/
|
|
762
|
-
SU_RESULT SUMaterialGetAOTexture(SUMaterialRef material, SUTextureRef* texture);
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
@brief Sets the ambient occlusion strength of a material.
|
|
766
|
-
@since SketchUp 2025.0, API 13.0
|
|
767
|
-
@param[in] material The material object.
|
|
768
|
-
@param[in] strength Strength to set. The valid range is [0.0, 1.0].
|
|
769
|
-
@related SUMaterialRef
|
|
770
|
-
@return
|
|
771
|
-
- \ref SU_ERROR_NONE on success
|
|
772
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
773
|
-
- \ref SU_ERROR_INVALID_ARGUMENT if \p strength is not within the valid range
|
|
774
|
-
*/
|
|
775
|
-
SU_RESULT SUMaterialSetAOStrength(SUMaterialRef material, double strength);
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
@brief Retrieves the ambient occlusion strength of a material.
|
|
779
|
-
@since SketchUp 2025.0, API 13.0
|
|
780
|
-
@param[in] material The material object.
|
|
781
|
-
@param[out] strength Occlusion strength returned.
|
|
782
|
-
@related SUMaterialRef
|
|
783
|
-
@return
|
|
784
|
-
- \ref SU_ERROR_NONE on success
|
|
785
|
-
- \ref SU_ERROR_INVALID_INPUT if \p material is not a valid object
|
|
786
|
-
- \ref SU_ERROR_NULL_POINTER_OUTPUT if \p strength is NULL
|
|
787
|
-
*/
|
|
788
|
-
SU_RESULT SUMaterialGetAOStrength(SUMaterialRef material, double* strength);
|
|
789
|
-
|
|
790
|
-
// End of PBR grouping:
|
|
791
|
-
///@}
|
|
792
|
-
|
|
793
|
-
#ifdef __cplusplus
|
|
794
|
-
} // extern "C"
|
|
795
|
-
#endif
|
|
796
|
-
|
|
797
|
-
#endif // SKETCHUP_MODEL_MATERIAL_H_
|