// Surface (https://wiki.libsdl.org/SDL_GetColorKey) func (surface *Surface) GetColorKey() (key uint32, err error) { _key := (*C.Uint32)(unsafe.Pointer(&key)) if C.SDL_GetColorKey(surface.cptr(), _key) != 0 { return key, GetError() } return key, nil }
func (s *Surface) GetColorKey() (uint32, error) { var key C.Uint32 if C.SDL_GetColorKey(s.c(), &key) != 0 { return 0, getError() } return uint32(key), nil }
func (surface *Surface) GetColorKey() (key uint32, status int) { _key := (*C.Uint32)(unsafe.Pointer(&key)) status = int(C.SDL_GetColorKey(surface.cptr(), _key)) return key, status }
func (surface *Surface) GetColorKey(key *uint32) int { _surface := (*C.SDL_Surface)(unsafe.Pointer(surface)) _key := (*C.Uint32)(unsafe.Pointer(key)) return (int)(C.SDL_GetColorKey(_surface, _key)) }
func (surface *Surface) GetColorKey() (key uint32, status int) { _surface := (*C.SDL_Surface)(unsafe.Pointer(surface)) _key := (*C.Uint32)(unsafe.Pointer(&key)) status = (int)(C.SDL_GetColorKey(_surface, _key)) return key, status }