|
(Note that these are not member functions.)
|
SUEntityRef | SUMaterialToEntity (SUMaterialRef material) |
| Converts from an SUMaterialRef to an SUEntityRef. This is essentially an upcast operation. More...
|
|
SUMaterialRef | SUMaterialFromEntity (SUEntityRef entity) |
| Converts from an SUEntityRef to an SUMaterialRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUMaterialRef. More...
|
|
enum SUResult | SUMaterialCreate (SUMaterialRef *material) |
| Creates a material. More...
|
|
enum SUResult | SUMaterialRelease (SUMaterialRef *material) |
| Releases a material and its resources. More...
|
|
enum SUResult | SUMaterialSetName (SUMaterialRef material, const char *name) |
| Sets the name of a material object. More...
|
|
enum SUResult | SUMaterialGetName (SUMaterialRef material, SUStringRef *name) |
| Retrieves the internal name of a material object. The internal name is the unprocessed identifier string stored with the material. More...
|
|
enum SUResult | SUMaterialGetNameLegacyBehavior (SUMaterialRef material, SUStringRef *name) |
| Retrieves the name of a material object. This method was added for users who require the functionality of SUMaterialGetName() prior to SketchUp 2017, API 5.0. If the internal name is encased in square brackets, [], this method will return the name without brackets, otherwise the name will match the name retrieved by SUMaterialGetName. More...
|
|
enum SUResult | SUMaterialSetColor (SUMaterialRef material, const SUColor *color) |
| Sets the color of a material object. More...
|
|
enum SUResult | SUMaterialGetColor (SUMaterialRef material, SUColor *color) |
| Retrieves the color value of a material object. More...
|
|
enum SUResult | SUMaterialSetTexture (SUMaterialRef material, SUTextureRef texture) |
| Sets the texture of a material object. Materials take ownership of their assigned textures, so textures should not be shared accross different materials. More...
|
|
enum SUResult | SUMaterialGetTexture (SUMaterialRef material, SUTextureRef *texture) |
| Retrieves the texture of a material object. More...
|
|
enum SUResult | SUMaterialGetOpacity (SUMaterialRef material, double *alpha) |
| Retrieves the alpha value (0.0 - 1.0) of a material object. More...
|
|
enum SUResult | SUMaterialSetOpacity (SUMaterialRef material, double alpha) |
| Sets the alpha value of a material object. More...
|
|
enum SUResult | SUMaterialGetUseOpacity (SUMaterialRef material, bool *use_opacity) |
| Retrieves the flag indicating whether alpha values are used from a material object. More...
|
|
enum SUResult | SUMaterialSetUseOpacity (SUMaterialRef material, bool use_opacity) |
| Sets the flag indicating whether alpha values are used on a material object. More...
|
|
enum SUResult | SUMaterialSetType (SUMaterialRef material, enum SUMaterialType type) |
| Sets the type of a material object. More...
|
|
enum SUResult | SUMaterialGetType (SUMaterialRef material, enum SUMaterialType *type) |
| Retrieves the type of a material object. More...
|
|
enum SUResult | SUMaterialIsDrawnTransparent (SUMaterialRef material, bool *transparency) |
| Retrieves the flag indicating whether the material is drawn with transparency. More...
|
|
enum SUResult | SUMaterialGetOwnerType (SUMaterialRef material, enum SUMaterialOwnerType *type) |
| Retrieves the owner type of a material object. More...
|
|
enum SUResult | SUMaterialSetColorizeType (SUMaterialRef material, enum SUMaterialColorizeType type) |
| Sets the colorization type of a material object. This is used when the material's color is set to a custom value. Call this function after calling SUMaterialSetColor as otherwise the colorize type will be reset. More...
|
|
enum SUResult | SUMaterialGetColorizeType (SUMaterialRef material, enum SUMaterialColorizeType *type) |
| Retrieves the colorization type of a material object. More...
|
|
enum SUResult | SUMaterialGetColorizeDeltas (SUMaterialRef material, double *hue, double *saturation, double *lightness) |
| The colorize_deltas method retrieves the HLS deltas for colorized materials. More...
|
|
enum SUResult | SUMaterialWriteToFile (SUMaterialRef material, const char *file_path) |
| Writes a material to a SKM file. More...
|
|
enum SUResult | SUModelLoadMaterial (SUModelRef model, const char *file_path, SUMaterialRef *material) |
| Loads a material from a SKM file. More...
|
|
enum SURefType | SUEntityGetType (SUEntityRef entity) |
| Returns the concrete type of the given entity. More...
|
|
enum SUResult | SUEntityGetID (SUEntityRef entity, int32_t *entity_id) |
| Retrieves the id of the entity. More...
|
|
enum SUResult | SUEntityGetPersistentID (SUEntityRef entity, int64_t *entity_pid) |
| Retrieves the persistent id of the entity. More...
|
|
enum SUResult | SUEntityGetNumAttributeDictionaries (SUEntityRef entity, size_t *count) |
| Retrieves the number of attribute dictionaries of an entity. More...
|
|
enum SUResult | SUEntityGetAttributeDictionaries (SUEntityRef entity, size_t len, SUAttributeDictionaryRef dictionaries[], size_t *count) |
| Retrieves the attribute dictionaries of an entity. More...
|
|
enum SUResult | SUEntityAddAttributeDictionary (SUEntityRef entity, SUAttributeDictionaryRef dictionary) |
| Adds the attribute dictionary to an entity. The given dictionary object must not belong to another entity. In other words, each dictionary should be added to one entity only. More...
|
|
enum SUResult | SUEntityGetAttributeDictionary (SUEntityRef entity, const char *name, SUAttributeDictionaryRef *dictionary) |
| Retrieves the attribute dictionary of an entity that has the given name. More...
|
|
enum SUResult | SUEntityGetModel (SUEntityRef entity, SUModelRef *model) |
| Retrieves the model object associated with the entity. More...
|
|
enum SUResult | SUEntityGetParentEntities (SUEntityRef entity, SUEntitiesRef *entities) |
| Retrieves the entities object which contains the entity. More...
|
|
References a material object.