v/gl/gl_lin.v

15 lines
306 B
Go
Raw Normal View History

2019-06-22 21:24:49 +02:00
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);
}