// Renderer (https://wiki.libsdl.org/SDL_GetRenderDrawBlendMode) func (renderer *Renderer) GetDrawBlendMode(bm *BlendMode) error { _ret := C.SDL_GetRenderDrawBlendMode(renderer.cptr(), bm.cptr()) if _ret < 0 { return GetError() } return nil }
func (r *Renderer) GetDrawBlendMode() (BlendMode, error) { var mode C.SDL_BlendMode if C.SDL_GetRenderDrawBlendMode(r.c, &mode) != 0 { return 0, getError() } return BlendMode(mode), nil }
func (r *Renderer) GetDrawBlendMode() (int, bool) { bm := C.SDL_BlendMode(0) ret := C.SDL_GetRenderDrawBlendMode(r.cRenderer, &bm) return int(bm), int(ret) == 0 }
func (renderer *Renderer) GetDrawBlendMode(blendMode *uint32) int { _renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer)) _blendMode := (*C.SDL_BlendMode)(unsafe.Pointer(blendMode)) return (int)(C.SDL_GetRenderDrawBlendMode(_renderer, _blendMode)) }
func (renderer *Renderer) GetDrawBlendMode(bm *BlendMode) int { return int(C.SDL_GetRenderDrawBlendMode(renderer.cptr(), bm.cptr())) }