mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove os/time references from live programs, fix warnings
This commit is contained in:
committed by
Alexander Medvednikov
parent
8082a5e7f4
commit
32b0225079
@@ -277,7 +277,7 @@ fn todo_remove_me(cfg Cfg, scale int) {
|
||||
}
|
||||
width := cfg.width * scale
|
||||
height := cfg.height * scale
|
||||
font_size := cfg.font_size * scale
|
||||
//font_size := cfg.font_size * scale
|
||||
gl.enable(C.GL_BLEND)
|
||||
//# glBlendFunc(C.GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
shader := gl.new_shader('text')
|
||||
|
||||
@@ -272,8 +272,8 @@ pub fn identity3() []f32 {
|
||||
|
||||
// https://github.com/toji/gl-matrix/blob/1549cf21dfa14a2bc845993485343d519cf064fe/src/gl-matrix/mat4.js
|
||||
fn ortho_js(left, right, bottom, top f32) &f32 {
|
||||
mynear := 1
|
||||
myfar := 1
|
||||
// mynear := 1
|
||||
// myfar := 1
|
||||
lr := 1.0 / (left - right)
|
||||
bt := 1.0 / (bottom - top)
|
||||
nf := 1.0 / 1.0// (mynear -myfar)
|
||||
|
||||
Reference in New Issue
Block a user