// Surface (https://wiki.libsdl.org/SDL_GetSurfaceAlphaMod) func (surface *Surface) GetAlphaMod() (alpha uint8, err error) { _alpha := (*C.Uint8)(unsafe.Pointer(&alpha)) if C.SDL_GetSurfaceAlphaMod(surface.cptr(), _alpha) != 0 { return alpha, GetError() } return alpha, nil }
func (s *Surface) GetAlphaMod() (uint8, error) { var a C.Uint8 if C.SDL_GetSurfaceAlphaMod(s.c(), &a) != 0 { return 0, getError() } return uint8(a), nil }
func (surface *Surface) GetAlphaMod() (alpha uint8, status int) { _alpha := (*C.Uint8)(unsafe.Pointer(&alpha)) status = int(C.SDL_GetSurfaceAlphaMod(surface.cptr(), _alpha)) return alpha, status }
func (surface *Surface) GetAlphaMod(alpha *uint8) int { _surface := (*C.SDL_Surface)(unsafe.Pointer(surface)) _alpha := (*C.Uint8)(unsafe.Pointer(alpha)) return (int)(C.SDL_GetSurfaceAlphaMod(_surface, _alpha)) }
func (surface *Surface) GetAlphaMod() (alpha uint8, status int) { _surface := (*C.SDL_Surface)(unsafe.Pointer(surface)) _alpha := (*C.Uint8)(unsafe.Pointer(&alpha)) status = (int)(C.SDL_GetSurfaceAlphaMod(_surface, _alpha)) return alpha, status }