예제 #1
0
func (window *Window) SetMaximumSize(max_w int, max_h int) {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	_max_w := (C.int)(max_w)
	_max_h := (C.int)(max_h)
	C.SDL_SetWindowMaximumSize(_window, _max_w, _max_h)
}
예제 #2
0
파일: video.go 프로젝트: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_SetWindowMaximumSize)
func (window *Window) SetMaximumSize(maxW int, maxH int) {
	C.SDL_SetWindowMaximumSize(window.cptr(), C.int(maxW), C.int(maxH))
}