mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
hot_reload: fix graph.v compilation
This commit is contained in:
parent
6b08cbcb7a
commit
13e0e63514
@ -18,17 +18,16 @@ struct Context {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
glfw.init_glfw()
|
glfw.init_glfw()
|
||||||
ctx:= &Context{
|
gconfig := gg.Cfg {
|
||||||
gg: gg.new_context(gg.Cfg {
|
|
||||||
width: Size
|
width: Size
|
||||||
height: Size
|
height: Size
|
||||||
use_ortho: true
|
use_ortho: true
|
||||||
create_window: true
|
create_window: true
|
||||||
window_title: 'Graph builder'
|
window_title: 'Graph builder'
|
||||||
window_user_ptr: ctx
|
|
||||||
always_on_top: true
|
always_on_top: true
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
ctx := &Context{ gg: gg.new_context(gconfig) }
|
||||||
|
ctx.gg.window.set_user_ptr( ctx )
|
||||||
go update() // update the scene in the background in case the window isn't focused
|
go update() // update the scene in the background in case the window isn't focused
|
||||||
for {
|
for {
|
||||||
if ctx.gg.window.should_close() {
|
if ctx.gg.window.should_close() {
|
||||||
|
Loading…
Reference in New Issue
Block a user