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

gl, glfw, freetype fixes

This commit is contained in:
Alexander Medvednikov
2020-04-02 01:45:22 +02:00
parent 1cfe44d9c6
commit 88d15c6611
10 changed files with 77 additions and 14 deletions

View File

@@ -51,6 +51,25 @@ pub const (
KeyDown = 264
)
fn C.glfwGetWindowUserPointer() voidptr
fn C.glfwGetPrimaryMonitor() voidptr
fn C.glfwSetWindowUserPointer()
fn C.glfwSetCursor()
fn C.glfwGetCursorPos()
fn C.glfwSetClipboardString()
fn C.glfwGetWindowContentScale()
fn C.glfwGetClipboardString()
fn C.glfwGetKey()
fn C.glfwGetTime()
fn C.glfwSetCharModsCallback()
fn C.glfwSetKeyCallback()
fn C.glfwPostEmptyEvent()
fn C.glfwSetScrollCallback()
fn C.glfwSetWindowSizeCallback()
fn C.glfwSetMouseButtonCallback()
fn C.glfwSetCursorPosCallback()
fn C.glfwSwapBuffers()
// joe-c: fix & remove
struct TmpGlImportHack {
hack gl.TmpGlImportHack
@@ -341,3 +360,4 @@ pub fn (size Size) str() string {
pub fn get_window_user_pointer(gwnd voidptr) voidptr {
return C.glfwGetWindowUserPointer(gwnd)
}