mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: cleanup code duplication in examples/sokol/04_multi_shader_glsl/rt_glsl.v, document gg.m4 (#20978)
This commit is contained in:
parent
8ddceabb0e
commit
4cf05083ca
3 changed files with 173 additions and 459 deletions
|
@ -56,15 +56,14 @@ enum Viewer_state {
|
|||
|
||||
struct App {
|
||||
mut:
|
||||
gg &gg.Context = unsafe { nil }
|
||||
pip_viewer sgl.Pipeline
|
||||
texture gfx.Image
|
||||
sampler gfx.Sampler
|
||||
init_flag bool
|
||||
frame_count int
|
||||
mouse_x int = -1
|
||||
mouse_y int = -1
|
||||
scroll_y int
|
||||
gg &gg.Context = unsafe { nil }
|
||||
pip_viewer sgl.Pipeline
|
||||
texture gfx.Image
|
||||
sampler gfx.Sampler
|
||||
init_flag bool
|
||||
mouse_x int = -1
|
||||
mouse_y int = -1
|
||||
scroll_y int
|
||||
|
||||
state Viewer_state = .scanning
|
||||
// translation
|
||||
|
@ -563,7 +562,6 @@ fn frame(mut app App) {
|
|||
}
|
||||
|
||||
app.gg.end()
|
||||
app.frame_count++
|
||||
}
|
||||
|
||||
// draw readable text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue