Skip to content

Commit

Permalink
glfw: implement glfw.window.set_should_close
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored and medvednikov committed Jan 26, 2020
1 parent 869c8e3 commit e9d3134
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 242 deletions.
242 changes: 0 additions & 242 deletions thirdparty/ui/ui.vh

This file was deleted.

4 changes: 4 additions & 0 deletions vlib/glfw/glfw.v
Expand Up @@ -164,6 +164,10 @@ pub fn set_should_close(w voidptr, close bool) {
C.glfwSetWindowShouldClose(w, close)
}

pub fn (w &glfw.Window) set_should_close(close bool) {
C.glfwSetWindowShouldClose(w.data, close)
}

pub fn (w &glfw.Window) should_close() bool {
return C.glfwWindowShouldClose(w.data)
}
Expand Down

0 comments on commit e9d3134

Please sign in to comment.