From c0d4503f25fd255b50dd5aba58cdf9ff5b6c2802 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 4 Apr 2020 12:56:31 +0200 Subject: [PATCH] gl/glfw: update C definitions --- examples/tetris/tetris.v | 2 +- vlib/gl/gl.v | 4 ++-- vlib/glfw/glfw.v | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tetris/tetris.v b/examples/tetris/tetris.v index 8f3ba73f79..1b1366953d 100644 --- a/examples/tetris/tetris.v +++ b/examples/tetris/tetris.v @@ -141,7 +141,7 @@ fn main() { use_ortho: true // This is needed for 2D drawing create_window: true window_title: 'V Tetris' - window_user_ptr: game + //window_user_ptr: game }) ft: freetype.new_context(gg.Cfg{ width: WinWidth diff --git a/vlib/gl/gl.v b/vlib/gl/gl.v index 22da632379..0dd3267e19 100644 --- a/vlib/gl/gl.v +++ b/vlib/gl/gl.v @@ -39,9 +39,9 @@ fn C.glAttachShader() fn C.glGetShaderiv() fn C.glCompileShader() fn C.glShaderSource() -fn C.glCreateProgram() +fn C.glCreateProgram() int fn C.glClear() -fn C.glCreateShader() +fn C.glCreateShader() int fn C.glClearColor() fn C.glViewport() fn C.gladLoadGL() diff --git a/vlib/glfw/glfw.v b/vlib/glfw/glfw.v index 7def0c39b3..a4165a15f0 100644 --- a/vlib/glfw/glfw.v +++ b/vlib/glfw/glfw.v @@ -69,7 +69,7 @@ fn C.glfwSetWindowSizeCallback() fn C.glfwSetMouseButtonCallback() fn C.glfwSetCursorPosCallback() fn C.glfwSwapBuffers() -fn C.glfwWindowShouldClose() +fn C.glfwWindowShouldClose() bool fn C.glfwSetWindowShouldClose() fn C.glfwWaitEvents() fn C.glfwPollEvents()