pyobjc-framework-SceneKit 11.0__cp39-cp39-macosx_10_9_universal2.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.
Binary file
SceneKit/__init__.py ADDED
@@ -0,0 +1,64 @@
1
+ """
2
+ Python mapping for the SceneKit framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import AppKit
13
+ import Quartz
14
+ import objc
15
+ from . import _metadata, _SceneKit
16
+ from ._inlines import _inline_list_
17
+
18
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
19
+ name="SceneKit",
20
+ frameworkIdentifier="com.apple.SceneKit",
21
+ frameworkPath=objc.pathForFramework(
22
+ "/System/Library/Frameworks/SceneKit.framework"
23
+ ),
24
+ globals_dict=globals(),
25
+ inline_list=_inline_list_,
26
+ parents=(
27
+ _SceneKit,
28
+ AppKit,
29
+ Quartz,
30
+ ),
31
+ metadict=_metadata.__dict__,
32
+ )
33
+
34
+ globals()["__dir__"] = dir_func
35
+ globals()["__getattr__"] = getattr_func
36
+
37
+ for cls, sel in (("SCNAudioPlayer", b"init"),):
38
+ objc.registerUnavailableMethod(cls, sel)
39
+
40
+ del sys.modules["SceneKit._metadata"]
41
+
42
+ import SceneKit as mod # isort:skip
43
+
44
+ global SCNMatrix4Identity, SCNMatrix4MakeTranslation, SCNMatrix4MakeScale
45
+ try:
46
+ mod.SCNMatrix4Identity
47
+ except AttributeError:
48
+ # Two "inline" functions that use a symbol that is available on 10.10 or later,
49
+ # avoid crashes by removing the inline function wrappers when that symbol
50
+ # is not available.
51
+ try:
52
+ mod.SCNMatrix4MakeTranslation
53
+ del mod.SCNMatrix4MakeTranslation
54
+ except AttributeError:
55
+ pass
56
+
57
+ try:
58
+ mod.SCNMatrix4MakeScale
59
+ del mod.SCNMatrix4MakeScale
60
+ except AttributeError:
61
+ pass
62
+
63
+
64
+ globals().pop("_setup")()
Binary file