Example #1
0
func (ctx *RWops) RWclose() int {
	if ctx == nil {
		return 0
	}
	_ctx := (*C.SDL_RWops)(unsafe.Pointer(ctx))
	return (int)(C.RWclose(_ctx))
}
Example #2
0
func (rw *RWops) Close() error {
	if int(C.RWclose((*C.SDL_RWops)(rw))) != 0 {
		return errors.New(GetError())
	}

	return nil
}
Example #3
0
func (ctx *RWops) RWclose() int {
	if ctx == nil {
		return 0
	}
	return int(C.RWclose(ctx.cptr()))
}
Example #4
0
// RWclose (https://wiki.libsdl.org/SDL_RWclose)
func (ctx *RWops) RWclose() error {
	if ctx != nil && C.RWclose(ctx.cptr()) != 0 {
		return GetError()
	}
	return nil
}