Example #1
0
func (r *Renderer) Clear() error {
	if C.SDL_RenderClear(r.c) != 0 {
		return getError()
	}

	return nil
}
Example #2
0
// Renderer (https://wiki.libsdl.org/SDL_RenderClear)
func (renderer *Renderer) Clear() error {
	_ret := C.SDL_RenderClear(renderer.cptr())
	if _ret < 0 {
		return GetError()
	}
	return nil
}
Example #3
0
func RenderClear(_renderer *Renderer) {
	C.SDL_RenderClear(_renderer.Get())
}
Example #4
0
func (r *Renderer) Clear() {
	C.SDL_RenderClear(r.cRenderer)
}
Example #5
0
func (renderer *Renderer) Clear() int {
	_renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer))
	return (int)(C.SDL_RenderClear(_renderer))
}
Example #6
0
func Clear() {
	C.SDL_RenderClear(renderer)
}
Example #7
0
func (renderer *Renderer) Clear() int {
	return int(C.SDL_RenderClear(renderer.cptr()))
}
Example #8
0
File: sdl.go Project: rwcarlsen/sdl
func (w *Window) Clear() { C.SDL_RenderClear(w.ren) }
Example #9
0
func (r *Renderer) Clear() {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	C.SDL_RenderClear(r.cRenderer)
}
Example #10
0
File: canvas.go Project: velour/ui
// Clear clears the canvas with the drawing color.
func (c Canvas) Clear() {
	if C.SDL_RenderClear(c.win.rend) < 0 {
		panic(sdlError())
	}
}