Skip to content

Commit 3394627

Browse files
authored
Update README.md
1 parent 3a6c200 commit 3394627

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wiki/pygbag/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ If using pygame-zero (mostly untested), put `#!pgzrun` near the top of main.py.
168168
/build
169169
/dist
170170
```
171-
### Using 3D/WebGL?
172-
Add `--template noctx.tmpl` to pygbag command line if using 3D/WebGL.
171+
### Using 3D/WebGL context ?
172+
Add `--template noctx.tmpl` to pygbag command line if using 3D/WebGL ( eg Panda3D / Harfang / raylib ) or pygame.sdl2 renderer.
173+
nb: a context is either 2D (pygame) or 3D(pygame.sdl2/3D engines) you cannot switch after the mode is inited.
174+
but you can use pygame 2D inside a 3D engine at the cost of surface to gpu texture conversion+uploading.
173175

174176
### Using heightmaps?
175177
You can use `--no_opt` to prevent png recompression.

0 commit comments

Comments
 (0)