Exemplo n.º 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
}
Exemplo n.º 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
}
Exemplo n.º 3
0
func RenderDrawPoint(_renderer *Renderer, _x, _y int) {
	C.SDL_RenderDrawPoint(_renderer.Get(), C.int(_x), C.int(_y))
}
Exemplo n.º 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
}
Exemplo n.º 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))
}
Exemplo n.º 6
0
func (renderer *Renderer) DrawPoint(x, y int) int {
	return int(C.SDL_RenderDrawPoint(renderer.cptr(), C.int(x), C.int(y)))
}