logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

tickit_renderbuffer_ref, tickit_renderbuffer_unref - adjust the refcount of a render buffer

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.

Name

       tickit_renderbuffer_ref, tickit_renderbuffer_unref - adjust the refcount of a render buffer

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)

                                                                                      TICKIT_RENDERBUFFER_REF(3)

Synopsis

#include<tickit.h>TickitRenderBuffer*tickit_renderbuffer_ref(TickitRenderBuffer*rb);voidtickit_renderbuffer_unref(TickitRenderBuffer*rb);

       Link with -ltickit.