func (s *Surface) SetBlendMode(m BlendMode) error { if C.SDL_SetSurfaceBlendMode(s.c(), m.c()) != 0 { return getError() } return nil }
func (surface *Surface) SetBlendMode(bm BlendMode) int { return int(C.SDL_SetSurfaceBlendMode(surface.cptr(), bm.c())) }
func (surface *Surface) SetBlendMode(blendMode BlendMode) int { _surface := (*C.SDL_Surface)(unsafe.Pointer(surface)) _blendMode := (C.SDL_BlendMode)(blendMode) return (int)(C.SDL_SetSurfaceBlendMode(_surface, _blendMode)) }
// Surface (https://wiki.libsdl.org/SDL_SetSurfaceBlendMode) func (surface *Surface) SetBlendMode(bm BlendMode) error { if C.SDL_SetSurfaceBlendMode(surface.cptr(), bm.c()) != 0 { return GetError() } return nil }