// SetWindowTitle changes the title of the opened window. func SetWindowTitle(title string) { C.glfwSetWindowTitle(C.CString(title)) }
func SetWindowTitle(window Window, title string) { cs := C.CString(title) defer C.free(unsafe.Pointer(cs)) C.glfwSetWindowTitle(C.GLFWwindow(window), cs) }
func (w *Window) SetTitle(s string) { C.glfwSetWindowTitle(w.w, C.CString(s)) }
//SetTitle sets the window title, encoded as UTF-8, of the window. // //This function may only be called from the main thread. See //https://code.google.com/p/go-wiki/wiki/LockOSThread func (w *Window) SetTitle(title string) { t := C.CString(title) defer C.free(unsafe.Pointer(t)) C.glfwSetWindowTitle(w.data, t) }