---
name: "tickit_renderbuffer_blit"
section: "3"
platform: "linux"
package: "libtickit-dev"
version: "0.4.3-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tickit_renderbuffer_blit"
---

# tickit\_renderbuffer\_blit(3)

copies buffer contents to another buffer

## NAME

tickit\_renderbuffer\_blit - copies buffer contents to another buffer

## SYNOPSIS

```
#include <tickit.h>

void tickit_renderbuffer_blit(TickitRenderBuffer *dst, const TickitRenderBuffer *src);
```

Link with *-ltickit*.

## DESCRIPTION

**tickit\_renderbuffer\_blit**() copies the stored state in the *src* buffer to the *dst* buffer. The *src* buffer is not reset afterwards, or otherwise modified in any way. Translation, clipping masks and current pen settings on the *dst* buffer are respected.

This function is intended for storing long-term screen state that rarely changes in an of-screen buffer stored by the application, allowing fast efficient rendering when required. Applications using this should be aware that memory allocated internally by the *TickitRenderBuffer* instance is only release by [**tickit\_renderbuffer\_reset**(3)](/tickit_renderbuffer_reset/3.md).

## RETURN VALUE

This function returns nothing.

## SEE ALSO

[**tickit\_renderbuffer\_new**(3)](/tickit_renderbuffer_new/3.md), [**tickit\_renderbuffer\_flush\_to\_term**(3)](/tickit_renderbuffer_flush_to_term/3.md), [**tickit\_renderbuffer**(7)](/tickit_renderbuffer/7.md), [**tickit**(7)](/tickit/7.md)
