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.
Files changed (501) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -24
  3. data/ext/arc_curve.c +50 -0
  4. data/ext/attribute_dictionaries.c +49 -32
  5. data/ext/attribute_dictionary.c +54 -127
  6. data/ext/axes.c +79 -0
  7. data/ext/behavior.c +100 -9
  8. data/ext/bounding_box.c +195 -0
  9. data/ext/camera.c +178 -0
  10. data/ext/classifications.c +85 -0
  11. data/ext/color.c +91 -163
  12. data/ext/component_definition.c +78 -162
  13. data/ext/component_instance.c +88 -9
  14. data/ext/construction.c +59 -0
  15. data/ext/curve.c +87 -0
  16. data/ext/definition_list.c +89 -109
  17. data/ext/depend +1 -0
  18. data/ext/drawing_element.c +96 -117
  19. data/ext/edge.c +147 -0
  20. data/ext/edge_use.c +37 -0
  21. data/ext/entities.c +573 -16
  22. data/ext/entities_builder.c +145 -0
  23. data/ext/entity.c +175 -215
  24. data/ext/environments.c +149 -0
  25. data/ext/extconf.rb +54 -10
  26. data/ext/face.c +331 -0
  27. data/ext/geom.c +172 -0
  28. data/ext/group.c +86 -0
  29. data/ext/helpers.c +244 -0
  30. data/ext/image.c +182 -0
  31. data/ext/image_rep.c +158 -0
  32. data/ext/instance_path.c +185 -0
  33. data/ext/lat_long.c +88 -0
  34. data/ext/layer.c +98 -0
  35. data/ext/layer_folder.c +99 -0
  36. data/ext/layers.c +122 -0
  37. data/ext/length.c +253 -0
  38. data/ext/line_styles.c +60 -0
  39. data/ext/loop.c +24 -0
  40. data/ext/material.c +144 -197
  41. data/ext/materials.c +49 -60
  42. data/ext/model.c +232 -26
  43. data/ext/options_store.c +188 -0
  44. data/ext/page.c +168 -0
  45. data/ext/pages.c +135 -0
  46. data/ext/point2d.c +195 -0
  47. data/ext/point3d.c +340 -0
  48. data/ext/polygon_mesh.c +253 -0
  49. data/ext/scriptup.h +279 -0
  50. data/ext/section_plane.c +44 -0
  51. data/ext/sketchup.c +102 -76
  52. data/ext/styles.c +91 -0
  53. data/ext/text.c +135 -0
  54. data/ext/texture.c +74 -83
  55. data/ext/texture_writer.c +104 -0
  56. data/ext/transformation.c +309 -0
  57. data/ext/transformation2d.c +190 -0
  58. data/ext/uv_helper.c +41 -0
  59. data/ext/vector2d.c +238 -0
  60. data/ext/vector3d.c +294 -0
  61. data/ext/vertex.c +67 -0
  62. data/lib/sketchup.rb +2 -2
  63. data/sig/_top_level.rbs +188 -0
  64. data/sig/array.rbs +52 -0
  65. data/sig/geom/bounding_box.rbs +28 -0
  66. data/sig/geom/bounds2d.rbs +20 -0
  67. data/sig/geom/lat_long.rbs +13 -0
  68. data/sig/geom/oriented_bounds2d.rbs +10 -0
  69. data/sig/geom/point2d.rbs +32 -0
  70. data/sig/geom/point3d.rbs +46 -0
  71. data/sig/geom/polygon_mesh.rbs +35 -0
  72. data/sig/geom/transformation.rbs +44 -0
  73. data/sig/geom/transformation2d.rbs +26 -0
  74. data/sig/geom/utm.rbs +14 -0
  75. data/sig/geom/vector2d.rbs +40 -0
  76. data/sig/geom/vector3d.rbs +49 -0
  77. data/sig/geom.rbs +25 -0
  78. data/sig/language_handler.rbs +8 -0
  79. data/sig/layout/angular_dimension.rbs +32 -0
  80. data/sig/layout/auto_text_definition.rbs +73 -0
  81. data/sig/layout/auto_text_definitions.rbs +15 -0
  82. data/sig/layout/connection_point.rbs +6 -0
  83. data/sig/layout/dictionary.rbs +18 -0
  84. data/sig/layout/document.rbs +61 -0
  85. data/sig/layout/ellipse.rbs +5 -0
  86. data/sig/layout/entities.rbs +10 -0
  87. data/sig/layout/entity.rbs +28 -0
  88. data/sig/layout/formatted_text.rbs +30 -0
  89. data/sig/layout/grid.rbs +24 -0
  90. data/sig/layout/group.rbs +17 -0
  91. data/sig/layout/image.rbs +7 -0
  92. data/sig/layout/label.rbs +31 -0
  93. data/sig/layout/layer.rbs +21 -0
  94. data/sig/layout/layer_instance.rbs +9 -0
  95. data/sig/layout/layers.rbs +18 -0
  96. data/sig/layout/linear_dimension.rbs +39 -0
  97. data/sig/layout/locked_entity_error.rbs +4 -0
  98. data/sig/layout/locked_layer_error.rbs +4 -0
  99. data/sig/layout/page.rbs +20 -0
  100. data/sig/layout/page_info.rbs +37 -0
  101. data/sig/layout/pages.rbs +17 -0
  102. data/sig/layout/path.rbs +34 -0
  103. data/sig/layout/rectangle.rbs +15 -0
  104. data/sig/layout/reference_entity.rbs +7 -0
  105. data/sig/layout/sketch_up_model.rbs +54 -0
  106. data/sig/layout/style.rbs +150 -0
  107. data/sig/layout/table.rbs +17 -0
  108. data/sig/layout/table_cell.rbs +13 -0
  109. data/sig/layout/table_column.rbs +10 -0
  110. data/sig/layout/table_row.rbs +10 -0
  111. data/sig/layout.rbs +4 -0
  112. data/sig/length.rbs +37 -0
  113. data/sig/numeric.rbs +23 -0
  114. data/sig/sketchup/animation.rbs +8 -0
  115. data/sig/sketchup/app_observer.rbs +11 -0
  116. data/sig/sketchup/arc_curve.rbs +14 -0
  117. data/sig/sketchup/attribute_dictionaries.rbs +11 -0
  118. data/sig/sketchup/attribute_dictionary.rbs +18 -0
  119. data/sig/sketchup/axes.rbs +13 -0
  120. data/sig/sketchup/behavior.rbs +19 -0
  121. data/sig/sketchup/camera.rbs +33 -0
  122. data/sig/sketchup/classification_schema.rbs +8 -0
  123. data/sig/sketchup/classifications.rbs +12 -0
  124. data/sig/sketchup/color.rbs +22 -0
  125. data/sig/sketchup/component_definition.rbs +43 -0
  126. data/sig/sketchup/component_instance.rbs +32 -0
  127. data/sig/sketchup/console.rbs +8 -0
  128. data/sig/sketchup/construction_line.rbs +17 -0
  129. data/sig/sketchup/construction_point.rbs +5 -0
  130. data/sig/sketchup/curve.rbs +13 -0
  131. data/sig/sketchup/definition_list.rbs +26 -0
  132. data/sig/sketchup/definition_observer.rbs +6 -0
  133. data/sig/sketchup/definitions_observer.rbs +8 -0
  134. data/sig/sketchup/dimension.rbs +18 -0
  135. data/sig/sketchup/dimension_linear.rbs +24 -0
  136. data/sig/sketchup/dimension_observer.rbs +5 -0
  137. data/sig/sketchup/dimension_radial.rbs +9 -0
  138. data/sig/sketchup/drawingelement.rbs +18 -0
  139. data/sig/sketchup/edge.rbs +24 -0
  140. data/sig/sketchup/edge_use.rbs +13 -0
  141. data/sig/sketchup/entities.rbs +61 -0
  142. data/sig/sketchup/entities_builder.rbs +15 -0
  143. data/sig/sketchup/entities_observer.rbs +9 -0
  144. data/sig/sketchup/entity.rbs +21 -0
  145. data/sig/sketchup/entity_observer.rbs +6 -0
  146. data/sig/sketchup/environment.rbs +25 -0
  147. data/sig/sketchup/environments.rbs +18 -0
  148. data/sig/sketchup/environments_observer.rbs +8 -0
  149. data/sig/sketchup/extensions_manager.rbs +11 -0
  150. data/sig/sketchup/face.rbs +44 -0
  151. data/sig/sketchup/frame_change_observer.rbs +5 -0
  152. data/sig/sketchup/group.rbs +38 -0
  153. data/sig/sketchup/http/request.rbs +17 -0
  154. data/sig/sketchup/http/response.rbs +7 -0
  155. data/sig/sketchup/http.rbs +27 -0
  156. data/sig/sketchup/image.rbs +23 -0
  157. data/sig/sketchup/image_rep.rbs +17 -0
  158. data/sig/sketchup/importer.rbs +14 -0
  159. data/sig/sketchup/input_point.rbs +25 -0
  160. data/sig/sketchup/instance_observer.rbs +6 -0
  161. data/sig/sketchup/instance_path.rbs +20 -0
  162. data/sig/sketchup/layer.rbs +20 -0
  163. data/sig/sketchup/layer_folder.rbs +26 -0
  164. data/sig/sketchup/layers.rbs +30 -0
  165. data/sig/sketchup/layers_observer.rbs +13 -0
  166. data/sig/sketchup/licensing/extension_license.rbs +8 -0
  167. data/sig/sketchup/licensing.rbs +15 -0
  168. data/sig/sketchup/line_style.rbs +5 -0
  169. data/sig/sketchup/line_styles.rbs +13 -0
  170. data/sig/sketchup/load_handler.rbs +8 -0
  171. data/sig/sketchup/loop.rbs +10 -0
  172. data/sig/sketchup/material.rbs +74 -0
  173. data/sig/sketchup/materials.rbs +22 -0
  174. data/sig/sketchup/materials_observer.rbs +10 -0
  175. data/sig/sketchup/menu.rbs +9 -0
  176. data/sig/sketchup/model.rbs +105 -0
  177. data/sig/sketchup/model_observer.rbs +23 -0
  178. data/sig/sketchup/options_manager.rbs +12 -0
  179. data/sig/sketchup/options_provider.rbs +23 -0
  180. data/sig/sketchup/options_provider_observer.rbs +5 -0
  181. data/sig/sketchup/overlay.rbs +21 -0
  182. data/sig/sketchup/overlays_manager.rbs +10 -0
  183. data/sig/sketchup/page.rbs +55 -0
  184. data/sig/sketchup/pages.rbs +25 -0
  185. data/sig/sketchup/pages_observer.rbs +7 -0
  186. data/sig/sketchup/pick_helper.rbs +28 -0
  187. data/sig/sketchup/regional_settings.rbs +7 -0
  188. data/sig/sketchup/rendering_options.rbs +89 -0
  189. data/sig/sketchup/rendering_options_observer.rbs +5 -0
  190. data/sig/sketchup/section_plane.rbs +12 -0
  191. data/sig/sketchup/selection.rbs +31 -0
  192. data/sig/sketchup/selection_observer.rbs +8 -0
  193. data/sig/sketchup/set.rbs +15 -0
  194. data/sig/sketchup/shadow_info.rbs +18 -0
  195. data/sig/sketchup/shadow_info_observer.rbs +5 -0
  196. data/sig/sketchup/skp.rbs +5 -0
  197. data/sig/sketchup/snap.rbs +10 -0
  198. data/sig/sketchup/style.rbs +9 -0
  199. data/sig/sketchup/styles.rbs +21 -0
  200. data/sig/sketchup/text.rbs +22 -0
  201. data/sig/sketchup/texture.rbs +14 -0
  202. data/sig/sketchup/texture_writer.rbs +14 -0
  203. data/sig/sketchup/tool.rbs +45 -0
  204. data/sig/sketchup/tools.rbs +14 -0
  205. data/sig/sketchup/tools_observer.rbs +6 -0
  206. data/sig/sketchup/uv_helper.rbs +6 -0
  207. data/sig/sketchup/vertex.rbs +11 -0
  208. data/sig/sketchup/view.rbs +87 -0
  209. data/sig/sketchup/view_observer.rbs +6 -0
  210. data/sig/sketchup.rbs +137 -0
  211. data/sig/sketchup_extension.rbs +23 -0
  212. data/sig/string.rbs +5 -0
  213. data/sig/ui/command.rbs +20 -0
  214. data/sig/ui/html_dialog.rbs +29 -0
  215. data/sig/ui/notification.rbs +16 -0
  216. data/sig/ui/toolbar.rbs +18 -0
  217. data/sig/ui/web_dialog.rbs +38 -0
  218. data/sig/ui.rbs +66 -0
  219. metadata +204 -287
  220. data/ext/attribute_dictionaries.h +0 -8
  221. data/ext/attribute_dictionary.h +0 -8
  222. data/ext/behavior.h +0 -8
  223. data/ext/color.h +0 -8
  224. data/ext/component_definition.h +0 -8
  225. data/ext/component_instance.h +0 -8
  226. data/ext/definition_list.h +0 -8
  227. data/ext/drawing_element.h +0 -8
  228. data/ext/entities.h +0 -8
  229. data/ext/entity.h +0 -8
  230. data/ext/material.h +0 -8
  231. data/ext/materials.h +0 -8
  232. data/ext/model.h +0 -8
  233. data/ext/not_implemented.c +0 -88
  234. data/ext/not_implemented.h +0 -20
  235. data/ext/sketchup.h +0 -9
  236. data/ext/texture.h +0 -8
  237. data/ext/typed_value.c +0 -84
  238. data/ext/typed_value.h +0 -11
  239. data/ext/utils.h +0 -111
  240. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeometry.dylib +0 -0
  241. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonGeoutils.dylib +0 -0
  242. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonImage.dylib +0 -4
  243. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonPreferences.dylib +0 -0
  244. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUnits.dylib +0 -0
  245. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonUtils.dylib +0 -0
  246. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Frameworks/libCommonZip.dylib +0 -0
  247. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/application.h +0 -36
  248. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/model.h +0 -59
  249. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/overlay.h +0 -262
  250. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/application/ruby_api.h +0 -118
  251. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/color.h +0 -107
  252. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/common.h +0 -178
  253. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/defs.h +0 -19
  254. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/extension_license.h +0 -70
  255. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/bounding_box.h +0 -34
  256. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/plane3d.h +0 -153
  257. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point2d.h +0 -96
  258. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/point3d.h +0 -98
  259. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/ray3d.h +0 -64
  260. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation.h +0 -321
  261. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/transformation2d.h +0 -163
  262. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector2d.h +0 -235
  263. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry/vector3d.h +0 -285
  264. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/geometry.h +0 -154
  265. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelexporterplugin.h +0 -165
  266. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/modelimporterplugin.h +0 -187
  267. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/import_export/pluginprogresscallback.h +0 -84
  268. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/initialize.h +0 -43
  269. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/length_formatter.h +0 -424
  270. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arccurve.h +0 -244
  271. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/arrow_type.h +0 -17
  272. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/attribute_dictionary.h +0 -161
  273. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/axes.h +0 -242
  274. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/camera.h +0 -398
  275. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_attribute.h +0 -89
  276. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classification_info.h +0 -125
  277. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/classifications.h +0 -86
  278. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition.h +0 -629
  279. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_definition_snap_to_behavior_private.h +0 -46
  280. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/component_instance.h +0 -344
  281. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/curve.h +0 -143
  282. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/defs.h +0 -147
  283. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension.h +0 -224
  284. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_linear.h +0 -421
  285. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_radial.h +0 -194
  286. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dimension_style.h +0 -253
  287. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/drawing_element.h +0 -198
  288. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_attribute.h +0 -92
  289. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/dynamic_component_info.h +0 -70
  290. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge.h +0 -271
  291. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/edge_use.h +0 -214
  292. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entities.h +0 -879
  293. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity.h +0 -189
  294. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list.h +0 -80
  295. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/entity_list_iterator.h +0 -90
  296. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environment.h +0 -382
  297. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/environments.h +0 -133
  298. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/face.h +0 -702
  299. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/font.h +0 -138
  300. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry.h +0 -20
  301. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/geometry_input.h +0 -695
  302. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/group.h +0 -245
  303. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_line.h +0 -155
  304. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/guide_point.h +0 -153
  305. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image.h +0 -289
  306. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/image_rep.h +0 -275
  307. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/instancepath.h +0 -266
  308. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer.h +0 -265
  309. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/layer_folder.h +0 -301
  310. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_style.h +0 -211
  311. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/line_styles.h +0 -81
  312. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/location.h +0 -65
  313. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/loop.h +0 -182
  314. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/material.h +0 -797
  315. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/mesh_helper.h +0 -187
  316. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model.h +0 -1826
  317. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_entity_type_private.h +0 -44
  318. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/model_version.h +0 -49
  319. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/opening.h +0 -72
  320. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_manager.h +0 -79
  321. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/options_provider.h +0 -166
  322. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/polyline3d.h +0 -140
  323. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/rendering_options.h +0 -180
  324. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/scene.h +0 -1016
  325. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema.h +0 -56
  326. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/schema_type.h +0 -26
  327. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/section_plane.h +0 -212
  328. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/selection.h +0 -156
  329. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/shadow_info.h +0 -147
  330. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/skp.h +0 -45
  331. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/snap.h +0 -183
  332. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/space.h +0 -26
  333. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/style.h +0 -303
  334. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/styles.h +0 -192
  335. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/text.h +0 -392
  336. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture.h +0 -380
  337. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/texture_writer.h +0 -280
  338. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/typed_value.h +0 -390
  339. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/uv_helper.h +0 -79
  340. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/model/vertex.h +0 -154
  341. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup.h +0 -125
  342. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/sketchup_info.h +0 -65
  343. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/slapi.h +0 -16
  344. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/transformation.h +0 -16
  345. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/unicodestring.h +0 -239
  346. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Headers/utils/math_helpers.h +0 -124
  347. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/Resources/Info.plist +0 -50
  348. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/SketchUpAPI +0 -0
  349. data/sketchup-sdk-mac/SketchUpAPI.framework/Versions/A/_CodeSignature/CodeResources +0 -891
  350. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.dll +0 -0
  351. data/sketchup-sdk-win/binaries/layout/x64/LayOutAPI.lib +0 -0
  352. data/sketchup-sdk-win/binaries/layout/x64/LayOutControllers.dll +0 -0
  353. data/sketchup-sdk-win/binaries/layout/x64/LayOutModel.dll +0 -0
  354. data/sketchup-sdk-win/binaries/layout/x64/LayOutRTF.dll +0 -0
  355. data/sketchup-sdk-win/binaries/layout/x64/LayOutUtils.dll +0 -0
  356. data/sketchup-sdk-win/binaries/layout/x64/LayOutView.dll +0 -4
  357. data/sketchup-sdk-win/binaries/layout/x64/SketchUpCommonPreferences.dll +0 -0
  358. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.dll +0 -0
  359. data/sketchup-sdk-win/binaries/layout/x64/SketchUpViewerAPI.lib +0 -0
  360. data/sketchup-sdk-win/binaries/layout/x64/pdflib.dll +0 -0
  361. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.dll +0 -0
  362. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpAPI.lib +0 -0
  363. data/sketchup-sdk-win/binaries/sketchup/x64/SketchUpCommonPreferences.dll +0 -0
  364. data/sketchup-sdk-win/binaries/sketchup/x64/sketchup.lib +0 -0
  365. data/sketchup-sdk-win/headers/LayOutAPI/application/application.h +0 -117
  366. data/sketchup-sdk-win/headers/LayOutAPI/common.h +0 -22
  367. data/sketchup-sdk-win/headers/LayOutAPI/geometry/geometry.h +0 -78
  368. data/sketchup-sdk-win/headers/LayOutAPI/initialize.h +0 -36
  369. data/sketchup-sdk-win/headers/LayOutAPI/layout.h +0 -49
  370. data/sketchup-sdk-win/headers/LayOutAPI/model/angulardimension.h +0 -468
  371. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinition.h +0 -569
  372. data/sketchup-sdk-win/headers/LayOutAPI/model/autotextdefinitionlist.h +0 -79
  373. data/sketchup-sdk-win/headers/LayOutAPI/model/connectionpoint.h +0 -107
  374. data/sketchup-sdk-win/headers/LayOutAPI/model/defs.h +0 -42
  375. data/sketchup-sdk-win/headers/LayOutAPI/model/dictionary.h +0 -120
  376. data/sketchup-sdk-win/headers/LayOutAPI/model/document.h +0 -937
  377. data/sketchup-sdk-win/headers/LayOutAPI/model/documentexportoptions.h +0 -78
  378. data/sketchup-sdk-win/headers/LayOutAPI/model/ellipse.h +0 -78
  379. data/sketchup-sdk-win/headers/LayOutAPI/model/entity.h +0 -402
  380. data/sketchup-sdk-win/headers/LayOutAPI/model/entityiterator.h +0 -49
  381. data/sketchup-sdk-win/headers/LayOutAPI/model/entitylist.h +0 -114
  382. data/sketchup-sdk-win/headers/LayOutAPI/model/formattedtext.h +0 -397
  383. data/sketchup-sdk-win/headers/LayOutAPI/model/grid.h +0 -251
  384. data/sketchup-sdk-win/headers/LayOutAPI/model/group.h +0 -244
  385. data/sketchup-sdk-win/headers/LayOutAPI/model/image.h +0 -146
  386. data/sketchup-sdk-win/headers/LayOutAPI/model/imagerep.h +0 -109
  387. data/sketchup-sdk-win/headers/LayOutAPI/model/label.h +0 -332
  388. data/sketchup-sdk-win/headers/LayOutAPI/model/layer.h +0 -207
  389. data/sketchup-sdk-win/headers/LayOutAPI/model/layerinstance.h +0 -117
  390. data/sketchup-sdk-win/headers/LayOutAPI/model/layerlist.h +0 -69
  391. data/sketchup-sdk-win/headers/LayOutAPI/model/lineardimension.h +0 -508
  392. data/sketchup-sdk-win/headers/LayOutAPI/model/page.h +0 -331
  393. data/sketchup-sdk-win/headers/LayOutAPI/model/pageinfo.h +0 -372
  394. data/sketchup-sdk-win/headers/LayOutAPI/model/pagelist.h +0 -81
  395. data/sketchup-sdk-win/headers/LayOutAPI/model/path.h +0 -464
  396. data/sketchup-sdk-win/headers/LayOutAPI/model/rectangle.h +0 -240
  397. data/sketchup-sdk-win/headers/LayOutAPI/model/referenceentity.h +0 -120
  398. data/sketchup-sdk-win/headers/LayOutAPI/model/sketchupmodel.h +0 -681
  399. data/sketchup-sdk-win/headers/LayOutAPI/model/style.h +0 -1116
  400. data/sketchup-sdk-win/headers/LayOutAPI/model/table.h +0 -472
  401. data/sketchup-sdk-win/headers/LayOutAPI/model/typed_value.h +0 -180
  402. data/sketchup-sdk-win/headers/SketchUpAPI/application/application.h +0 -36
  403. data/sketchup-sdk-win/headers/SketchUpAPI/application/model.h +0 -59
  404. data/sketchup-sdk-win/headers/SketchUpAPI/application/overlay.h +0 -262
  405. data/sketchup-sdk-win/headers/SketchUpAPI/application/ruby_api.h +0 -118
  406. data/sketchup-sdk-win/headers/SketchUpAPI/color.h +0 -107
  407. data/sketchup-sdk-win/headers/SketchUpAPI/common.h +0 -178
  408. data/sketchup-sdk-win/headers/SketchUpAPI/defs.h +0 -19
  409. data/sketchup-sdk-win/headers/SketchUpAPI/extension_license.h +0 -70
  410. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/bounding_box.h +0 -34
  411. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/plane3d.h +0 -153
  412. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point2d.h +0 -96
  413. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/point3d.h +0 -98
  414. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/ray3d.h +0 -64
  415. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation.h +0 -321
  416. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/transformation2d.h +0 -163
  417. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector2d.h +0 -235
  418. data/sketchup-sdk-win/headers/SketchUpAPI/geometry/vector3d.h +0 -285
  419. data/sketchup-sdk-win/headers/SketchUpAPI/geometry.h +0 -154
  420. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelexporterplugin.h +0 -165
  421. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/modelimporterplugin.h +0 -187
  422. data/sketchup-sdk-win/headers/SketchUpAPI/import_export/pluginprogresscallback.h +0 -84
  423. data/sketchup-sdk-win/headers/SketchUpAPI/initialize.h +0 -43
  424. data/sketchup-sdk-win/headers/SketchUpAPI/length_formatter.h +0 -424
  425. data/sketchup-sdk-win/headers/SketchUpAPI/model/arccurve.h +0 -244
  426. data/sketchup-sdk-win/headers/SketchUpAPI/model/arrow_type.h +0 -17
  427. data/sketchup-sdk-win/headers/SketchUpAPI/model/attribute_dictionary.h +0 -161
  428. data/sketchup-sdk-win/headers/SketchUpAPI/model/axes.h +0 -242
  429. data/sketchup-sdk-win/headers/SketchUpAPI/model/camera.h +0 -398
  430. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_attribute.h +0 -89
  431. data/sketchup-sdk-win/headers/SketchUpAPI/model/classification_info.h +0 -125
  432. data/sketchup-sdk-win/headers/SketchUpAPI/model/classifications.h +0 -86
  433. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition.h +0 -629
  434. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_definition_snap_to_behavior_private.h +0 -46
  435. data/sketchup-sdk-win/headers/SketchUpAPI/model/component_instance.h +0 -344
  436. data/sketchup-sdk-win/headers/SketchUpAPI/model/curve.h +0 -143
  437. data/sketchup-sdk-win/headers/SketchUpAPI/model/defs.h +0 -147
  438. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension.h +0 -224
  439. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_linear.h +0 -421
  440. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_radial.h +0 -194
  441. data/sketchup-sdk-win/headers/SketchUpAPI/model/dimension_style.h +0 -253
  442. data/sketchup-sdk-win/headers/SketchUpAPI/model/drawing_element.h +0 -198
  443. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_attribute.h +0 -92
  444. data/sketchup-sdk-win/headers/SketchUpAPI/model/dynamic_component_info.h +0 -70
  445. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge.h +0 -271
  446. data/sketchup-sdk-win/headers/SketchUpAPI/model/edge_use.h +0 -214
  447. data/sketchup-sdk-win/headers/SketchUpAPI/model/entities.h +0 -879
  448. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity.h +0 -189
  449. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list.h +0 -80
  450. data/sketchup-sdk-win/headers/SketchUpAPI/model/entity_list_iterator.h +0 -90
  451. data/sketchup-sdk-win/headers/SketchUpAPI/model/environment.h +0 -382
  452. data/sketchup-sdk-win/headers/SketchUpAPI/model/environments.h +0 -133
  453. data/sketchup-sdk-win/headers/SketchUpAPI/model/face.h +0 -702
  454. data/sketchup-sdk-win/headers/SketchUpAPI/model/font.h +0 -138
  455. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry.h +0 -20
  456. data/sketchup-sdk-win/headers/SketchUpAPI/model/geometry_input.h +0 -695
  457. data/sketchup-sdk-win/headers/SketchUpAPI/model/group.h +0 -245
  458. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_line.h +0 -155
  459. data/sketchup-sdk-win/headers/SketchUpAPI/model/guide_point.h +0 -153
  460. data/sketchup-sdk-win/headers/SketchUpAPI/model/image.h +0 -289
  461. data/sketchup-sdk-win/headers/SketchUpAPI/model/image_rep.h +0 -275
  462. data/sketchup-sdk-win/headers/SketchUpAPI/model/instancepath.h +0 -266
  463. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer.h +0 -265
  464. data/sketchup-sdk-win/headers/SketchUpAPI/model/layer_folder.h +0 -301
  465. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_style.h +0 -211
  466. data/sketchup-sdk-win/headers/SketchUpAPI/model/line_styles.h +0 -81
  467. data/sketchup-sdk-win/headers/SketchUpAPI/model/location.h +0 -65
  468. data/sketchup-sdk-win/headers/SketchUpAPI/model/loop.h +0 -182
  469. data/sketchup-sdk-win/headers/SketchUpAPI/model/material.h +0 -797
  470. data/sketchup-sdk-win/headers/SketchUpAPI/model/mesh_helper.h +0 -187
  471. data/sketchup-sdk-win/headers/SketchUpAPI/model/model.h +0 -1826
  472. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_entity_type_private.h +0 -44
  473. data/sketchup-sdk-win/headers/SketchUpAPI/model/model_version.h +0 -49
  474. data/sketchup-sdk-win/headers/SketchUpAPI/model/opening.h +0 -72
  475. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_manager.h +0 -79
  476. data/sketchup-sdk-win/headers/SketchUpAPI/model/options_provider.h +0 -166
  477. data/sketchup-sdk-win/headers/SketchUpAPI/model/polyline3d.h +0 -140
  478. data/sketchup-sdk-win/headers/SketchUpAPI/model/rendering_options.h +0 -180
  479. data/sketchup-sdk-win/headers/SketchUpAPI/model/scene.h +0 -1016
  480. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema.h +0 -56
  481. data/sketchup-sdk-win/headers/SketchUpAPI/model/schema_type.h +0 -26
  482. data/sketchup-sdk-win/headers/SketchUpAPI/model/section_plane.h +0 -212
  483. data/sketchup-sdk-win/headers/SketchUpAPI/model/selection.h +0 -156
  484. data/sketchup-sdk-win/headers/SketchUpAPI/model/shadow_info.h +0 -147
  485. data/sketchup-sdk-win/headers/SketchUpAPI/model/skp.h +0 -45
  486. data/sketchup-sdk-win/headers/SketchUpAPI/model/snap.h +0 -183
  487. data/sketchup-sdk-win/headers/SketchUpAPI/model/space.h +0 -26
  488. data/sketchup-sdk-win/headers/SketchUpAPI/model/style.h +0 -303
  489. data/sketchup-sdk-win/headers/SketchUpAPI/model/styles.h +0 -192
  490. data/sketchup-sdk-win/headers/SketchUpAPI/model/text.h +0 -392
  491. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture.h +0 -380
  492. data/sketchup-sdk-win/headers/SketchUpAPI/model/texture_writer.h +0 -280
  493. data/sketchup-sdk-win/headers/SketchUpAPI/model/typed_value.h +0 -390
  494. data/sketchup-sdk-win/headers/SketchUpAPI/model/uv_helper.h +0 -79
  495. data/sketchup-sdk-win/headers/SketchUpAPI/model/vertex.h +0 -154
  496. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup.h +0 -125
  497. data/sketchup-sdk-win/headers/SketchUpAPI/sketchup_info.h +0 -65
  498. data/sketchup-sdk-win/headers/SketchUpAPI/slapi.h +0 -16
  499. data/sketchup-sdk-win/headers/SketchUpAPI/transformation.h +0 -16
  500. data/sketchup-sdk-win/headers/SketchUpAPI/unicodestring.h +0 -239
  501. data/sketchup-sdk-win/headers/SketchUpAPI/utils/math_helpers.h +0 -124
