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

vlib: add fixes for problems, found by check_os_api_parity.v

This commit is contained in:
Delyan Angelov 2020-06-11 21:16:12 +03:00
parent 5ef9569098
commit 3bf9b28773
4 changed files with 12 additions and 1 deletions

View File

@ -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()

View File

@ -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()

View File

@ -1,5 +1,9 @@
module gfx
pub const (
version = 1
)
// setup and misc functions
[inline]
pub fn setup(desc &C.sg_desc) {

View File

@ -1,5 +1,10 @@
module sgl
import sokol.gfx
pub const (
version = gfx.version + 1
)
/* setup/shutdown/misc */
[inline]