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:
@@ -103,7 +103,7 @@ pub fn new_shader(name string) Shader {
|
||||
}
|
||||
vertex_path := '${dir}${name}.vert'
|
||||
fragment_path := '${dir}${name}.frag'
|
||||
println('shader path=$vertex_path,\n fpath="$fragment_path"')
|
||||
//println('shader path=$vertex_path,\n fpath="$fragment_path"')
|
||||
// vertex_src := os.read_file(vertex_path.trim_space())
|
||||
mut vertex_src := ''
|
||||
mut fragment_src := ''
|
||||
|
@@ -19,12 +19,11 @@ import const (
|
||||
GL_ARRAY_BUFFER
|
||||
)
|
||||
|
||||
// TODO: windows support
|
||||
#flag linux -I @VROOT/thirdparty/glad
|
||||
#flag darwin -I @VROOT/thirdparty/glad
|
||||
#flag -I @VROOT/thirdparty/glad
|
||||
|
||||
#include "glad.h"
|
||||
#include "glad.c"
|
||||
#flag @VROOT/thirdparty/glad/glad.o
|
||||
//#include "glad.c"
|
||||
|
||||
pub fn init_glad() {
|
||||
ok := C.gladLoadGL()
|
||||
|
Reference in New Issue
Block a user