diff --git a/vlib/builtin/cfns.c.v b/vlib/builtin/cfns.c.v index aaaf512ae5..f4710c873f 100644 --- a/vlib/builtin/cfns.c.v +++ b/vlib/builtin/cfns.c.v @@ -400,3 +400,6 @@ fn C.pthread_mutex_unlock(voidptr) int fn C.read(fd int, buf voidptr, count size_t) int fn C.write(fd int, buf voidptr, count size_t) int fn C.close(fd int) int + +// used by gl, stbi, freetype +fn C.glTexImage2D() diff --git a/vlib/gl/gl.v b/vlib/gl/gl.v index 794674320e..3ce12467ed 100644 --- a/vlib/gl/gl.v +++ b/vlib/gl/gl.v @@ -53,7 +53,6 @@ fn C.glClear() fn C.glCreateShader() int fn C.glClearColor() fn C.glViewport() -fn C.glTexImage2D() fn C.glPixelStorei() fn C.glBlendFunc() fn C.glPolygonMode() diff --git a/vlib/sokol/gfx/gfx.v b/vlib/sokol/gfx/gfx.v index 0e819b7639..e04cfe6fae 100644 --- a/vlib/sokol/gfx/gfx.v +++ b/vlib/sokol/gfx/gfx.v @@ -1,5 +1,9 @@ module gfx +pub const ( + version = 1 +) + // setup and misc functions [inline] pub fn setup(desc &C.sg_desc) { diff --git a/vlib/sokol/sgl/sgl.v b/vlib/sokol/sgl/sgl.v index 9df59003cc..a1c31f6736 100644 --- a/vlib/sokol/sgl/sgl.v +++ b/vlib/sokol/sgl/sgl.v @@ -1,5 +1,10 @@ module sgl +import sokol.gfx + +pub const ( + version = gfx.version + 1 +) /* setup/shutdown/misc */ [inline]