File tree 2 files changed +11
-2
lines changed
pythonforandroid/recipes/vispy
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
class VispyRecipe (PythonRecipe ):
9
- version = '0.4.0'
10
- url = 'https://github.com/vispy/vispy/archive/v{version}.tar.gz'
9
+ # version = 'v0.4.0'
10
+ version = 'master'
11
+ url = 'https://github.com/vispy/vispy/archive/{version}.tar.gz'
11
12
# version = 'campagnola-scenegraph-update'
12
13
# url = 'https://github.com/campagnola/vispy/archive/scenegraph-update.zip'
13
14
# version = '???'
@@ -25,6 +26,10 @@ def prebuild_arch(self, arch):
25
26
self .apply_patch ('disable_font_triage.patch' )
26
27
self .apply_patch ('use_es2.patch' )
27
28
self .apply_patch ('remove_ati_check.patch' )
29
+
30
+ self .apply_patch ('make_shader_es2_compliant.patch' )
31
+ self .apply_patch ('detect_finger_events.patch' )
32
+
28
33
shprint (sh .touch , join (build_dir , '.patched' ))
29
34
30
35
recipe = VispyRecipe ()
Original file line number Diff line number Diff line change 11
11
print ('imported util' )
12
12
print (ctypes .util .find_library )
13
13
14
+ import vispy
15
+ # vispy.set_log_level('debug')
16
+
14
17
import sys
15
18
from vispy import scene
16
19
from vispy .geometry .torusknot import TorusKnot
19
22
import numpy as np
20
23
21
24
canvas = scene .SceneCanvas (keys = 'interactive' , bgcolor = 'white' )
25
+ canvas .unfreeze ()
22
26
canvas .view = canvas .central_widget .add_view ()
23
27
24
28
points1 = TorusKnot (5 , 3 ).first_component [:- 1 ]
You can’t perform that action at this time.
0 commit comments