func (win *Window) SetDisplayMode(dm *DisplayMode) error { if C.SDL_SetWindowDisplayMode(win.c, dm.c()) != 0 { return getError() } return nil }
func (window *Window) SetDisplayMode(mode *DisplayMode) int { _window := (*C.SDL_Window)(unsafe.Pointer(window)) _mode := (*C.SDL_DisplayMode)(unsafe.Pointer(mode)) return (int)(C.SDL_SetWindowDisplayMode(_window, _mode)) }
// Window (https://wiki.libsdl.org/SDL_SetWindowDisplayMode) func (window *Window) SetDisplayMode(mode *DisplayMode) error { if C.SDL_SetWindowDisplayMode(window.cptr(), mode.cptr()) != 0 { return GetError() } return nil }
func (window *Window) SetDisplayMode(mode *DisplayMode) int { return int(C.SDL_SetWindowDisplayMode(window.cptr(), mode.cptr())) }