Example #1
0
// Renderer (https://wiki.libsdl.org/SDL_RenderDrawPoint)
func (renderer *Renderer) DrawPoint(x, y int) error {
	_ret := C.SDL_RenderDrawPoint(renderer.cptr(), C.int(x), C.int(y))
	if _ret < 0 {
		return GetError()
	}
	return nil
}
Example #2
0
func (r *Renderer) DrawPoint(x, y int) error {
	if C.SDL_RenderDrawPoint(r.c, C.int(x), C.int(y)) != 0 {
		return getError()
	}

	return nil
}
Example #3
0
func RenderDrawPoint(_renderer *Renderer, _x, _y int) {
	C.SDL_RenderDrawPoint(_renderer.Get(), C.int(_x), C.int(_y))
}
Example #4
0
func (r *Renderer) DrawPoint(x, y int) bool {
	ret := C.SDL_RenderDrawPoint(r.cRenderer, C.int(x), C.int(y))
	return int(ret) == 0
}
Example #5
0
func (renderer *Renderer) DrawPoint(x, y int) int {
	_renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer))
	_x := (C.int)(x)
	_y := (C.int)(y)
	return (int)(C.SDL_RenderDrawPoint(_renderer, _x, _y))
}
Example #6
0
func (renderer *Renderer) DrawPoint(x, y int) int {
	return int(C.SDL_RenderDrawPoint(renderer.cptr(), C.int(x), C.int(y)))
}