1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: add examples/gg/random.v demonstrating how to stream images/pixels

This commit is contained in:
Delyan Angelov
2021-06-24 17:45:14 +03:00
parent 4bfe76123a
commit b2391424d9
5 changed files with 135 additions and 5 deletions

View File

@@ -241,7 +241,9 @@ fn gg_init_sokol_window(user_data voidptr) {
}
for i in 0 .. g.image_cache.len {
g.image_cache[i].init_sokol_image()
if g.image_cache[i].simg.id == 0 {
g.image_cache[i].init_sokol_image()
}
}
}