Esempio n. 1
0
func (s *Surface) SetBlendMode(m BlendMode) error {
	if C.SDL_SetSurfaceBlendMode(s.c(), m.c()) != 0 {
		return getError()
	}

	return nil
}
Esempio n. 2
0
func (surface *Surface) SetBlendMode(bm BlendMode) int {
	return int(C.SDL_SetSurfaceBlendMode(surface.cptr(), bm.c()))
}
Esempio n. 3
0
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))
}
Esempio n. 4
0
// 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
}