func (r *Renderer) DrawPoints(points []Point) error { if C.SDL_RenderDrawPoints(r.c, (*C.SDL_Point)(unsafe.Pointer(&points[0])), C.int(len(points))) != 0 { return getError() } return nil }
// Renderer (https://wiki.libsdl.org/SDL_RenderDrawPoints) func (renderer *Renderer) DrawPoints(points []Point) error { _ret := C.SDL_RenderDrawPoints(renderer.cptr(), points[0].cptr(), C.int(len(points))) if _ret < 0 { return GetError() } return nil }
func RenderDrawPoints(_renderer *Renderer, _points []*Point) { C.SDL_RenderDrawPoints(_renderer.Get(), (*C.SDL_Point)(cast(&_points)), C.int(len(_points))) }
func (r *Renderer) DrawPoints(points []Point) bool { pptr := unsafe.Pointer(&points[0]) n := len(points) ret := C.SDL_RenderDrawPoints(r.cRenderer, (*C.SDL_Point)(pptr), C.int(n)) return int(ret) == 0 }
func (renderer *Renderer) DrawPoints(points *Point, count int) int { _renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer)) _points := (*C.SDL_Point)(unsafe.Pointer(points)) _count := (C.int)(count) return (int)(C.SDL_RenderDrawPoints(_renderer, _points, _count)) }
func (renderer *Renderer) DrawPoints(points []Point) int { _renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer)) _points := (*C.SDL_Point)(unsafe.Pointer(&points[0])) _count := (C.int)(len(points)) return (int)(C.SDL_RenderDrawPoints(_renderer, _points, _count)) }
func (renderer *Renderer) DrawPoints(points []Point) int { return int(C.SDL_RenderDrawPoints(renderer.cptr(), points[0].cptr(), C.int(len(points)))) }
// DrawPoints draws multiple points on the canvas. func (c Canvas) DrawPoints(points ...image.Point) { if C.SDL_RenderDrawPoints(c.win.rend, sdlPoints(points), C.int(len(points))) < 0 { panic(sdlError()) } }