예제 #1
0
파일: video.go 프로젝트: DeedleFake/sdl
func (win *Window) SetPosition(x, y int) {
	C.SDL_SetWindowPosition(win.c, C.int(x), C.int(y))
}
예제 #2
0
func (window *Window) SetPosition(x int, y int) {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	C.SDL_SetWindowPosition(_window, C.int(x), C.int(y))
}
예제 #3
0
파일: video.go 프로젝트: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_SetWindowPosition)
func (window *Window) SetPosition(x int, y int) {
	C.SDL_SetWindowPosition(window.cptr(), C.int(x), C.int(y))
}