Beispiel #1
0
// 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
}
Beispiel #2
0
func (window *Window) GetPixelFormat() uint32 {
	_window := (*C.SDL_Window)(unsafe.Pointer(window))
	return (uint32)(C.SDL_GetWindowPixelFormat(_window))
}
Beispiel #3
0
func (win *Window) GetPixelFormat() uint32 {
	return uint32(C.SDL_GetWindowPixelFormat(win.c))
}
Beispiel #4
0
func (window *Window) GetPixelFormat() uint32 {
	return (uint32)(C.SDL_GetWindowPixelFormat(window.cptr()))
}