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
|
||||
|
@ -18,7 +18,7 @@ struct Context {
|
||||
|
||||
fn main() {
|
||||
os.clear()
|
||||
glfw.init()
|
||||
glfw.init_glfw()
|
||||
ctx:= &Context{
|
||||
gg: gg.new_context(gg.Cfg {
|
||||
width: Size
|
||||
|
@ -124,7 +124,7 @@ struct Game {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
glfw.init()
|
||||
glfw.init_glfw()
|
||||
mut game := &Game{
|
||||
gg: gg.new_context(gg.Cfg {
|
||||
width: WinWidth
|
||||
|
Reference in New Issue
Block a user