Ejemplo n.º 1
0
Archivo: glfw.go Proyecto: andrebq/glfw
// SetWindowTitle changes the title of the opened window.
func SetWindowTitle(title string) { C.glfwSetWindowTitle(C.CString(title)) }
Ejemplo n.º 2
0
Archivo: glfw.go Proyecto: maun/glfw
func SetWindowTitle(window Window, title string) {
	cs := C.CString(title)
	defer C.free(unsafe.Pointer(cs))
	C.glfwSetWindowTitle(C.GLFWwindow(window), cs)
}
Ejemplo n.º 3
0
func (w *Window) SetTitle(s string) {
	C.glfwSetWindowTitle(w.w, C.CString(s))
}
Ejemplo n.º 4
0
//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)
}