Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Show First 20 Lines • Show All 5,023 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 multi_sample_levels[] = { | |||||
| {USER_MULTISAMPLE_NONE, "NONE", 0, "No MultiSample", "Do not use OpenGL MultiSample"}, | |||||
| {USER_MULTISAMPLE_2, "2", 0, "MultiSample: 2", "Use 2x OpenGL MultiSample"}, | |||||
| {USER_MULTISAMPLE_4, "4", 0, "MultiSample: 4", "Use 4x OpenGL MultiSample"}, | |||||
| {USER_MULTISAMPLE_8, "8", 0, "MultiSample: 8", "Use 8x OpenGL MultiSample"}, | |||||
| {USER_MULTISAMPLE_16, "16", 0, "MultiSample: 16", "Use 16x OpenGL MultiSample"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| static const EnumPropertyItem image_draw_methods[] = { | static const EnumPropertyItem image_draw_methods[] = { | ||||
| {IMAGE_DRAW_METHOD_AUTO, | {IMAGE_DRAW_METHOD_AUTO, | ||||
| "AUTO", | "AUTO", | ||||
| 0, | 0, | ||||
| "Automatic", | "Automatic", | ||||
| "Automatically choose method based on GPU and image"}, | "Automatically choose method based on GPU and image"}, | ||||
| {IMAGE_DRAW_METHOD_2DTEXTURE, | {IMAGE_DRAW_METHOD_2DTEXTURE, | ||||
| "2DTEXTURE", | "2DTEXTURE", | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | # endif | ||||
| prop = RNA_def_property(srna, "use_edit_mode_smooth_wire", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_edit_mode_smooth_wire", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna( | RNA_def_property_boolean_negative_sdna( | ||||
| prop, NULL, "gpu_flag", USER_GPU_FLAG_NO_EDIT_MODE_SMOOTH_WIRE); | prop, NULL, "gpu_flag", USER_GPU_FLAG_NO_EDIT_MODE_SMOOTH_WIRE); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Edit-Mode Smooth Wires", | "Edit-Mode Smooth Wires", | ||||
| "Enable Edit-Mode edge smoothing, reducing aliasing, requires restart"); | "Enable Edit-Mode edge smoothing, reducing aliasing, requires restart"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | ||||
| /* grease pencil anti-aliasing */ | |||||
| prop = RNA_def_property(srna, "gpencil_multi_sample", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_multisamples"); | |||||
| RNA_def_property_enum_items(prop, multi_sample_levels); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Gpencil MultiSample", | |||||
| "Enable Grease Pencil OpenGL multi-sampling, only for systems that support it"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | |||||
| prop = RNA_def_property(srna, "use_region_overlap", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_region_overlap", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uiflag2", USER_REGION_OVERLAP); | RNA_def_property_boolean_sdna(prop, NULL, "uiflag2", USER_REGION_OVERLAP); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Region Overlap", "Draw tool/property regions over the main region"); | prop, "Region Overlap", "Draw tool/property regions over the main region"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | RNA_def_property_update(prop, 0, "rna_userdef_dpi_update"); | ||||
| prop = RNA_def_property(srna, "viewport_aa", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "viewport_aa", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_userdef_viewport_aa_items); | RNA_def_property_enum_items(prop, rna_enum_userdef_viewport_aa_items); | ||||
| ▲ Show 20 Lines • Show All 952 Lines • Show Last 20 Lines | |||||