Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Show First 20 Lines • Show All 3,902 Lines • ▼ Show 20 Lines | static const EnumPropertyItem audio_channel_items[] = { | ||||
| {1, "MONO", 0, "Mono", "Set audio channels to mono"}, | {1, "MONO", 0, "Mono", "Set audio channels to mono"}, | ||||
| {2, "STEREO", 0, "Stereo", "Set audio channels to stereo"}, | {2, "STEREO", 0, "Stereo", "Set audio channels to stereo"}, | ||||
| {4, "SURROUND4", 0, "4 Channels", "Set audio channels to 4 channels"}, | {4, "SURROUND4", 0, "4 Channels", "Set audio channels to 4 channels"}, | ||||
| {6, "SURROUND51", 0, "5.1 Surround", "Set audio channels to 5.1 surround sound"}, | {6, "SURROUND51", 0, "5.1 Surround", "Set audio channels to 5.1 surround sound"}, | ||||
| {8, "SURROUND71", 0, "7.1 Surround", "Set audio channels to 7.1 surround sound"}, | {8, "SURROUND71", 0, "7.1 Surround", "Set audio channels to 7.1 surround sound"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static const EnumPropertyItem draw_method_items[] = { | |||||
| {USER_DRAW_AUTOMATIC, "AUTOMATIC", 0, "Automatic", "Automatically set based on graphics card and driver"}, | |||||
| {USER_DRAW_TRIPLE, "TRIPLE_BUFFER", 0, "Triple Buffer", | |||||
| "Use a third buffer for minimal redraws at the cost of more memory"}, | |||||
| {USER_DRAW_OVERLAP, "OVERLAP", 0, "Overlap", | |||||
| "Redraw all overlapping regions, minimal memory usage but more redraws"}, | |||||
| {USER_DRAW_OVERLAP_FLIP, "OVERLAP_FLIP", 0, "Overlap Flip", | |||||
| "Redraw all overlapping regions, minimal memory usage but more redraws " | |||||
| "(for graphics drivers that do flipping)"}, | |||||
| {USER_DRAW_FULL, "FULL", 0, "Full", | |||||
| "Do a full redraw each time, slow, only use for reference or when everything else fails"}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| static const EnumPropertyItem color_picker_types[] = { | static const EnumPropertyItem color_picker_types[] = { | ||||
| {USER_CP_CIRCLE_HSV, "CIRCLE_HSV", 0, "Circle (HSV)", "A circular Hue/Saturation color wheel, with Value slider"}, | {USER_CP_CIRCLE_HSV, "CIRCLE_HSV", 0, "Circle (HSV)", "A circular Hue/Saturation color wheel, with Value slider"}, | ||||
| {USER_CP_CIRCLE_HSL, "CIRCLE_HSL", 0, "Circle (HSL)", "A circular Hue/Saturation color wheel, with Lightness slider"}, | {USER_CP_CIRCLE_HSL, "CIRCLE_HSL", 0, "Circle (HSL)", "A circular Hue/Saturation color wheel, with Lightness slider"}, | ||||
| {USER_CP_SQUARE_SV, "SQUARE_SV", 0, "Square (SV + H)", "A square showing Saturation/Value, with Hue slider"}, | {USER_CP_SQUARE_SV, "SQUARE_SV", 0, "Square (SV + H)", "A square showing Saturation/Value, with Hue slider"}, | ||||
| {USER_CP_SQUARE_HS, "SQUARE_HS", 0, "Square (HS + V)", "A square showing Hue/Saturation, with Value slider"}, | {USER_CP_SQUARE_HS, "SQUARE_HS", 0, "Square (HS + V)", "A square showing Hue/Saturation, with Value slider"}, | ||||
| {USER_CP_SQUARE_HV, "SQUARE_HV", 0, "Square (HV + S)", "A square showing Hue/Value, with Saturation slider"}, | {USER_CP_SQUARE_HV, "SQUARE_HV", 0, "Square (HV + S)", "A square showing Hue/Value, with Saturation slider"}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, "Texture Time Out", | ||||
| "(set to 0 to keep textures allocated)"); | "(set to 0 to keep textures allocated)"); | ||||
| prop = RNA_def_property(srna, "texture_collection_rate", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "texture_collection_rate", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "texcollectrate"); | RNA_def_property_int_sdna(prop, NULL, "texcollectrate"); | ||||
| RNA_def_property_range(prop, 1, 3600); | RNA_def_property_range(prop, 1, 3600); | ||||
| RNA_def_property_ui_text(prop, "Texture Collection Rate", | RNA_def_property_ui_text(prop, "Texture Collection Rate", | ||||
| "Number of seconds between each run of the GL texture garbage collector"); | "Number of seconds between each run of the GL texture garbage collector"); | ||||
| prop = RNA_def_property(srna, "window_draw_method", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "wmdrawmethod"); | |||||
| RNA_def_property_enum_items(prop, draw_method_items); | |||||
| RNA_def_property_ui_text(prop, "Window Draw Method", "Drawing method used by the window manager"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| prop = RNA_def_property(srna, "audio_mixing_buffer", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "audio_mixing_buffer", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "mixbufsize"); | RNA_def_property_enum_sdna(prop, NULL, "mixbufsize"); | ||||
| RNA_def_property_enum_items(prop, audio_mixing_samples_items); | RNA_def_property_enum_items(prop, audio_mixing_samples_items); | ||||
| RNA_def_property_ui_text(prop, "Audio Mixing Buffer", "Number of samples used by the audio mixing buffer"); | RNA_def_property_ui_text(prop, "Audio Mixing Buffer", "Number of samples used by the audio mixing buffer"); | ||||
| RNA_def_property_update(prop, 0, "rna_UserDef_audio_update"); | RNA_def_property_update(prop, 0, "rna_UserDef_audio_update"); | ||||
| prop = RNA_def_property(srna, "audio_device", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "audio_device", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "audiodevice"); | RNA_def_property_enum_sdna(prop, NULL, "audiodevice"); | ||||
| ▲ Show 20 Lines • Show All 620 Lines • Show Last 20 Lines | |||||