示例#1
0
文件: video.go 项目: flazz/go-sdl2
// Window (https://wiki.libsdl.org/SDL_GetWindowPixelFormat)
func (window *Window) GetPixelFormat() (uint32, error) {
	f := (uint32)(C.SDL_GetWindowPixelFormat(window.cptr()))
	if f == PIXELFORMAT_UNKNOWN {
		return f, GetError()
	}
	return f, nil
}
示例#2
0
func (window *Window) GetPixelFormat() uint32 {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (uint32)(C.SDL_GetWindowPixelFormat(_window))
}
示例#3
0
文件: video.go 项目: DeedleFake/sdl
func (win *Window) GetPixelFormat() uint32 {
	return uint32(C.SDL_GetWindowPixelFormat(win.c))
}
示例#4
0
文件: video.go 项目: JalfResi/go-sdl2
func (window *Window) GetPixelFormat() uint32 {
	return (uint32)(C.SDL_GetWindowPixelFormat(window.cptr()))
}