mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib/examples: fix gl/glfw/gg examples. rename init functions
This commit is contained in:
committed by
Alexander Medvednikov
parent
b107b4f1e5
commit
dd053d79b0
@@ -22,7 +22,7 @@ mut:
|
||||
}
|
||||
|
||||
fn main() {
|
||||
glfw.init()
|
||||
glfw.init_glfw()
|
||||
width := 600
|
||||
height := 300
|
||||
mut game := &Game{
|
||||
@@ -43,7 +43,7 @@ fn main() {
|
||||
//window.onkeydown(key_down)
|
||||
game.main_wnd = window
|
||||
window.make_context_current()
|
||||
gg.init()
|
||||
gg.init_gg()
|
||||
game.gg = gg.new_context(gg.Cfg {
|
||||
width: width
|
||||
height: height
|
||||
|
||||
Reference in New Issue
Block a user