Skip to content

Commit f09b45a

Browse files
committed
update remaining examples
1 parent fa747dc commit f09b45a

File tree

2 files changed

+38
-27
lines changed

2 files changed

+38
-27
lines changed

examples/gui_direct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
import glfw
1515

1616
from wgpu.backends.wgpu_native import GPUCanvasContext
17-
from wgpu.gui.glfw import get_glfw_present_methods, poll_glfw_briefly
17+
from rendercanvas.glfw import get_glfw_present_methods, poll_glfw_briefly, enable_glfw
1818

1919
# from triangle import setup_drawing_sync
2020
from cube import setup_drawing_sync
2121

2222
# Setup glfw
23-
glfw.init()
23+
enable_glfw()
2424
atexit.register(glfw.terminate)
2525

2626

examples/wgpu-examples.ipynb

Lines changed: 36 additions & 25 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)