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:
parent
d56276017c
commit
c0d4503f25
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user