Esempio n. 1
0
func (win *Window) SetSize(w, h int) {
	C.SDL_SetWindowSize(win.c, C.int(w), C.int(h))
}
Esempio n. 2
0
func (window *Window) SetSize(w int, h int) {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_SetWindowSize(_window, C.int(w), C.int(h))
}
Esempio n. 3
0
// Window (https://wiki.libsdl.org/SDL_SetWindowSize)
func (window *Window) SetSize(w int, h int) {
	C.SDL_SetWindowSize(window.cptr(), C.int(w), C.int(h))
}