Exemplo n.º 1
0
func SetRenderDrawBlendMode(_renderer *Renderer, _mode int) {
	C.SDL_SetRenderDrawBlendMode(_renderer.Get(), C.SDL_BlendMode(_mode))
}
Exemplo n.º 2
0
func (t *Texture) SetBlendMode(_blendmode int) {
	C.SDL_SetTextureBlendMode(t.Get(), C.SDL_BlendMode(_blendmode))
}
Exemplo n.º 3
0
func (t *Texture) SetBlendMode(blendmode int) bool {
	ret := C.SDL_SetTextureBlendMode(t.cTexture, C.SDL_BlendMode(blendmode))
	return int(ret) == 0
}
Exemplo n.º 4
0
func (r *Renderer) GetDrawBlendMode() (int, bool) {
	bm := C.SDL_BlendMode(0)
	ret := C.SDL_GetRenderDrawBlendMode(r.cRenderer, &bm)
	return int(bm), int(ret) == 0
}
Exemplo n.º 5
0
func (r *Renderer) SetDrawBlendMode(blendmode int) bool {
	ret := C.SDL_SetRenderDrawBlendMode(r.cRenderer, C.SDL_BlendMode(blendmode))
	return int(ret) == 0
}
Exemplo n.º 6
0
func (m BlendMode) c() C.SDL_BlendMode {
	return C.SDL_BlendMode(m)
}
Exemplo n.º 7
0
func (bm BlendMode) c() C.SDL_BlendMode {
	return C.SDL_BlendMode(C.Uint32(bm))
}