@@ -1,380 +0,0 @@
1
- // Copyright 2013 Trimble Inc. All Rights Reserved.
2
-
3
- /**
4
- * @file
5
- * @brief Interfaces for SUTextureRef.
6
- */
7
- #ifndef SKETCHUP_MODEL_TEXTURE_H_
8
- #define SKETCHUP_MODEL_TEXTURE_H_
9
-
10
- #include <stddef.h>
11
- #include <SketchUpAPI/color.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 SUTextureRef
21
- @extends SUEntityRef
22
- @brief Used to manage image data that can be associated with any \ref
23
- SUEntityRef.
24
- */
25
-
26
- /**
27
- @brief Converts from an \ref SUTextureRef to an \ref SUEntityRef. This is
28
- essentially an upcast operation.
29
- @param[in] texture The texture reference.
30
- @related SUTextureRef
31
- @return
32
- - The converted \ref SUEntityRef if texture is a valid object. If not, the
33
- returned reference will be invalid.
34
- */
35
- SU_EXPORT SUEntityRef SUTextureToEntity(SUTextureRef texture);
36
-
37
- /**
38
- @brief Converts from an \ref SUEntityRef to an \ref SUTextureRef. This is
39
- essentially a downcast operation so the given \ref SUEntityRef must be
40
- convertible to an \ref SUTextureRef.
41
- @param[in] entity The entity reference.
42
- @related SUTextureRef
43
- @return
44
- - The converted \ref SUTextureRef if the downcast operation succeeds. If
45
- not, the returned reference will be invalid.
46
- */
47
- SU_EXPORT SUTextureRef SUTextureFromEntity(SUEntityRef entity);
48
-
49
- /**
50
- @brief Creates a new texture object with the specified image data. If the
51
- texture object is not subsequently associated with a parent object (e.g.
52
- material), then the texture object must be deallocated with \ref
53
- SUTextureRelease.
54
- @deprecated Will be removed in the next version of the SketchUp API. The
55
- functionality is replaced by SUImageRepSetData() followed by
56
- SUTextureCreateFromImageRep().
57
- @param[out] texture The texture object created.
58
- @param[in] width The width in pixels of the texture data.
59
- @param[in] height The height in pixels of the texture data.
60
- @param[in] bits_per_pixel The number of bits per pixel of the image data.
61
- @param[in] pixel_data The source of the pixel data.
62
- @related SUTextureRef
63
- @return
64
- - \ref SU_ERROR_NONE on success
65
- - \ref SU_ERROR_NULL_POINTER_INPUT if pixels is NULL
66
- - \ref SU_ERROR_NULL_POINTER_OUTPUT texture is NULL
67
- - \ref SU_ERROR_OVERWRITE_VALID if texture already references a valid object
68
- */
69
- SU_DEPRECATED_FUNCTION("SketchUp API 5.0")
70
- SU_RESULT SUTextureCreateFromImageData(
71
- SUTextureRef* texture, size_t width, size_t height, size_t bits_per_pixel,
72
- const SUByte pixel_data[]);
73
-
74
- /**
75
- @brief Creates a new texture object from an image representation object.
76
- @since SketchUp 2017, API 5.0
77
- @param[out] texture The texture object created.
78
- @param[in] image The image retrieved.
79
- @related SUTextureRef
80
- @return
81
- - \ref SU_ERROR_NONE on success
82
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if texture is NULL
83
- - \ref SU_ERROR_OVERWRITE_VALID if texture already references a valid object
84
- - \ref SU_ERROR_INVALID_INPUT if image is not a valid object
85
- - \ref SU_ERROR_NO_DATA if the image contains no data
86
- */
87
- SU_RESULT SUTextureCreateFromImageRep(SUTextureRef* texture, SUImageRepRef image);
88
-
89
- /**
90
- @brief Creates a new texture object from an image file specified by a path.
91
- If the texture object is not subsequently associated with a parent
92
- object (e.g. material), then the texture object must be deallocated with
93
- SUTextureRelease.
94
- @param[out] texture The texture object created.
95
- @param[in] file_path The file path of the source image file. Assumed to be
96
- UTF-8 encoded.
97
- @param[in] s_scale The scale factor for s coordinate value.
98
- @param[in] t_scale The scale factor for t coordinate value.
99
- @related SUTextureRef
100
- @return
101
- - \ref SU_ERROR_NONE on success
102
- - \ref SU_ERROR_NULL_POINTER_INPUT if file_path is NULL
103
- - \ref SU_ERROR_SERIALIZATION if the image file could not be opened
104
- - \ref SU_ERROR_GENERIC if a texture could not be created from the image file
105
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if texture is NULL
106
- - \ref SU_ERROR_OVERWRITE_VALID is texture already references a valid object
107
- */
108
- SU_RESULT SUTextureCreateFromFile(
109
- SUTextureRef* texture, const char* file_path, double s_scale, double t_scale);
110
-
111
- /**
112
- @brief Deallocates a texture object and its resources. If the texture object
113
- is associated with a parent object (e.g. material) the parent object
114
- handles the deallocation of the resources of the texture object and the
115
- texture object must not be explicitly deallocated.
116
- @param[in] texture The texture object to deallocate.
117
- @related SUTextureRef
118
- @return
119
- - \ref SU_ERROR_NONE on success
120
- - \ref SU_ERROR_NULL_POINTER_INPUT if texture is NULL
121
- - \ref SU_ERROR_INVALID_INPUT if texture does not refer to a valid object
122
- */
123
- SU_RESULT SUTextureRelease(SUTextureRef* texture);
124
-
125
- /**
126
- @brief Retrieves the pixel width, height, and scale factors of the texture.
127
- @note The s_scale and t_scale values are useful when a face doesn't have a
128
- material applied directly, but instead inherit from a parent group or
129
- component instance. Then you want use these values to multiply the
130
- result of SUMeshHelperGetFrontSTQCoords() or SUUVHelperGetFrontUVQ().
131
- If the material is applied directly then this would not be needed.
132
- @note For PBR textures (metallic, roughness, normal, and ambient occlusion)
133
- the s_scale and t_scale values are only used when the PBR material
134
- doesn't have a base texture.
135
- @param[in] texture The texture object whose dimensions are retrieved.
136
- @param[out] width The width in pixels.
137
- @param[out] height The height in pixels.
138
- @param[out] s_scale The s coordinate scale factor to map a pixel into model
139
- coordinates.
140
- @param[out] t_scale The t coordinate scale factor to map a pixel into model
141
- coordinates.
142
- @related SUTextureRef
143
- @return
144
- - \ref SU_ERROR_NONE on success
145
- - \ref SU_ERROR_INVALID_INPUT if texture is an invalid object
146
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if width, height, s_scale, or t_scale is
147
- NULL
148
- */
149
- SU_RESULT SUTextureGetDimensions(
150
- SUTextureRef texture, size_t* width, size_t* height, double* s_scale, double* t_scale);
151
-
152
- /**
153
- @brief Sets the scale factors of the texture.
154
- @note For PBR textures (metallic, roughness, normal, and ambient occlusion)
155
- the \p s_scale and \p t_scale values are only used when the PBR material
156
- doesn't have a base texture.
157
- @since SketchUp 2025.0, API 13.0
158
- \param texture The texture object whose dimensions are set.
159
- \param s_scale The s coordinate scale factor to map a pixel into model
160
- coordinates.
161
- \param t_scale The t coordinate scale factor to map a pixel into model
162
- coordinates.
163
- @related SUTextureRef
164
- @return
165
- - \ref SU_ERROR_NONE on success
166
- - \ref SU_ERROR_INVALID_INPUT if \p texture is an invalid object
167
- - \ref SU_ERROR_OUT_OF_RANGE if \p s_scale, or \p t_scale is smaller or equal to 0
168
- */
169
- SU_RESULT SUTextureSetDimensions(SUTextureRef texture, double s_scale, double t_scale);
170
-
171
- /**
172
- @brief Returns the total size and bits-per-pixel value of a texture's image
173
- data. This function is useful to determine the size of the buffer
174
- necessary to be passed into \ref SUTextureGetImageData(). The returned
175
- data can be used along with the returned bits-per-pixel value and the
176
- texture dimensions to compute RGBA values at individual pixels of the
177
- texture image.
178
- @deprecated Will be removed in the next version of the SketchUp API. The
179
- functionality is replaced by SUTextureGetImageRep followed by
180
- SUImageRepGetImageDataSize.
181
- @param[in] texture The texture object.
182
- @param[out] data_size The total size of the image data in bytes.
183
- @param[out] bits_per_pixel The number of bits per pixel of the image data.
184
- @related SUTextureRef
185
- @return
186
- - \ref SU_ERROR_NONE on success
187
- - \ref SU_ERROR_INVALID_INPUT if texture is an invalid object
188
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if data_size or bits_per_pixel is NULL
189
- */
190
- SU_DEPRECATED_FUNCTION("SketchUp API 5.0")
191
- SU_RESULT SUTextureGetImageDataSize(
192
- SUTextureRef texture, size_t* data_size, size_t* bits_per_pixel);
193
-
194
- /**
195
- @brief Returns the texture's image data. The given array must be large enough
196
- to hold the texture's image data. This size can be obtained by calling
197
- \ref SUTextureGetImageDataSize().
198
- @deprecated Will be removed in the next version of the SketchUp API. The
199
- functionality is replaced by SUTextureGetImageRep followed by
200
- SUImageRepGetImageData.
201
- @param[in] texture The texture object.
202
- @param[in] data_size The size of the byte array.
203
- @param[out] pixel_data The image data retrieved.
204
- @related SUTextureRef
205
- @return
206
- - \ref SU_ERROR_NONE on success
207
- - \ref SU_ERROR_INVALID_INPUT if texture is an invalid object
208
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if pixel_data is NULL
209
- - \ref SU_ERROR_INSUFFICIENT_SIZE if data_size is insufficient for the image
210
- data
211
- */
212
- SU_DEPRECATED_FUNCTION("SketchUp API 5.0")
213
- SU_RESULT SUTextureGetImageData(SUTextureRef texture, size_t data_size, SUByte pixel_data[]);
214
-
215
- /**
216
- @brief Retrieves a texture's image. The given image object must have been
217
- constructed using one of the SUImageRepCreate* functions. It must be
218
- released using SUImageRepRelease(). The difference between this
219
- function and SUTextureGetColorizedImageRep() is that
220
- SUTextureGetColorizedImageRep() will retrieve the colorized image
221
- rep, if the material has been colorized.
222
- @since SketchUp 2017, API 5.0
223
- @param[in] texture The texture object.
224
- @param[out] image The image object retrieved.
225
- @related SUTextureRef
226
- @return
227
- - \ref SU_ERROR_NONE on success
228
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
229
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if image is NULL
230
- - \ref SU_ERROR_INVALID_OUTPUT if image does not point to a valid \ref
231
- SUImageRepRef object
232
- - \ref SU_ERROR_NO_DATA if no image was created
233
- */
234
- SU_RESULT SUTextureGetImageRep(SUTextureRef texture, SUImageRepRef* image);
235
-
236
- /**
237
- @brief Writes a texture object as an image to disk. If the material has been
238
- colorized this will write out a colorized texture.
239
- Use \ref SUTextureWriteOriginalToFile() to obtain the original texture
240
- without colorization.
241
- @param[in] texture The texture object.
242
- @param[in] file_path The file path destination of the texture image. Assumed to
243
- be UTF-8 encoded.
244
- @related SUTextureRef
245
- @return
246
- - \ref SU_ERROR_NONE on success
247
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
248
- - \ref SU_ERROR_NULL_POINTER_INPUT if file_path is NULL
249
- - \ref SU_ERROR_SERIALIZATION if image file could not be written to disk
250
- */
251
- SU_RESULT SUTextureWriteToFile(SUTextureRef texture, const char* file_path);
252
-
253
- /**
254
- @brief Sets the image file name string associated with the texture object. If
255
- the input texture was constructed using \ref SUTextureCreateFromFile the
256
- name will already be set, so calling this function will override the
257
- texture's file name string.
258
- @since SketchUp 2017, API 5.0
259
- @param[in] texture The texture object.
260
- @param[in] name The name string to set as the file name.
261
- Assumed to be UTF-8 encoded.
262
- @related SUTextureRef
263
- @return
264
- - \ref SU_ERROR_NONE on success
265
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
266
- - \ref SU_ERROR_NULL_POINTER_INPUT if name is NULL
267
- */
268
- SU_RESULT SUTextureSetFileName(SUTextureRef texture, const char* name);
269
-
270
- /**
271
- @brief Retrieves the image file basename of a texture object. A full path may be
272
- stored with the texture, but this method will always return a file name
273
- string with no path. If the texture was created from an
274
- \ref SUImageRepRef created with SUImageRepLoadFile() then this will
275
- return only the file extension representing the file format of the image
276
- data (e.g. ".png").
277
- @param[in] texture The texture object.
278
- @param[out] file_name The file name retrieved.
279
- @related SUTextureRef
280
- @see SUTextureGetFilePath
281
- @return
282
- - \ref SU_ERROR_NONE on success
283
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
284
- - \ref SU_ERROR_GENERIC if the texture is an unknown file type
285
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if file_name is NULL
286
- - \ref SU_ERROR_INVALID_OUTPUT if file_name does not point to a valid \ref
287
- SUStringRef object
288
- */
289
- SU_RESULT SUTextureGetFileName(SUTextureRef texture, SUStringRef* file_name);
290
-
291
- /**
292
- @brief Retrieves the image file path of a texture object.
293
-
294
- If the texture was created from an \ref SUImageRepRef created with SUImageRepLoadFile()
295
- then this will return only the file extension representing the file format of the image
296
- data (e.g. ".png").
297
-
298
- @param[in] texture The texture object.
299
- @param[out] file_path The file path retrieved.
300
- @related SUTextureRef
301
- @since SketchUp 2023.1, API 11.1
302
- @return
303
- - \ref SU_ERROR_NONE on success
304
- - \ref SU_ERROR_INVALID_INPUT if \p texture is not a valid object
305
- - \ref SU_ERROR_GENERIC if the \p texture is an unknown file type
306
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if \p file_path is NULL
307
- - \ref SU_ERROR_INVALID_OUTPUT if \p file_path does not point to a valid \ref
308
- SUStringRef object
309
- */
310
- SU_RESULT SUTextureGetFilePath(SUTextureRef texture, SUStringRef* file_path);
311
-
312
- /**
313
- @brief Retrieves the value of the flag that indicates whether a texture object
314
- uses the alpha channel.
315
- @param[in] texture The texture object.
316
- @param[out] alpha_channel_used The destination of the retrieved value.
317
- @related SUTextureRef
318
- @return
319
- - \ref SU_ERROR_NONE on success
320
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
321
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if alpha_channel_used is NULL
322
- - \ref SU_ERROR_NO_DATA if the flag value could not be retrieved
323
- */
324
- SU_RESULT SUTextureGetUseAlphaChannel(SUTextureRef texture, bool* alpha_channel_used);
325
-
326
- /**
327
- @brief Retrieves the average color for the texture.
328
- @param[in] texture The texture object
329
- @param[out] color_val The color object
330
- @related SUTextureRef
331
- @return
332
- - \ref SU_ERROR_NONE on success
333
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
334
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if color_val is NULL
335
- */
336
- SU_RESULT SUTextureGetAverageColor(SUTextureRef texture, SUColor* color_val);
337
-
338
- /**
339
- @brief Retrieves the image rep object of a colorized texture. If a
340
- non-colorized texture is used, then the original image rep will be
341
- retrieved. The difference between this function and
342
- \ref SUTextureGetImageRep is that \ref SUTextureGetImageRep() will always
343
- retrieve the original image rep.
344
- @since SketchUp 2018, API 6.0
345
- @param[in] texture The texture object.
346
- @param[out] image_rep The retrieved image rep.
347
- @related SUTextureRef
348
- @return
349
- - \ref SU_ERROR_NONE on success
350
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
351
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if image_rep is NULL
352
- - \ref SU_ERROR_NO_DATA if no data was retrieved from the texture
353
- - \ref SU_ERROR_OUT_OF_RANGE if the pixel data is out of range
354
- */
355
- SU_RESULT SUTextureGetColorizedImageRep(SUTextureRef texture, SUImageRepRef* image_rep);
356
-
357
- /**
358
- @brief Writes a texture object as an image to disk without any colorization.
359
- If the texture was created from a file on disk this will write out the
360
- original file data if the provided file extension matches. This will be
361
- the fastest way to extract the original texture from the model.
362
- Use SUTextureGetFilename() to obtain the original file format.
363
- @since SketchUp 2019.2, API 7.1
364
- @param[in] texture The texture object.
365
- @param[in] file_path The file path destination of the texture image. Assumed to
366
- be UTF-8 encoded.
367
- @related SUTextureRef
368
- @return
369
- - \ref SU_ERROR_NONE on success
370
- - \ref SU_ERROR_INVALID_INPUT if texture is not a valid object
371
- - \ref SU_ERROR_NULL_POINTER_INPUT if file_path is NULL
372
- - \ref SU_ERROR_SERIALIZATION if image file could not be written to disk
373
- */
374
- SU_RESULT SUTextureWriteOriginalToFile(SUTextureRef texture, const char* file_path);
375
-
376
- #ifdef __cplusplus
377
- } // extern "C"
378
- #endif
379
-
380
- #endif // SKETCHUP_MODEL_TEXTURE_H_
@@ -1,280 +0,0 @@
1
- // Copyright 2013 Trimble Inc. All Rights Reserved.
2
-
3
- /**
4
- * @file
5
- * @brief Interfaces for SUTextureWriterRef.
6
- */
7
- #ifndef SKETCHUP_MODEL_TEXTURE_WRITER_H_
8
- #define SKETCHUP_MODEL_TEXTURE_WRITER_H_
9
-
10
- #include <SketchUpAPI/geometry.h>
11
- #include <SketchUpAPI/unicodestring.h>
12
- #include <SketchUpAPI/model/defs.h>
13
- #include <SketchUpAPI/model/face.h>
14
-
15
- #ifdef __cplusplus
16
- extern "C" {
17
- #endif
18
-
19
- /**
20
- @struct SUTextureWriterRef
21
- @brief Used to write out textures of various SketchUp model elements to local
22
- disk. For face objects texture writer modifies non-affine textures on
23
- write so that the resulting texture image can be mapped with
24
- 2-dimensional texture coordinates. The modified UV coordinates are
25
- retrieved from a mesh object created with
26
- SUMeshHelperCreateWithTextureWriter().
27
- */
28
-
29
- /**
30
- @brief Creates a new texture writer object. The texture writer must be
31
- subsequently deallocated with SUTextureWriterRelease().
32
- @param[out] writer The created texture writer object.
33
- @related SUTextureWriterRef
34
- @return
35
- - \ref SU_ERROR_NONE on success
36
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if writer is NULL
37
- */
38
- SU_RESULT SUTextureWriterCreate(SUTextureWriterRef* writer);
39
-
40
- /**
41
- @brief Deallocates a texture writer object.
42
- @param[in] writer The texture writer object.
43
- @related SUTextureWriterRef
44
- @return
45
- - \ref SU_ERROR_NONE on return
46
- - \ref SU_ERROR_INVALID_INPUT if writer does not reference a valid object
47
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if writer is NULL
48
- */
49
- SU_RESULT SUTextureWriterRelease(SUTextureWriterRef* writer);
50
-
51
- /**
52
- @brief Loads an entity to a texture writer object in order to have its texture
53
- written to disk. Acceptable entity types are:
54
- \ref SUComponentInstanceRef, \ref SUImageRef, \ref SUGroupRef and
55
- \ref SULayerRef.
56
- @param[in] writer The texture writer object.
57
- @param[in] entity The entity object.
58
- @param[out] texture_id The id of the texture.
59
- @related SUTextureWriterRef
60
- @return
61
- - \ref SU_ERROR_NONE on success
62
- - \ref SU_ERROR_INVALID_INPUT if writer or entity is not a valid object
63
- - \ref SU_ERROR_GENERIC if entity is not one of the acceptable types or there is
64
- no texture to write
65
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if texture_id is NULL
66
- */
67
- SU_RESULT SUTextureWriterLoadEntity(
68
- SUTextureWriterRef writer, SUEntityRef entity, long* texture_id);
69
-
70
- /**
71
- @brief Loads a face object to a texture writer object in order to have its
72
- front and/or back texture written to local disk.
73
- @param[in] writer The texture writer object.
74
- @param[in] face The face object.
75
- @param[out] front_texture_id The texture ID of the front texture.
76
- @param[out] back_texture_id The texture ID of the back texture.
77
- @related SUTextureWriterRef
78
- @return
79
- - \ref SU_ERROR_NONE on success
80
- - \ref SU_ERROR_INVALID_INPUT if writer or face is not a valid object
81
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if the face object has a front face texture
82
- to write, and front_texture_id is NULL
83
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if the face object has a back face texture
84
- to write, and back_texture_id is NULL
85
- - \ref SU_ERROR_GENERIC if the face object does not a texture to write
86
- */
87
- SU_RESULT SUTextureWriterLoadFace(
88
- SUTextureWriterRef writer, SUFaceRef face, long* front_texture_id, long* back_texture_id);
89
-
90
- /**
91
- @brief Retrieves the total number of textures that are loaded into the texture
92
- writer object.
93
- @param[in] writer The texture writer object.
94
- @param[out] count The number of textures.
95
- @related SUTextureWriterRef
96
- @return
97
- - \ref SU_ERROR_NONE on success
98
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
99
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if count is NULL
100
- */
101
- SU_RESULT SUTextureWriterGetNumTextures(SUTextureWriterRef writer, size_t* count);
102
-
103
- /**
104
- @brief Writes a texture to a file on disk.
105
- @param[in] writer The texture writer object.
106
- @param[in] texture_id The id of the texture.
107
- @param[in] path The file location on disk to write the texture. If a file
108
- is present at the location it is overwritten. The file
109
- extension of the file path is indicates the file format.
110
- The extension must be one of "jpg", "bmp", "tif", or
111
- "png". Assumed to be UTF-8 encoded.
112
- @param[in] reduce_size Indicates whether the texture image should be reduced in
113
- size through scaling.
114
- @related SUTextureWriterRef
115
- @return
116
- - \ref SU_ERROR_NONE on success
117
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
118
- - \ref SU_ERROR_NULL_POINTER_INPUT if path is NULL
119
- - \ref SU_ERROR_SERIALIZATION if a file could not be written to the specified
120
- location, or if an invalid file format was specified
121
- */
122
- SU_RESULT SUTextureWriterWriteTexture(
123
- SUTextureWriterRef writer, long texture_id, const char* path, bool reduce_size);
124
-
125
- /**
126
- @brief Retrieves an image from the given texture_id. The given image
127
- representation object must have been constructed using one of the
128
- SUImageRepCreate* functions. It must be released using
129
- SUImageRepRelease().
130
- @since SketchUp 2017 M2, API 5.2
131
- @param[in] writer The texture writer object.
132
- @param[in] texture_id The id of the texture.
133
- @param[out] image The image object retrieved.
134
- @related SUTextureWriterRef
135
- @return
136
- - \ref SU_ERROR_NONE on success
137
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
138
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if image is NULL
139
- - \ref SU_ERROR_INVALID_OUTPUT if image is not a valid object.
140
- - \ref SU_ERROR_NO_DATA if there is no texture in the given texture_id.
141
- */
142
- SU_RESULT SUTextureWriterGetImageRep(
143
- SUTextureWriterRef writer, long texture_id, SUImageRepRef* image);
144
-
145
- /**
146
- @brief Writes out all the textures loaded into a texture writer object. The
147
- file names and formats are those of the image file used to create the
148
- texture. Preexisting files are overwritten.
149
- @param[in] writer The texture writer object.
150
- @param[in] directory The directory on disk to write the textures. Assumed to be
151
- UTF-8 encoded.
152
- @related SUTextureWriterRef
153
- @return
154
- - \ref SU_ERROR_NONE on success
155
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
156
- - \ref SU_ERROR_NULL_POINTER_INPUT if directory is NULL
157
- - \ref SU_ERROR_INVALID_INPUT if directory is not a object
158
- - \ref SU_ERROR_SERIALIZATION if the textures could not be written to disk
159
- */
160
- SU_RESULT SUTextureWriterWriteAllTextures(SUTextureWriterRef writer, const char* directory);
161
-
162
- /**
163
- @brief Retrieves a flag indicating whether a texture object loaded into a
164
- texture writer object is linearly interpolated (affine) or perspective
165
- corrected.
166
- @param[in] writer The texture writer object.
167
- @param[in] texture_id The id of the texture.
168
- @param[out] is_affine The affine flag retrieved.
169
- @related SUTextureWriterRef
170
- @return
171
- - \ref SU_ERROR_NONE on success
172
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
173
- - \ref SU_ERROR_NO_DATA if texture_id is not a handle to a loaded texture object
174
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if is_affine is NULL
175
- */
176
- SU_RESULT SUTextureWriterIsTextureAffine(
177
- SUTextureWriterRef writer, long texture_id, bool* is_affine);
178
-
179
- /**
180
- @brief Retrieves the file path from a texture image written using \ref
181
- SUTextureWriterWriteAllTextures.
182
- @param[in] writer The texture writer object.
183
- @param[in] texture_id The id of the texture.
184
- @param[out] file_path The file path retrieved.
185
- @related SUTextureWriterRef
186
- @return
187
- - \ref SU_ERROR_NONE on success
188
- - \ref SU_ERROR_INVALID_INPUT if writer is not a valid object
189
- - \ref SU_ERROR_NO_DATA if texture_id is not a handle to a loaded and written
190
- texture object
191
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if file_path is NULL
192
- - \ref SU_ERROR_INVALID_OUTPUT if file_path does not point to a valid \ref
193
- SUStringRef object
194
- */
195
- SU_RESULT SUTextureWriterGetTextureFilePath(
196
- SUTextureWriterRef writer, long texture_id, SUStringRef* file_path);
197
-
198
- /**
199
- @brief Given an array of vertex positions, retrieves the corresponding UV
200
- coordinates of the front face texture of a face object that has been
201
- loaded into the given texture writer object.
202
- @param[in] writer The texture writer object.
203
- @param[in] face The face object.
204
- @param[in] len The number of vertex positions.
205
- @param[in] points The vertex positions.
206
- @param[out] uv_coords The UV coordinates retrieved.
207
- @related SUTextureWriterRef
208
- @return
209
- - \ref SU_ERROR_NONE on success
210
- - \ref SU_ERROR_INVALID_INPUT if writer or face is not a valid object
211
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if uv_coords is NULL
212
- - \ref SU_ERROR_NO_DATA if the face object does not have a front face texture
213
- */
214
- SU_RESULT SUTextureWriterGetFrontFaceUVCoords(
215
- SUTextureWriterRef writer, SUFaceRef face, size_t len, const struct SUPoint3D points[],
216
- struct SUPoint2D uv_coords[]);
217
-
218
- /**
219
- @brief Given an array of vertex positions, retrieves the corresponding UV
220
- coordinates of the back face texture of a face object that has been
221
- loaded into the given texture writer object.
222
- @param[in] writer The texture writer object.
223
- @param[in] face The face object.
224
- @param[in] len The number of vertex positions.
225
- @param[in] points The vertex positions.
226
- @param[out] uv_coords The UV coordinates retrieved.
227
- @related SUTextureWriterRef
228
- @return
229
- - \ref SU_ERROR_NONE on success
230
- - \ref SU_ERROR_INVALID_INPUT if writer or face is not a valid object
231
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if uv_coords is NULL
232
- - \ref SU_ERROR_NO_DATA if the face object does not have a back face texture
233
- */
234
- SU_RESULT SUTextureWriterGetBackFaceUVCoords(
235
- SUTextureWriterRef writer, SUFaceRef face, size_t len, const struct SUPoint3D points[],
236
- struct SUPoint2D uv_coords[]);
237
-
238
- /**
239
- @brief Gets the texture id of a previously loaded entity. Acceptable entity
240
- types are: \ref SUComponentInstanceRef, \ref SUImageRef, \ref SUGroupRef
241
- and \ref SULayerRef.
242
- @param[in] writer The texture writer object.
243
- @param[in] entity The entity object.
244
- @param[out] texture_id The texture id retrieved.
245
- @related SUTextureWriterRef
246
- @return
247
- - \ref SU_ERROR_NONE on success
248
- - \ref SU_ERROR_INVALID_INPUT if writer or entity is not a valid object
249
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if texture_id is NULL
250
- - \ref SU_ERROR_GENERIC if the entity is not one of the acceptable types or it
251
- does not have a previously written texture_id
252
- */
253
- SU_RESULT SUTextureWriterGetTextureIdForEntity(
254
- SUTextureWriterRef writer, SUEntityRef entity, long* texture_id);
255
-
256
- /**
257
- @brief Gets the texture id of a previously loaded face.
258
- @param[in] writer The texture writer object.
259
- @param[in] face The face object.
260
- @param[in] front The side of the face we are interested in. True if we want
261
- texture for the front face, false if we want the texture for
262
- the back face.
263
- @param[out] texture_id The texture id retrieved.
264
- @related SUTextureWriterRef
265
- @return
266
- - \ref SU_ERROR_NONE on success
267
- - \ref SU_ERROR_INVALID_INPUT if writer or face is not a valid object
268
- - \ref SU_ERROR_NULL_POINTER_OUTPUT if the face object has a texture, and
269
- texture_id is NULL
270
- - \ref SU_ERROR_GENERIC if the face object does not have a previously written
271
- texture_id
272
- */
273
- SU_RESULT SUTextureWriterGetTextureIdForFace(
274
- SUTextureWriterRef writer, SUFaceRef face, bool front, long* texture_id);
275
-
276
- #ifdef __cplusplus
277
- } // #ifdef __cplusplus
278
- #endif
279
-
280
- #endif // SKETCHUP_MODEL_TEXTURE_WRITER_H_