tickit_renderbuffer_ref3
Adjust the refcount of a render buffer
Usage
#include <tickit.h> TickitRenderBuffer *tickit_renderbuffer_ref(TickitRenderBuffer *rb); void tickit_renderbuffer_unref(TickitRenderBuffer *rb);
Link with -ltickit.
Overview
tickit_renderbuffer_ref() increments the stored refcount of the given render buffer instance by one. It returns the pointer argument itself, so it is useful for chaining.
tickit_renderbuffer_unref() decrements the stored refcount of the given render buffer instance by one. If the refcount drops to zero, the instance is destroyed. This will release any resources controlled by it.
Return value
tickit_renderbuffer_ref() returns a render buffer instance pointer. tickit_renderbuffer_unref() returns no value.
Releases
Unchanged in 4 releases since Debian 10 (Buster).