mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: unify const names to snake_case
This commit is contained in:
@ -6,16 +6,16 @@ import gx
|
||||
import automaton
|
||||
|
||||
const (
|
||||
screenWidth = 800
|
||||
screenHeight = 600
|
||||
filled_color = gx.Blue
|
||||
screen_width = 800
|
||||
screen_height = 600
|
||||
filled_color = gx.blue
|
||||
)
|
||||
|
||||
fn new_graphics() &gg.GG {
|
||||
glfw.init_glfw()
|
||||
return gg.new_context(gg.Cfg{
|
||||
width: screenWidth
|
||||
height: screenHeight
|
||||
width: screen_width
|
||||
height: screen_height
|
||||
use_ortho: true
|
||||
create_window: true
|
||||
resizable: false
|
||||
@ -49,7 +49,7 @@ fn main() {
|
||||
gg.post_empty_event() // needed so the animation does not stop
|
||||
///////////////////////////////////////////////
|
||||
a.update()
|
||||
print_automaton(a)
|
||||
print_automaton(a)
|
||||
graphics.render()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user