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

gl/glfw: update C definitions

This commit is contained in:
Alexander Medvednikov 2020-04-04 12:56:31 +02:00
parent d56276017c
commit c0d4503f25
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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