fake-bpy-module 20240914__py3-none-any.whl → 20240916__py3-none-any.whl
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.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/__init__.pyi +2 -2
- _bpy_internal/addons/__init__.pyi +2 -2
- _bpy_internal/addons/cli/__init__.pyi +2 -2
- _bpy_internal/extensions/__init__.pyi +2 -2
- _bpy_internal/extensions/junction_module/__init__.pyi +2 -8
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +2 -6
- _bpy_internal/extensions/wheel_manager/__init__.pyi +2 -6
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/__init__.pyi +2 -2
- _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -16
- _bpy_internal/system_info/__init__.pyi +2 -2
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -2
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +2 -12
- animsys_refactor/__init__.pyi +2 -3
- aud/__init__.pyi +2 -71
- bgl/__init__.pyi +2 -526
- bl_app_override/__init__.pyi +2 -2
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +2 -4
- bl_console_utils/__init__.pyi +2 -2
- bl_console_utils/autocomplete/__init__.pyi +2 -2
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +2 -12
- bl_console_utils/autocomplete/complete_import/__init__.pyi +2 -8
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -12
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -6
- bl_i18n_utils/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +2 -6
- bl_i18n_utils/merge_po/__init__.pyi +2 -2
- bl_i18n_utils/settings/__init__.pyi +2 -6
- bl_i18n_utils/utils/__init__.pyi +2 -45
- bl_i18n_utils/utils_cli/__init__.pyi +2 -2
- bl_i18n_utils/utils_languages_menu/__init__.pyi +2 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -6
- bl_keymap_utils/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +2 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -4
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -4
- bl_keymap_utils/versioning/__init__.pyi +2 -2
- bl_math/__init__.pyi +2 -8
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +2 -8
- bl_operators/anim/__init__.pyi +2 -48
- bl_operators/assets/__init__.pyi +2 -17
- bl_operators/bmesh/__init__.pyi +2 -2
- bl_operators/bmesh/find_adjacent/__init__.pyi +2 -6
- bl_operators/bone_selection_sets/__init__.pyi +2 -46
- bl_operators/clip/__init__.pyi +2 -43
- bl_operators/connect_to_output/__init__.pyi +2 -18
- bl_operators/console/__init__.pyi +2 -22
- bl_operators/constraint/__init__.pyi +2 -18
- bl_operators/file/__init__.pyi +2 -14
- bl_operators/freestyle/__init__.pyi +2 -19
- bl_operators/geometry_nodes/__init__.pyi +2 -21
- bl_operators/image/__init__.pyi +2 -19
- bl_operators/image_as_planes/__init__.pyi +2 -43
- bl_operators/mesh/__init__.pyi +2 -15
- bl_operators/node/__init__.pyi +2 -41
- bl_operators/node_editor/__init__.pyi +2 -2
- bl_operators/node_editor/node_functions/__init__.pyi +2 -3
- bl_operators/object/__init__.pyi +2 -63
- bl_operators/object_align/__init__.pyi +2 -6
- bl_operators/object_quick_effects/__init__.pyi +2 -18
- bl_operators/object_randomize_transform/__init__.pyi +2 -6
- bl_operators/presets/__init__.pyi +2 -70
- bl_operators/rigidbody/__init__.pyi +2 -15
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -5
- bl_operators/sequencer/__init__.pyi +2 -36
- bl_operators/spreadsheet/__init__.pyi +2 -8
- bl_operators/userpref/__init__.pyi +2 -93
- bl_operators/uvcalc_follow_active/__init__.pyi +2 -7
- bl_operators/uvcalc_lightmap/__init__.pyi +2 -11
- bl_operators/uvcalc_transform/__init__.pyi +2 -19
- bl_operators/vertexpaint_dirt/__init__.pyi +2 -6
- bl_operators/view3d/__init__.pyi +2 -37
- bl_operators/wm/__init__.pyi +2 -168
- bl_operators/world/__init__.pyi +2 -6
- bl_previews_utils/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +2 -2
- bl_rna_utils/__init__.pyi +2 -2
- bl_rna_utils/data_path/__init__.pyi +2 -6
- bl_text_utils/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +2 -2
- bl_ui/__init__.pyi +2 -11
- bl_ui/anim/__init__.pyi +2 -5
- bl_ui/asset_shelf/__init__.pyi +2 -6
- bl_ui/generic_ui_list/__init__.pyi +2 -16
- bl_ui/node_add_menu/__init__.pyi +2 -11
- bl_ui/node_add_menu_compositor/__init__.pyi +2 -53
- bl_ui/node_add_menu_geometry/__init__.pyi +2 -152
- bl_ui/node_add_menu_shader/__init__.pyi +2 -31
- bl_ui/node_add_menu_texture/__init__.pyi +2 -29
- bl_ui/properties_animviz/__init__.pyi +2 -4
- bl_ui/properties_collection/__init__.pyi +2 -20
- bl_ui/properties_constraint/__init__.pyi +2 -288
- bl_ui/properties_data_armature/__init__.pyi +2 -60
- bl_ui/properties_data_bone/__init__.pyi +2 -42
- bl_ui/properties_data_camera/__init__.pyi +2 -51
- bl_ui/properties_data_curve/__init__.pyi +2 -58
- bl_ui/properties_data_curves/__init__.pyi +2 -24
- bl_ui/properties_data_empty/__init__.pyi +2 -10
- bl_ui/properties_data_gpencil/__init__.pyi +2 -57
- bl_ui/properties_data_grease_pencil/__init__.pyi +2 -49
- bl_ui/properties_data_lattice/__init__.pyi +2 -14
- bl_ui/properties_data_light/__init__.pyi +2 -50
- bl_ui/properties_data_lightprobe/__init__.pyi +2 -48
- bl_ui/properties_data_mesh/__init__.pyi +2 -69
- bl_ui/properties_data_metaball/__init__.pyi +2 -20
- bl_ui/properties_data_modifier/__init__.pyi +2 -36
- bl_ui/properties_data_pointcloud/__init__.pyi +2 -19
- bl_ui/properties_data_shaderfx/__init__.pyi +2 -5
- bl_ui/properties_data_speaker/__init__.pyi +2 -19
- bl_ui/properties_data_volume/__init__.pyi +2 -29
- bl_ui/properties_freestyle/__init__.pyi +2 -98
- bl_ui/properties_grease_pencil_common/__init__.pyi +2 -74
- bl_ui/properties_mask_common/__init__.pyi +2 -37
- bl_ui/properties_material/__init__.pyi +2 -59
- bl_ui/properties_material_gpencil/__init__.pyi +2 -36
- bl_ui/properties_object/__init__.pyi +2 -52
- bl_ui/properties_output/__init__.pyi +2 -65
- bl_ui/properties_paint_common/__init__.pyi +2 -41
- bl_ui/properties_particle/__init__.pyi +2 -205
- bl_ui/properties_physics_cloth/__init__.pyi +2 -49
- bl_ui/properties_physics_common/__init__.pyi +2 -6
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2 -103
- bl_ui/properties_physics_field/__init__.pyi +2 -44
- bl_ui/properties_physics_fluid/__init__.pyi +2 -134
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -7
- bl_ui/properties_physics_rigidbody/__init__.pyi +2 -35
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2 -57
- bl_ui/properties_physics_softbody/__init__.pyi +2 -52
- bl_ui/properties_render/__init__.pyi +2 -220
- bl_ui/properties_scene/__init__.pyi +2 -55
- bl_ui/properties_texture/__init__.pyi +2 -93
- bl_ui/properties_view_layer/__init__.pyi +2 -47
- bl_ui/properties_workspace/__init__.pyi +2 -15
- bl_ui/properties_world/__init__.pyi +2 -42
- bl_ui/space_clip/__init__.pyi +2 -224
- bl_ui/space_console/__init__.pyi +2 -20
- bl_ui/space_dopesheet/__init__.pyi +2 -96
- bl_ui/space_filebrowser/__init__.pyi +2 -99
- bl_ui/space_graph/__init__.pyi +2 -62
- bl_ui/space_image/__init__.pyi +2 -211
- bl_ui/space_info/__init__.pyi +2 -20
- bl_ui/space_nla/__init__.pyi +2 -54
- bl_ui/space_node/__init__.pyi +2 -100
- bl_ui/space_outliner/__init__.pyi +2 -48
- bl_ui/space_properties/__init__.pyi +2 -14
- bl_ui/space_sequencer/__init__.pyi +2 -280
- bl_ui/space_spreadsheet/__init__.pyi +2 -11
- bl_ui/space_statusbar/__init__.pyi +2 -5
- bl_ui/space_text/__init__.pyi +2 -51
- bl_ui/space_time/__init__.pyi +2 -27
- bl_ui/space_toolsystem_common/__init__.pyi +2 -13
- bl_ui/space_toolsystem_toolbar/__init__.pyi +2 -36
- bl_ui/space_topbar/__init__.pyi +2 -86
- bl_ui/space_userpref/__init__.pyi +2 -313
- bl_ui/space_view3d/__init__.pyi +2 -881
- bl_ui/space_view3d_toolbar/__init__.pyi +2 -344
- bl_ui/utils/__init__.pyi +2 -5
- bl_ui_utils/__init__.pyi +2 -2
- bl_ui_utils/layout/__init__.pyi +2 -4
- blend_render_info/__init__.pyi +2 -4
- blf/__init__.pyi +2 -32
- bmesh/__init__.pyi +2 -8
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +2 -162
- bmesh/types/__init__.pyi +19 -133
- bmesh/utils/__init__.pyi +2 -28
- bpy/__init__.pyi +2 -2
- bpy/app/__init__.pyi +2 -6
- bpy/app/handlers/__init__.pyi +2 -2
- bpy/app/icons/__init__.pyi +2 -8
- bpy/app/timers/__init__.pyi +2 -8
- bpy/app/translations/__init__.pyi +2 -20
- bpy/msgbus/__init__.pyi +2 -8
- bpy/ops/__init__.pyi +2 -2
- bpy/ops/action/__init__.pyi +15 -110
- bpy/ops/anim/__init__.pyi +2 -118
- bpy/ops/armature/__init__.pyi +2 -98
- bpy/ops/asset/__init__.pyi +2 -34
- bpy/ops/boid/__init__.pyi +5 -30
- bpy/ops/brush/__init__.pyi +5 -31
- bpy/ops/buttons/__init__.pyi +2 -14
- bpy/ops/cachefile/__init__.pyi +2 -12
- bpy/ops/camera/__init__.pyi +2 -6
- bpy/ops/clip/__init__.pyi +5 -188
- bpy/ops/cloth/__init__.pyi +2 -4
- bpy/ops/collection/__init__.pyi +2 -20
- bpy/ops/console/__init__.pyi +2 -44
- bpy/ops/constraint/__init__.pyi +2 -38
- bpy/ops/curve/__init__.pyi +7 -143
- bpy/ops/curves/__init__.pyi +11 -64
- bpy/ops/cycles/__init__.pyi +2 -8
- bpy/ops/dpaint/__init__.pyi +5 -14
- bpy/ops/ed/__init__.pyi +2 -26
- bpy/ops/export_anim/__init__.pyi +2 -4
- bpy/ops/export_scene/__init__.pyi +2 -6
- bpy/ops/extensions/__init__.pyi +2 -70
- bpy/ops/file/__init__.pyi +2 -82
- bpy/ops/fluid/__init__.pyi +2 -30
- bpy/ops/font/__init__.pyi +2 -48
- bpy/ops/geometry/__init__.pyi +21 -75
- bpy/ops/gizmogroup/__init__.pyi +2 -6
- bpy/ops/gpencil/__init__.pyi +2 -286
- bpy/ops/graph/__init__.pyi +19 -213
- bpy/ops/grease_pencil/__init__.pyi +9 -196
- bpy/ops/image/__init__.pyi +11 -111
- bpy/ops/import_anim/__init__.pyi +2 -4
- bpy/ops/import_curve/__init__.pyi +2 -4
- bpy/ops/import_scene/__init__.pyi +2 -6
- bpy/ops/info/__init__.pyi +2 -16
- bpy/ops/lattice/__init__.pyi +5 -20
- bpy/ops/marker/__init__.pyi +2 -24
- bpy/ops/mask/__init__.pyi +2 -80
- bpy/ops/material/__init__.pyi +2 -8
- bpy/ops/mball/__init__.pyi +2 -18
- bpy/ops/mesh/__init__.pyi +45 -467
- bpy/ops/nla/__init__.pyi +5 -92
- bpy/ops/node/__init__.pyi +5 -215
- bpy/ops/object/__init__.pyi +73 -870
- bpy/ops/outliner/__init__.pyi +7 -200
- bpy/ops/paint/__init__.pyi +9 -116
- bpy/ops/paintcurve/__init__.pyi +2 -18
- bpy/ops/palette/__init__.pyi +2 -16
- bpy/ops/particle/__init__.pyi +2 -74
- bpy/ops/pose/__init__.pyi +15 -180
- bpy/ops/poselib/__init__.pyi +2 -20
- bpy/ops/preferences/__init__.pyi +2 -72
- bpy/ops/ptcache/__init__.pyi +2 -16
- bpy/ops/render/__init__.pyi +2 -28
- bpy/ops/rigidbody/__init__.pyi +11 -56
- bpy/ops/scene/__init__.pyi +11 -131
- bpy/ops/screen/__init__.pyi +9 -142
- bpy/ops/script/__init__.pyi +2 -8
- bpy/ops/sculpt/__init__.pyi +2 -74
- bpy/ops/sculpt_curves/__init__.pyi +2 -10
- bpy/ops/sequencer/__init__.pyi +5 -194
- bpy/ops/sound/__init__.pyi +5 -21
- bpy/ops/spreadsheet/__init__.pyi +2 -10
- bpy/ops/surface/__init__.pyi +2 -14
- bpy/ops/text/__init__.pyi +2 -88
- bpy/ops/text_editor/__init__.pyi +2 -4
- bpy/ops/texture/__init__.pyi +2 -10
- bpy/ops/transform/__init__.pyi +75 -400
- bpy/ops/ui/__init__.pyi +2 -68
- bpy/ops/uilist/__init__.pyi +2 -8
- bpy/ops/uv/__init__.pyi +5 -102
- bpy/ops/view2d/__init__.pyi +2 -30
- bpy/ops/view3d/__init__.pyi +2 -136
- bpy/ops/wm/__init__.pyi +17 -259
- bpy/ops/workspace/__init__.pyi +2 -16
- bpy/ops/world/__init__.pyi +2 -6
- bpy/path/__init__.pyi +2 -28
- bpy/props/__init__.pyi +2 -24
- bpy/types/__init__.pyi +1937 -31353
- bpy/typing/__init__.pyi +2490 -0
- bpy/utils/__init__.pyi +4 -74
- bpy/utils/previews/__init__.pyi +2 -10
- bpy/utils/units/__init__.pyi +2 -6
- bpy_extras/__init__.pyi +2 -2
- bpy_extras/anim_utils/__init__.pyi +2 -17
- bpy_extras/asset_utils/__init__.pyi +2 -5
- bpy_extras/bmesh_utils/__init__.pyi +2 -4
- bpy_extras/id_map_utils/__init__.pyi +2 -8
- bpy_extras/image_utils/__init__.pyi +2 -4
- bpy_extras/io_utils/__init__.pyi +2 -23
- bpy_extras/keyconfig_utils/__init__.pyi +2 -6
- bpy_extras/mesh_utils/__init__.pyi +2 -16
- bpy_extras/node_shader_utils/__init__.pyi +2 -23
- bpy_extras/node_utils/__init__.pyi +2 -6
- bpy_extras/object_utils/__init__.pyi +2 -15
- bpy_extras/view3d_utils/__init__.pyi +2 -10
- bpy_extras/wm_utils/__init__.pyi +2 -2
- bpy_extras/wm_utils/progress_report/__init__.pyi +2 -10
- bpy_restrict_state/__init__.pyi +2 -2
- bpy_types/__init__.pyi +2 -5
- console_python/__init__.pyi +2 -4
- console_shell/__init__.pyi +2 -2
- {fake_bpy_module-20240914.dist-info → fake_bpy_module-20240916.dist-info}/METADATA +1 -1
- fake_bpy_module-20240916.dist-info/RECORD +365 -0
- {fake_bpy_module-20240914.dist-info → fake_bpy_module-20240916.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +2 -2
- freestyle/chainingiterators/__init__.pyi +2 -25
- freestyle/functions/__init__.pyi +2 -109
- freestyle/predicates/__init__.pyi +2 -30
- freestyle/shaders/__init__.pyi +2 -77
- freestyle/types/__init__.pyi +2 -192
- freestyle/utils/ContextFunctions/__init__.pyi +2 -20
- freestyle/utils/__init__.pyi +5 -51
- gpu/__init__.pyi +2 -2
- gpu/capabilities/__init__.pyi +2 -40
- gpu/matrix/__init__.pyi +2 -36
- gpu/platform/__init__.pyi +2 -12
- gpu/select/__init__.pyi +2 -4
- gpu/shader/__init__.pyi +2 -8
- gpu/state/__init__.pyi +2 -42
- gpu/texture/__init__.pyi +2 -4
- gpu/types/__init__.pyi +2 -54
- gpu_extras/__init__.pyi +2 -2
- gpu_extras/batch/__init__.pyi +2 -4
- gpu_extras/presets/__init__.pyi +2 -6
- graphviz_export/__init__.pyi +2 -2
- idprop/__init__.pyi +2 -2
- idprop/types/__init__.pyi +2 -11
- imbuf/__init__.pyi +2 -8
- imbuf/types/__init__.pyi +2 -6
- keyingsets_builtins/__init__.pyi +2 -70
- keyingsets_utils/__init__.pyi +2 -2
- mathutils/__init__.pyi +38 -228
- mathutils/bvhtree/__init__.pyi +2 -10
- mathutils/geometry/__init__.pyi +2 -54
- mathutils/interpolate/__init__.pyi +2 -4
- mathutils/kdtree/__init__.pyi +2 -8
- mathutils/noise/__init__.pyi +2 -36
- nodeitems_builtins/__init__.pyi +2 -4
- nodeitems_utils/__init__.pyi +2 -4
- rna_info/__init__.pyi +2 -7
- rna_keymap_ui/__init__.pyi +2 -2
- rna_prop_ui/__init__.pyi +2 -6
- rna_xml/__init__.pyi +2 -2
- fake_bpy_module-20240914.dist-info/RECORD +0 -364
- {fake_bpy_module-20240914.dist-info → fake_bpy_module-20240916.dist-info}/top_level.txt +0 -0
gpu/state/__init__.pyi
CHANGED
|
@@ -7,14 +7,12 @@ import typing
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import typing_extensions
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
11
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
12
12
|
|
|
13
13
|
def blend_get():
|
|
14
14
|
"""Current blending equation."""
|
|
15
15
|
|
|
16
|
-
...
|
|
17
|
-
|
|
18
16
|
def blend_set(mode: str):
|
|
19
17
|
"""Defines the fixed pipeline blending equation.
|
|
20
18
|
|
|
@@ -30,8 +28,6 @@ def blend_set(mode: str):
|
|
|
30
28
|
:type mode: str
|
|
31
29
|
"""
|
|
32
30
|
|
|
33
|
-
...
|
|
34
|
-
|
|
35
31
|
def clip_distances_set(distances_enabled: int):
|
|
36
32
|
"""Sets the number of gl_ClipDistance planes used for clip geometry.
|
|
37
33
|
|
|
@@ -39,8 +35,6 @@ def clip_distances_set(distances_enabled: int):
|
|
|
39
35
|
:type distances_enabled: int
|
|
40
36
|
"""
|
|
41
37
|
|
|
42
|
-
...
|
|
43
|
-
|
|
44
38
|
def color_mask_set(r: bool, g, b, a):
|
|
45
39
|
"""Enable or disable writing of frame buffer color components.
|
|
46
40
|
|
|
@@ -48,26 +42,18 @@ def color_mask_set(r: bool, g, b, a):
|
|
|
48
42
|
:type r: bool
|
|
49
43
|
"""
|
|
50
44
|
|
|
51
|
-
...
|
|
52
|
-
|
|
53
45
|
def depth_mask_get():
|
|
54
46
|
"""Writing status in the depth component."""
|
|
55
47
|
|
|
56
|
-
...
|
|
57
|
-
|
|
58
48
|
def depth_mask_set(value):
|
|
59
49
|
"""Write to depth component.
|
|
60
50
|
|
|
61
51
|
:param value: True for writing to the depth component.
|
|
62
52
|
"""
|
|
63
53
|
|
|
64
|
-
...
|
|
65
|
-
|
|
66
54
|
def depth_test_get():
|
|
67
55
|
"""Current depth_test equation."""
|
|
68
56
|
|
|
69
|
-
...
|
|
70
|
-
|
|
71
57
|
def depth_test_set(mode: str):
|
|
72
58
|
"""Defines the depth_test equation.
|
|
73
59
|
|
|
@@ -76,44 +62,30 @@ def depth_test_set(mode: str):
|
|
|
76
62
|
:type mode: str
|
|
77
63
|
"""
|
|
78
64
|
|
|
79
|
-
...
|
|
80
|
-
|
|
81
65
|
def face_culling_set(culling):
|
|
82
66
|
"""Specify whether none, front-facing or back-facing facets can be culled."""
|
|
83
67
|
|
|
84
|
-
...
|
|
85
|
-
|
|
86
68
|
def framebuffer_active_get(enable):
|
|
87
69
|
"""Return the active frame-buffer in context."""
|
|
88
70
|
|
|
89
|
-
...
|
|
90
|
-
|
|
91
71
|
def front_facing_set(invert):
|
|
92
72
|
"""Specifies the orientation of front-facing polygons.
|
|
93
73
|
|
|
94
74
|
:param invert: True for clockwise polygons as front-facing.
|
|
95
75
|
"""
|
|
96
76
|
|
|
97
|
-
...
|
|
98
|
-
|
|
99
77
|
def line_width_get():
|
|
100
78
|
"""Current width of rasterized lines."""
|
|
101
79
|
|
|
102
|
-
...
|
|
103
|
-
|
|
104
80
|
def line_width_set(width):
|
|
105
81
|
"""Specify the width of rasterized lines."""
|
|
106
82
|
|
|
107
|
-
...
|
|
108
|
-
|
|
109
83
|
def point_size_set(size):
|
|
110
84
|
"""Specify the diameter of rasterized points.
|
|
111
85
|
|
|
112
86
|
:param size: New diameter.
|
|
113
87
|
"""
|
|
114
88
|
|
|
115
|
-
...
|
|
116
|
-
|
|
117
89
|
def program_point_size_set(enable: bool):
|
|
118
90
|
"""If enabled, the derived point size is taken from the (potentially clipped) shader builtin gl_PointSize.
|
|
119
91
|
|
|
@@ -121,8 +93,6 @@ def program_point_size_set(enable: bool):
|
|
|
121
93
|
:type enable: bool
|
|
122
94
|
"""
|
|
123
95
|
|
|
124
|
-
...
|
|
125
|
-
|
|
126
96
|
def scissor_get() -> int:
|
|
127
97
|
"""Retrieve the scissors of the active framebuffer.
|
|
128
98
|
Note: Only valid between 'scissor_set' and a framebuffer rebind.
|
|
@@ -134,8 +104,6 @@ def scissor_get() -> int:
|
|
|
134
104
|
:rtype: int
|
|
135
105
|
"""
|
|
136
106
|
|
|
137
|
-
...
|
|
138
|
-
|
|
139
107
|
def scissor_set(x: int, y, xsize: int, ysize):
|
|
140
108
|
"""Specifies the scissor area of the active framebuffer.
|
|
141
109
|
Note: The scissor state is not saved upon framebuffer rebind.
|
|
@@ -146,8 +114,6 @@ def scissor_set(x: int, y, xsize: int, ysize):
|
|
|
146
114
|
:type xsize: int
|
|
147
115
|
"""
|
|
148
116
|
|
|
149
|
-
...
|
|
150
|
-
|
|
151
117
|
def scissor_test_set(enable: bool):
|
|
152
118
|
"""Enable/disable scissor testing on the active framebuffer.
|
|
153
119
|
|
|
@@ -156,13 +122,9 @@ def scissor_test_set(enable: bool):
|
|
|
156
122
|
:type enable: bool
|
|
157
123
|
"""
|
|
158
124
|
|
|
159
|
-
...
|
|
160
|
-
|
|
161
125
|
def viewport_get():
|
|
162
126
|
"""Viewport of the active framebuffer."""
|
|
163
127
|
|
|
164
|
-
...
|
|
165
|
-
|
|
166
128
|
def viewport_set(x: int, y, xsize: int, ysize):
|
|
167
129
|
"""Specifies the viewport of the active framebuffer.
|
|
168
130
|
Note: The viewport state is not saved upon framebuffer rebind.
|
|
@@ -172,5 +134,3 @@ def viewport_set(x: int, y, xsize: int, ysize):
|
|
|
172
134
|
:param xsize: width and height of the viewport_set.
|
|
173
135
|
:type xsize: int
|
|
174
136
|
"""
|
|
175
|
-
|
|
176
|
-
...
|
gpu/texture/__init__.pyi
CHANGED
|
@@ -9,8 +9,8 @@ import typing_extensions
|
|
|
9
9
|
import bpy.types
|
|
10
10
|
import gpu.types
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
13
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
14
14
|
|
|
15
15
|
def from_image(image: bpy.types.Image) -> gpu.types.GPUTexture:
|
|
16
16
|
"""Get GPUTexture corresponding to an Image datablock. The GPUTexture memory is shared with Blender.
|
|
@@ -21,5 +21,3 @@ def from_image(image: bpy.types.Image) -> gpu.types.GPUTexture:
|
|
|
21
21
|
:return: The GPUTexture used by the image.
|
|
22
22
|
:rtype: gpu.types.GPUTexture
|
|
23
23
|
"""
|
|
24
|
-
|
|
25
|
-
...
|
gpu/types/__init__.pyi
CHANGED
|
@@ -4,8 +4,8 @@ import typing_extensions
|
|
|
4
4
|
import bpy.types
|
|
5
5
|
import mathutils
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
8
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
9
9
|
|
|
10
10
|
class Buffer:
|
|
11
11
|
"""For Python access to GPU functions requiring a pointer.return the buffer as a list"""
|
|
@@ -23,7 +23,6 @@ class GPUBatch:
|
|
|
23
23
|
If None is passed, the last program set to this batch will run.
|
|
24
24
|
:type program: GPUShader
|
|
25
25
|
"""
|
|
26
|
-
...
|
|
27
26
|
|
|
28
27
|
def draw_instanced(
|
|
29
28
|
self, program: GPUShader, *, instance_start: int = 0, instance_count: int = 0
|
|
@@ -41,7 +40,6 @@ class GPUBatch:
|
|
|
41
40
|
vertex buffer.
|
|
42
41
|
:type instance_count: int
|
|
43
42
|
"""
|
|
44
|
-
...
|
|
45
43
|
|
|
46
44
|
def draw_range(
|
|
47
45
|
self, program: GPUShader, *, elem_start: int = 0, elem_count: int = 0
|
|
@@ -59,7 +57,6 @@ class GPUBatch:
|
|
|
59
57
|
index buffer will be drawn.
|
|
60
58
|
:type elem_count: int
|
|
61
59
|
"""
|
|
62
|
-
...
|
|
63
60
|
|
|
64
61
|
def program_set(self, program: GPUShader):
|
|
65
62
|
"""Assign a shader to this batch that will be used for drawing when not overwritten later.
|
|
@@ -70,7 +67,6 @@ class GPUBatch:
|
|
|
70
67
|
:param program: The program/shader the batch will use in future draw calls.
|
|
71
68
|
:type program: GPUShader
|
|
72
69
|
"""
|
|
73
|
-
...
|
|
74
70
|
|
|
75
71
|
def vertbuf_add(self, buf: GPUVertBuf):
|
|
76
72
|
"""Add another vertex buffer to the Batch.
|
|
@@ -83,7 +79,6 @@ class GPUBatch:
|
|
|
83
79
|
:param buf: The vertex buffer that will be added to the batch.
|
|
84
80
|
:type buf: GPUVertBuf
|
|
85
81
|
"""
|
|
86
|
-
...
|
|
87
82
|
|
|
88
83
|
class GPUFrameBuffer:
|
|
89
84
|
"""This object gives access to framebuffer functionalities.
|
|
@@ -96,7 +91,6 @@ class GPUFrameBuffer:
|
|
|
96
91
|
|
|
97
92
|
def bind(self):
|
|
98
93
|
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
99
|
-
...
|
|
100
94
|
|
|
101
95
|
def clear(self, color=None, depth: float = None, stencil: int = None):
|
|
102
96
|
"""Fill color, depth and stencil textures with specific value.
|
|
@@ -108,7 +102,6 @@ class GPUFrameBuffer:
|
|
|
108
102
|
:param stencil: stencil value.
|
|
109
103
|
:type stencil: int
|
|
110
104
|
"""
|
|
111
|
-
...
|
|
112
105
|
|
|
113
106
|
def read_color(
|
|
114
107
|
self,
|
|
@@ -140,7 +133,6 @@ class GPUFrameBuffer:
|
|
|
140
133
|
:return: The Buffer with the read pixels.
|
|
141
134
|
:rtype: Buffer
|
|
142
135
|
"""
|
|
143
|
-
...
|
|
144
136
|
|
|
145
137
|
def read_depth(self, x: int, y, xsize: int, ysize, data: Buffer = data) -> Buffer:
|
|
146
138
|
"""Read a pixel depth block from the frame buffer.
|
|
@@ -156,11 +148,9 @@ class GPUFrameBuffer:
|
|
|
156
148
|
:return: The Buffer with the read pixels.
|
|
157
149
|
:rtype: Buffer
|
|
158
150
|
"""
|
|
159
|
-
...
|
|
160
151
|
|
|
161
152
|
def viewport_get(self):
|
|
162
153
|
"""Returns position and dimension to current viewport."""
|
|
163
|
-
...
|
|
164
154
|
|
|
165
155
|
def viewport_set(self, x: int, y, xsize: int, ysize):
|
|
166
156
|
"""Set the viewport for this framebuffer object.
|
|
@@ -173,13 +163,10 @@ class GPUFrameBuffer:
|
|
|
173
163
|
:type xsize: int
|
|
174
164
|
:param ysize:
|
|
175
165
|
"""
|
|
176
|
-
...
|
|
177
166
|
|
|
178
167
|
class GPUIndexBuf:
|
|
179
168
|
"""Contains an index buffer."""
|
|
180
169
|
|
|
181
|
-
...
|
|
182
|
-
|
|
183
170
|
class GPUOffScreen:
|
|
184
171
|
"""This object gives access to off screen buffers."""
|
|
185
172
|
|
|
@@ -209,7 +196,6 @@ class GPUOffScreen:
|
|
|
209
196
|
|
|
210
197
|
def bind(self):
|
|
211
198
|
"""Context manager to ensure balanced bind calls, even in the case of an error."""
|
|
212
|
-
...
|
|
213
199
|
|
|
214
200
|
def draw_view3d(
|
|
215
201
|
self,
|
|
@@ -243,14 +229,12 @@ class GPUOffScreen:
|
|
|
243
229
|
:param draw_background: Draw background.
|
|
244
230
|
:type draw_background: bool
|
|
245
231
|
"""
|
|
246
|
-
...
|
|
247
232
|
|
|
248
233
|
def free(self):
|
|
249
234
|
"""Free the offscreen object.
|
|
250
235
|
The framebuffer, texture and render objects will no longer be accessible.
|
|
251
236
|
|
|
252
237
|
"""
|
|
253
|
-
...
|
|
254
238
|
|
|
255
239
|
def unbind(self, restore: bool = True):
|
|
256
240
|
"""Unbind the offscreen object.
|
|
@@ -258,7 +242,6 @@ class GPUOffScreen:
|
|
|
258
242
|
:param restore: Restore the OpenGL state, can only be used when the state has been saved before.
|
|
259
243
|
:type restore: bool
|
|
260
244
|
"""
|
|
261
|
-
...
|
|
262
245
|
|
|
263
246
|
class GPUShader:
|
|
264
247
|
"""GPUShader combines multiple GLSL shaders into a program used for drawing.
|
|
@@ -291,7 +274,6 @@ class GPUShader:
|
|
|
291
274
|
:return: The location of an attribute variable.
|
|
292
275
|
:rtype: int
|
|
293
276
|
"""
|
|
294
|
-
...
|
|
295
277
|
|
|
296
278
|
def attrs_info_get(self) -> tuple:
|
|
297
279
|
"""Information about the attributes used in the Shader.
|
|
@@ -299,11 +281,9 @@ class GPUShader:
|
|
|
299
281
|
:return: tuples containing information about the attributes in order (name, type)
|
|
300
282
|
:rtype: tuple
|
|
301
283
|
"""
|
|
302
|
-
...
|
|
303
284
|
|
|
304
285
|
def bind(self):
|
|
305
286
|
"""Bind the shader object. Required to be able to change uniforms of this shader."""
|
|
306
|
-
...
|
|
307
287
|
|
|
308
288
|
def format_calc(self) -> GPUVertFormat:
|
|
309
289
|
"""Build a new format based on the attributes of the shader.
|
|
@@ -311,7 +291,6 @@ class GPUShader:
|
|
|
311
291
|
:return: vertex attribute format for the shader
|
|
312
292
|
:rtype: GPUVertFormat
|
|
313
293
|
"""
|
|
314
|
-
...
|
|
315
294
|
|
|
316
295
|
def image(self, name: str, texture: GPUTexture):
|
|
317
296
|
"""Specify the value of an image variable for the current GPUShader.
|
|
@@ -321,7 +300,6 @@ class GPUShader:
|
|
|
321
300
|
:param texture: Texture to attach.
|
|
322
301
|
:type texture: GPUTexture
|
|
323
302
|
"""
|
|
324
|
-
...
|
|
325
303
|
|
|
326
304
|
def uniform_block(self, name: str, ubo):
|
|
327
305
|
"""Specify the value of an uniform buffer object variable for the current GPUShader.
|
|
@@ -330,7 +308,6 @@ class GPUShader:
|
|
|
330
308
|
:type name: str
|
|
331
309
|
:param ubo: Uniform Buffer to attach.
|
|
332
310
|
"""
|
|
333
|
-
...
|
|
334
311
|
|
|
335
312
|
def uniform_block_from_name(self, name: str) -> int:
|
|
336
313
|
"""Get uniform block location by name.
|
|
@@ -340,7 +317,6 @@ class GPUShader:
|
|
|
340
317
|
:return: The location of the uniform block variable.
|
|
341
318
|
:rtype: int
|
|
342
319
|
"""
|
|
343
|
-
...
|
|
344
320
|
|
|
345
321
|
def uniform_bool(self, name: str, value: bool):
|
|
346
322
|
"""Specify the value of a uniform variable for the current program object.
|
|
@@ -350,7 +326,6 @@ class GPUShader:
|
|
|
350
326
|
:param value: Value that will be used to update the specified uniform variable.
|
|
351
327
|
:type value: bool
|
|
352
328
|
"""
|
|
353
|
-
...
|
|
354
329
|
|
|
355
330
|
def uniform_float(self, name: str, value):
|
|
356
331
|
"""Specify the value of a uniform variable for the current program object.
|
|
@@ -359,7 +334,6 @@ class GPUShader:
|
|
|
359
334
|
:type name: str
|
|
360
335
|
:param value: Value that will be used to update the specified uniform variable.
|
|
361
336
|
"""
|
|
362
|
-
...
|
|
363
337
|
|
|
364
338
|
def uniform_from_name(self, name: str) -> int:
|
|
365
339
|
"""Get uniform location by name.
|
|
@@ -369,7 +343,6 @@ class GPUShader:
|
|
|
369
343
|
:return: Location of the uniform variable.
|
|
370
344
|
:rtype: int
|
|
371
345
|
"""
|
|
372
|
-
...
|
|
373
346
|
|
|
374
347
|
def uniform_int(self, name: str, seq):
|
|
375
348
|
"""Specify the value of a uniform variable for the current program object.
|
|
@@ -378,7 +351,6 @@ class GPUShader:
|
|
|
378
351
|
:type name: str
|
|
379
352
|
:param seq: Value that will be used to update the specified uniform variable.
|
|
380
353
|
"""
|
|
381
|
-
...
|
|
382
354
|
|
|
383
355
|
def uniform_sampler(self, name: str, texture: GPUTexture):
|
|
384
356
|
"""Specify the value of a texture uniform variable for the current GPUShader.
|
|
@@ -388,7 +360,6 @@ class GPUShader:
|
|
|
388
360
|
:param texture: Texture to attach.
|
|
389
361
|
:type texture: GPUTexture
|
|
390
362
|
"""
|
|
391
|
-
...
|
|
392
363
|
|
|
393
364
|
def uniform_vector_float(
|
|
394
365
|
self, location: int, buffer: list[float], length: int, count: int
|
|
@@ -416,7 +387,6 @@ class GPUShader:
|
|
|
416
387
|
:param count: Specifies the number of elements, vector or matrices that are to be modified.
|
|
417
388
|
:type count: int
|
|
418
389
|
"""
|
|
419
|
-
...
|
|
420
390
|
|
|
421
391
|
def uniform_vector_int(self, location, buffer, length, count):
|
|
422
392
|
"""See GPUShader.uniform_vector_float(...) description.
|
|
@@ -426,7 +396,6 @@ class GPUShader:
|
|
|
426
396
|
:param length:
|
|
427
397
|
:param count:
|
|
428
398
|
"""
|
|
429
|
-
...
|
|
430
399
|
|
|
431
400
|
class GPUShaderCreateInfo:
|
|
432
401
|
"""Stores and describes types and variables that are used in shader sources."""
|
|
@@ -437,7 +406,6 @@ class GPUShaderCreateInfo:
|
|
|
437
406
|
:param source: The compute shader source code.
|
|
438
407
|
:type source: str
|
|
439
408
|
"""
|
|
440
|
-
...
|
|
441
409
|
|
|
442
410
|
def define(self, name, value):
|
|
443
411
|
"""Add a preprocessing define directive. In GLSL it would be something like:
|
|
@@ -445,7 +413,6 @@ class GPUShaderCreateInfo:
|
|
|
445
413
|
:param name:
|
|
446
414
|
:param value:
|
|
447
415
|
"""
|
|
448
|
-
...
|
|
449
416
|
|
|
450
417
|
def fragment_out(self, slot: int, type: str, name: str, blend: str = "NONE"):
|
|
451
418
|
"""Specify a fragment output corresponding to a framebuffer target slot.
|
|
@@ -489,7 +456,6 @@ class GPUShaderCreateInfo:
|
|
|
489
456
|
:param blend: Dual Source Blending Index. It can be 'NONE', 'SRC_0' or 'SRC_1'.
|
|
490
457
|
:type blend: str
|
|
491
458
|
"""
|
|
492
|
-
...
|
|
493
459
|
|
|
494
460
|
def fragment_source(self, source: str):
|
|
495
461
|
"""Fragment shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
|
|
@@ -497,7 +463,6 @@ class GPUShaderCreateInfo:
|
|
|
497
463
|
:param source: The fragment shader source code.
|
|
498
464
|
:type source: str
|
|
499
465
|
"""
|
|
500
|
-
...
|
|
501
466
|
|
|
502
467
|
def image(
|
|
503
468
|
self,
|
|
@@ -675,7 +640,6 @@ class GPUShaderCreateInfo:
|
|
|
675
640
|
- WRITE
|
|
676
641
|
:type qualifiers: set
|
|
677
642
|
"""
|
|
678
|
-
...
|
|
679
643
|
|
|
680
644
|
def local_group_size(self, x: int, y: int = -1, z: int = -1):
|
|
681
645
|
"""Specify the local group size for compute shaders.
|
|
@@ -687,7 +651,6 @@ class GPUShaderCreateInfo:
|
|
|
687
651
|
:param z: The local group size in the z dimension. Optional. Defaults to -1.
|
|
688
652
|
:type z: int
|
|
689
653
|
"""
|
|
690
|
-
...
|
|
691
654
|
|
|
692
655
|
def push_constant(self, type: str, name: str, size=0):
|
|
693
656
|
"""Specify a global access constant.
|
|
@@ -728,7 +691,6 @@ class GPUShaderCreateInfo:
|
|
|
728
691
|
:type name: str
|
|
729
692
|
:param size: If not zero, indicates that the constant is an array with the specified size.
|
|
730
693
|
"""
|
|
731
|
-
...
|
|
732
694
|
|
|
733
695
|
def sampler(self, slot: int, type: str, name: str):
|
|
734
696
|
"""Specify an image texture sampler.
|
|
@@ -804,14 +766,12 @@ class GPUShaderCreateInfo:
|
|
|
804
766
|
:param name: The image texture sampler name.
|
|
805
767
|
:type name: str
|
|
806
768
|
"""
|
|
807
|
-
...
|
|
808
769
|
|
|
809
770
|
def typedef_source(self, source):
|
|
810
771
|
"""Source code included before resource declaration. Useful for defining structs used by Uniform Buffers.Example:
|
|
811
772
|
|
|
812
773
|
:param source:
|
|
813
774
|
"""
|
|
814
|
-
...
|
|
815
775
|
|
|
816
776
|
def uniform_buf(self, slot: int, type_name: str, name: str):
|
|
817
777
|
"""Specify a uniform variable whose type can be one of those declared in typedef_source.
|
|
@@ -823,7 +783,6 @@ class GPUShaderCreateInfo:
|
|
|
823
783
|
:param name: The uniform variable name.
|
|
824
784
|
:type name: str
|
|
825
785
|
"""
|
|
826
|
-
...
|
|
827
786
|
|
|
828
787
|
def vertex_in(self, slot: int, type: str, name: str):
|
|
829
788
|
"""Add a vertex shader input attribute.
|
|
@@ -865,7 +824,6 @@ class GPUShaderCreateInfo:
|
|
|
865
824
|
:param name: name of the attribute.
|
|
866
825
|
:type name: str
|
|
867
826
|
"""
|
|
868
|
-
...
|
|
869
827
|
|
|
870
828
|
def vertex_out(self, interface: GPUStageInterfaceInfo):
|
|
871
829
|
"""Add a vertex shader output interface block.
|
|
@@ -873,7 +831,6 @@ class GPUShaderCreateInfo:
|
|
|
873
831
|
:param interface: Object describing the block.
|
|
874
832
|
:type interface: GPUStageInterfaceInfo
|
|
875
833
|
"""
|
|
876
|
-
...
|
|
877
834
|
|
|
878
835
|
def vertex_source(self, source: str):
|
|
879
836
|
"""Vertex shader source code written in GLSL.Example:`GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__
|
|
@@ -881,7 +838,6 @@ class GPUShaderCreateInfo:
|
|
|
881
838
|
:param source: The vertex shader source code.
|
|
882
839
|
:type source: str
|
|
883
840
|
"""
|
|
884
|
-
...
|
|
885
841
|
|
|
886
842
|
class GPUStageInterfaceInfo:
|
|
887
843
|
"""List of varyings between shader stages."""
|
|
@@ -930,7 +886,6 @@ class GPUStageInterfaceInfo:
|
|
|
930
886
|
:param name: name of the attribute.
|
|
931
887
|
:type name: str
|
|
932
888
|
"""
|
|
933
|
-
...
|
|
934
889
|
|
|
935
890
|
def no_perspective(self, type: str, name: str):
|
|
936
891
|
"""Add an attribute with qualifier of type no_perspective to the interface block.
|
|
@@ -970,7 +925,6 @@ class GPUStageInterfaceInfo:
|
|
|
970
925
|
:param name: name of the attribute.
|
|
971
926
|
:type name: str
|
|
972
927
|
"""
|
|
973
|
-
...
|
|
974
928
|
|
|
975
929
|
def smooth(self, type: str, name: str):
|
|
976
930
|
"""Add an attribute with qualifier of type smooth to the interface block.
|
|
@@ -1010,7 +964,6 @@ class GPUStageInterfaceInfo:
|
|
|
1010
964
|
:param name: name of the attribute.
|
|
1011
965
|
:type name: str
|
|
1012
966
|
"""
|
|
1013
|
-
...
|
|
1014
967
|
|
|
1015
968
|
class GPUTexture:
|
|
1016
969
|
"""This object gives access to off GPU textures."""
|
|
@@ -1041,11 +994,9 @@ class GPUTexture:
|
|
|
1041
994
|
:type format: str
|
|
1042
995
|
:param value: sequence each representing the value to fill.
|
|
1043
996
|
"""
|
|
1044
|
-
...
|
|
1045
997
|
|
|
1046
998
|
def read(self):
|
|
1047
999
|
"""Creates a buffer with the value of all pixels."""
|
|
1048
|
-
...
|
|
1049
1000
|
|
|
1050
1001
|
class GPUUniformBuf:
|
|
1051
1002
|
"""This object gives access to off uniform buffers."""
|
|
@@ -1055,7 +1006,6 @@ class GPUUniformBuf:
|
|
|
1055
1006
|
|
|
1056
1007
|
:param data:
|
|
1057
1008
|
"""
|
|
1058
|
-
...
|
|
1059
1009
|
|
|
1060
1010
|
class GPUVertBuf:
|
|
1061
1011
|
"""Contains a VBO."""
|
|
@@ -1068,7 +1018,6 @@ class GPUVertBuf:
|
|
|
1068
1018
|
:param data: Sequence of data that should be stored in the buffer
|
|
1069
1019
|
:type data: list[float]
|
|
1070
1020
|
"""
|
|
1071
|
-
...
|
|
1072
1021
|
|
|
1073
1022
|
class GPUVertFormat:
|
|
1074
1023
|
"""This object contains information about the structure of a vertex buffer."""
|
|
@@ -1091,4 +1040,3 @@ class GPUVertFormat:
|
|
|
1091
1040
|
Possible values are FLOAT, INT, INT_TO_FLOAT_UNIT and INT_TO_FLOAT.
|
|
1092
1041
|
:type fetch_mode: str
|
|
1093
1042
|
"""
|
|
1094
|
-
...
|
gpu_extras/__init__.pyi
CHANGED
|
@@ -13,5 +13,5 @@ import typing_extensions
|
|
|
13
13
|
from . import batch as batch
|
|
14
14
|
from . import presets as presets
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
17
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
gpu_extras/batch/__init__.pyi
CHANGED
|
@@ -3,8 +3,8 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
import gpu.types
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
7
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
8
8
|
|
|
9
9
|
def batch_for_shader(
|
|
10
10
|
shader: gpu.types.GPUShader, type: str, content: dict, *, indices=None
|
|
@@ -20,5 +20,3 @@ def batch_for_shader(
|
|
|
20
20
|
:return: compatible batch
|
|
21
21
|
:rtype: gpu.types.GPUBatch
|
|
22
22
|
"""
|
|
23
|
-
|
|
24
|
-
...
|
gpu_extras/presets/__init__.pyi
CHANGED
|
@@ -4,8 +4,8 @@ import typing_extensions
|
|
|
4
4
|
import gpu.types
|
|
5
5
|
import mathutils
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
8
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
9
9
|
|
|
10
10
|
def draw_circle_2d(
|
|
11
11
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
@@ -27,8 +27,6 @@ def draw_circle_2d(
|
|
|
27
27
|
:type segments: int | None
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
-
...
|
|
31
|
-
|
|
32
30
|
def draw_texture_2d(
|
|
33
31
|
texture: gpu.types.GPUTexture,
|
|
34
32
|
position: collections.abc.Sequence[float] | mathutils.Vector,
|
|
@@ -47,5 +45,3 @@ def draw_texture_2d(
|
|
|
47
45
|
:param height: Height of the image when drawn.
|
|
48
46
|
:type height: float
|
|
49
47
|
"""
|
|
50
|
-
|
|
51
|
-
...
|
graphviz_export/__init__.pyi
CHANGED
|
@@ -2,8 +2,8 @@ import typing
|
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
6
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
7
7
|
|
|
8
8
|
def compat_str(text, line_length=0): ...
|
|
9
9
|
def graph_armature(
|
idprop/__init__.pyi
CHANGED
|
@@ -3,5 +3,5 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
from . import types as types
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
7
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
idprop/types/__init__.pyi
CHANGED
|
@@ -2,8 +2,8 @@ import typing
|
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
_GenericType1 = typing.TypeVar("_GenericType1")
|
|
6
|
+
_GenericType2 = typing.TypeVar("_GenericType2")
|
|
7
7
|
|
|
8
8
|
class IDPropertyArray:
|
|
9
9
|
typecode: typing.Any
|
|
@@ -11,7 +11,6 @@ class IDPropertyArray:
|
|
|
11
11
|
|
|
12
12
|
def to_list(self):
|
|
13
13
|
"""Return the array as a list."""
|
|
14
|
-
...
|
|
15
14
|
|
|
16
15
|
class IDPropertyGroup:
|
|
17
16
|
name: typing.Any
|
|
@@ -19,7 +18,6 @@ class IDPropertyGroup:
|
|
|
19
18
|
|
|
20
19
|
def clear(self):
|
|
21
20
|
"""Clear all members from this group."""
|
|
22
|
-
...
|
|
23
21
|
|
|
24
22
|
def get(self, key, default=None):
|
|
25
23
|
"""Return the value for key, if it exists, else default.
|
|
@@ -27,15 +25,12 @@ class IDPropertyGroup:
|
|
|
27
25
|
:param key:
|
|
28
26
|
:param default:
|
|
29
27
|
"""
|
|
30
|
-
...
|
|
31
28
|
|
|
32
29
|
def items(self):
|
|
33
30
|
"""Iterate through the items in the dict; behaves like dictionary method items."""
|
|
34
|
-
...
|
|
35
31
|
|
|
36
32
|
def keys(self):
|
|
37
33
|
"""Return the keys associated with this group as a list of strings."""
|
|
38
|
-
...
|
|
39
34
|
|
|
40
35
|
def pop(self, key: str, default):
|
|
41
36
|
"""Remove an item from the group, returning a Python representation.
|
|
@@ -44,11 +39,9 @@ class IDPropertyGroup:
|
|
|
44
39
|
:type key: str
|
|
45
40
|
:param default: Value to return when key isn't found, otherwise raise an exception.
|
|
46
41
|
"""
|
|
47
|
-
...
|
|
48
42
|
|
|
49
43
|
def to_dict(self):
|
|
50
44
|
"""Return a purely Python version of the group."""
|
|
51
|
-
...
|
|
52
45
|
|
|
53
46
|
def update(self, other: dict | typing_extensions.Self):
|
|
54
47
|
"""Update key, values.
|
|
@@ -56,11 +49,9 @@ class IDPropertyGroup:
|
|
|
56
49
|
:param other: Updates the values in the group with this.
|
|
57
50
|
:type other: dict | typing_extensions.Self
|
|
58
51
|
"""
|
|
59
|
-
...
|
|
60
52
|
|
|
61
53
|
def values(self):
|
|
62
54
|
"""Return the values associated with this group."""
|
|
63
|
-
...
|
|
64
55
|
|
|
65
56
|
class IDPropertyGroupIterItems: ...
|
|
66
57
|
class IDPropertyGroupIterKeys: ...
|