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

@@ -396,10 +396,13 @@ pub fn (i C.sg_image) free() {
C.sg_destroy_image(i)
}
pub const sg_cubeface_num = 6
pub const sg_max_mipmaps = 16
pub struct C.sg_image_data {
pub mut:
// subimage [C.SG_CUBEFACE_NUM][C.SG_MAX_MIPMAPS]C.sg_range
subimage [6][16]C.sg_range
subimage [sg_cubeface_num][sg_max_mipmaps]C.sg_range
}
pub struct C.sg_features {