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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user