1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/gl/gl_lin.v
Alexander Medvednikov d3e7738a5f clean up gl
2019-06-22 21:28:12 +02:00

15 lines
306 B
Go

module gl
#include "glad.h"
#include "glad.c"
fn init_glad() {
println('init_glad() win')
// # ok= gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
ok := C.gladLoadGL()
if !ok {
os.exit('Failed to initialize glad OpenGL context')
}
// C.printf("initglad test: glClear ADDR=%p\n', glClear);
}