tickit_renderbuffer_ref - Man Page

adjust the refcount of a render buffer

Synopsis

#include <tickit.h>

TickitRenderBuffer *tickit_renderbuffer_ref(TickitRenderBuffer *rb);
void tickit_renderbuffer_unref(TickitRenderBuffer *rb);

Link with -ltickit.

Description

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.

See Also

tickit_renderbuffer_new(3), tickit_renderbuffer(7), tickit(7)

Referenced By

tickit_renderbuffer(7), tickit_renderbuffer_new(3).

The man page tickit_renderbuffer_unref(3) is an alias of tickit_renderbuffer_ref(3).