Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_texture.c
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Size", "Set scaling for the texture's X, Y and Z sizes"); | RNA_def_property_ui_text(prop, "Size", "Set scaling for the texture's X, Y and Z sizes"); | ||||
| RNA_def_property_update(prop, 0, "rna_TextureSlot_update"); | RNA_def_property_update(prop, 0, "rna_TextureSlot_update"); | ||||
| prop = RNA_def_property(srna, "rotation", PROP_FLOAT, PROP_EULER); | |||||
| RNA_def_property_float_sdna(prop, NULL, "rot"); | |||||
| RNA_def_property_ui_text(prop, "Rotation", "Set rotation for the texture"); | |||||
| RNA_def_property_update(prop, 0, "rna_TextureSlot_update"); | |||||
| prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "r"); | RNA_def_property_float_sdna(prop, NULL, "r"); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| Context not available. | |||||
| {ENV_STATIC, "STATIC", 0, "Static", "Calculate environment map only once"}, | {ENV_STATIC, "STATIC", 0, "Static", "Calculate environment map only once"}, | ||||
| {ENV_ANIM, "ANIMATED", 0, "Animated", "Calculate environment map at each rendering"}, | {ENV_ANIM, "ANIMATED", 0, "Animated", "Calculate environment map at each rendering"}, | ||||
| {ENV_LOAD, "IMAGE_FILE", 0, "Image File", "Load a saved environment map image from disk"}, | {ENV_LOAD, "IMAGE_FILE", 0, "Image File", "Load a saved environment map image from disk"}, | ||||
| {ENV_REALT, "REALTIME", 0, "Realtime", "Image generated for realtime reflections in the game engine"}, | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| Context not available. | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static EnumPropertyItem prop_filtering_items[] = { | |||||
| {ENVMAP_MIPMAP_NONE, "NONE", 0, "None", "None texture filtering"}, | |||||
| {ENVMAP_MIPMAP_LINEAR, "LINEAR", 0, "Linear Filtering", "Linear texture filtering"}, | |||||
| {ENVMAP_MIPMAP_MIPMAP, "MIPMAP", 0, "Mipmap Filtering", "Mipmap texture filtering"}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| srna = RNA_def_struct(brna, "EnvironmentMap", NULL); | srna = RNA_def_struct(brna, "EnvironmentMap", NULL); | ||||
| RNA_def_struct_sdna(srna, "EnvMap"); | RNA_def_struct_sdna(srna, "EnvMap"); | ||||
| RNA_def_struct_ui_text(srna, "EnvironmentMap", | RNA_def_struct_ui_text(srna, "EnvironmentMap", | ||||
| Context not available. | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Validity", "True if this map is ready for use, False if it needs rendering"); | RNA_def_property_ui_text(prop, "Validity", "True if this map is ready for use, False if it needs rendering"); | ||||
| prop = RNA_def_property(srna, "auto_update", PROP_BOOLEAN, 0); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", ENVMAP_AUTO_UPDATE); | |||||
| RNA_def_property_ui_text(prop, "Auto Update", "True if the cube map is updated every frame"); | |||||
| prop = RNA_def_property(srna, "filtering", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "filtering"); | |||||
| RNA_def_property_enum_items(prop, prop_filtering_items); | |||||
| RNA_def_property_ui_text(prop, "Filtering", "Texture filtering method"); | |||||
| RNA_api_environment_map(srna); | RNA_api_environment_map(srna); | ||||
| } | } | ||||
| Context not available. | |||||