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

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