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

vfmt: reformat examples/sokol/particles *.v files

This commit is contained in:
Delyan Angelov
2020-07-02 15:31:42 +03:00
parent 05e11f6336
commit 6ec86fa344
5 changed files with 74 additions and 115 deletions

View File

@@ -48,7 +48,7 @@ fn (mut a App) cleanup() {
fn (a App) run() {
title := 'V Particle Example'
desc := C.sapp_desc {
desc := C.sapp_desc{
width: a.width
height: a.height
user_data: &a
@@ -67,7 +67,7 @@ fn (a App) draw() {
}
fn init(user_data voidptr) {
desc := C.sg_desc {
desc := C.sg_desc{
mtl_device: sapp.metal_get_device()
mtl_renderpass_descriptor_cb: sapp.metal_get_renderpass_descriptor
mtl_drawable_cb: sapp.metal_get_drawable