1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make gg work on Windows; prebuild glad and cJSON; new ft module

This commit is contained in:
Alexander Medvednikov
2019-07-10 13:27:35 +02:00
parent 06e7354d18
commit f834644db4
17 changed files with 6593 additions and 340 deletions

View File

@ -117,7 +117,7 @@ fn (a Vec3) print() {
x := a.x
y := a.y
z := a.z
# printf("vec3{%f,%f,%f}\n",x,y,z);
C.printf('vec3{%f,%f,%f}\n',x,y,z)
// println('vec3{$x,$y,$z}')
}
@ -162,7 +162,7 @@ fn normalize(vec Vec3) Vec3 {
*/
// https://github.com/g-truc/glm/blob/0ceb2b755fb155d593854aefe3e45d416ce153a4/glm/ext/matrix_clip_space.inl
pub fn ortho(left, right, bottom, top f32) Mat4 {
println('glm ortho($left, $right, $bottom, $top)')
//println('glm ortho($left, $right, $bottom, $top)')
// mat<4, 4, T, defaultp> Result(static_cast<T>(1));
n := 16
mut res := f32_calloc(n)