Exemple #1
0
func (w *Window) FramebufferSize() (width, height int) {
	var wid, hei C.int
	C.glfwGetFramebufferSize(w.w, &wid, &hei)
	return int(wid), int(hei)
}
Exemple #2
0
//GetFramebufferSize retrieves the size, in pixels, of the framebuffer of the
//specified window.
func (w *Window) GetFramebufferSize() (width, height int) {
	var wi, h C.int
	C.glfwGetFramebufferSize(w.data, &wi, &h)
	return int(wi), int(h)
}