mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: migrate to sokol; examples: update tetris
This commit is contained in:
@@ -38,8 +38,7 @@ fn main() {
|
||||
sapp.run(&desc)
|
||||
}
|
||||
|
||||
fn init(user_data voidptr) {
|
||||
mut state := &AppState(user_data)
|
||||
fn init(state mut AppState) {
|
||||
// dont actually alocate this on the heap in real life
|
||||
gfx.setup(&C.sg_desc{
|
||||
mtl_device: sapp.metal_get_device()
|
||||
|
||||
Reference in New Issue
Block a user