Exemple #1
0
func (window *Window) GetMaximumSize(w *int, h *int) {
	var _w, _h C.int
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_GetWindowMaximumSize(_window, &_w, &_h)
	*w = int(_w)
	*h = int(_h)
}
Exemple #2
0
func (window *Window) GetMaximumSize() (w, h int) {
	var _w, _h C.int
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_GetWindowMaximumSize(_window, &_w, &_h)
	return int(_w), int(_h)
}
Exemple #3
0
// Window (https://wiki.libsdl.org/SDL_GetWindowMaximumSize)
func (window *Window) GetMaximumSize() (w, h int) {
	var _w, _h C.int
	C.SDL_GetWindowMaximumSize(window.cptr(), &_w, &_h)
	return int(_w), int(_h)
}