Exemplo n.º 1
0
func (win *Window) SetDisplayMode(dm *DisplayMode) error {
	if C.SDL_SetWindowDisplayMode(win.c, dm.c()) != 0 {
		return getError()
	}

	return nil
}
Exemplo n.º 2
0
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))
}
Exemplo n.º 3
0
// 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
}
Exemplo n.º 4
0
func (window *Window) SetDisplayMode(mode *DisplayMode) int {
	return int(C.SDL_SetWindowDisplayMode(window.cptr(), mode.cptr()))
}