examples: fix unused variable warning in examples/sokol/fonts.v
parent
cadde3e9f0
commit
91df872c36
|
@ -4,7 +4,6 @@ import sokol.gfx
|
||||||
import sokol.sgl
|
import sokol.sgl
|
||||||
import sokol.sfons
|
import sokol.sfons
|
||||||
import os
|
import os
|
||||||
import time
|
|
||||||
|
|
||||||
struct AppState {
|
struct AppState {
|
||||||
mut:
|
mut:
|
||||||
|
@ -60,14 +59,12 @@ fn init(mut state AppState) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn frame(user_data voidptr) {
|
fn frame(user_data voidptr) {
|
||||||
t := time.ticks()
|
|
||||||
mut state := &AppState(user_data)
|
mut state := &AppState(user_data)
|
||||||
state.render_font()
|
state.render_font()
|
||||||
gfx.begin_default_pass(&state.pass_action, sapp.width(), sapp.height())
|
gfx.begin_default_pass(&state.pass_action, sapp.width(), sapp.height())
|
||||||
sgl.draw()
|
sgl.draw()
|
||||||
gfx.end_pass()
|
gfx.end_pass()
|
||||||
gfx.commit()
|
gfx.commit()
|
||||||
// println(time.ticks()-t)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (state &AppState) render_font() {
|
fn (state &AppState) render_font() {
|
||||||
|
|
Loading…
Reference in New Issue