Draw a sphere: Difference between revisions

Content added Content deleted
mNo edit summary
Line 5,800: Line 5,800:
Graphical
Graphical
<syntaxhighlight lang="Zig">
<syntaxhighlight lang="Zig">
module main

import gg
import gg
import gx
import gx
Line 5,813: Line 5,811:
mut:
mut:
gg &gg.Context = unsafe {nil}
gg &gg.Context = unsafe {nil}
image int
}
}


Line 5,828: Line 5,825:
frame_fn: frame
frame_fn: frame
user_data: app
user_data: app
init_fn: init_images
)
)
app.gg.run()
app.gg.run()
}

fn init_images(mut app App) {
}
}