mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix unused variable warning in examples/sokol/fonts.v
This commit is contained in:
parent
cadde3e9f0
commit
91df872c36
@ -4,7 +4,6 @@ import sokol.gfx
|
||||
import sokol.sgl
|
||||
import sokol.sfons
|
||||
import os
|
||||
import time
|
||||
|
||||
struct AppState {
|
||||
mut:
|
||||
@ -60,14 +59,12 @@ fn init(mut state AppState) {
|
||||
}
|
||||
|
||||
fn frame(user_data voidptr) {
|
||||
t := time.ticks()
|
||||
mut state := &AppState(user_data)
|
||||
state.render_font()
|
||||
gfx.begin_default_pass(&state.pass_action, sapp.width(), sapp.height())
|
||||
sgl.draw()
|
||||
gfx.end_pass()
|
||||
gfx.commit()
|
||||
// println(time.ticks()-t)
|
||||
}
|
||||
|
||||
fn (state &AppState) render_font() {
|
||||
|
Loading…
Reference in New Issue
Block a user