Пример #1
0
func (r *Renderer) Clear() error {
	if C.SDL_RenderClear(r.c) != 0 {
		return getError()
	}

	return nil
}
Пример #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
}
Пример #3
0
func RenderClear(_renderer *Renderer) {
	C.SDL_RenderClear(_renderer.Get())
}
Пример #4
0
func (r *Renderer) Clear() {
	C.SDL_RenderClear(r.cRenderer)
}
Пример #5
0
func (renderer *Renderer) Clear() int {
	_renderer := (*C.SDL_Renderer)(unsafe.Pointer(renderer))
	return (int)(C.SDL_RenderClear(_renderer))
}
Пример #6
0
func Clear() {
	C.SDL_RenderClear(renderer)
}
Пример #7
0
func (renderer *Renderer) Clear() int {
	return int(C.SDL_RenderClear(renderer.cptr()))
}
Пример #8
0
func (w *Window) Clear() { C.SDL_RenderClear(w.ren) }
Пример #9
0
func (r *Renderer) Clear() {
	GlobalMutex.Lock()
	defer GlobalMutex.Unlock()

	C.SDL_RenderClear(r.cRenderer)
}
Пример #10
0
// Clear clears the canvas with the drawing color.
func (c Canvas) Clear() {
	if C.SDL_RenderClear(c.win.rend) < 0 {
		panic(sdlError())
	}
}