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

gg: image cache

This commit is contained in:
Alexander Medvednikov
2020-08-05 16:00:24 +02:00
parent 67aafd03c6
commit ecaccafd31
3 changed files with 46 additions and 46 deletions

View File

@ -28,11 +28,12 @@ fn main() {
user_data: app
init_fn: init_images
)
app.image = app.gg.create_image('logo.png')
app.gg.run()
}
fn init_images(mut app App) {
app.image = gg.create_image('logo.png')
//app.image = gg.create_image('logo.png')
}
fn frame(app &App) {