TICKIT_RENDERBUFFER_REF(3)
π TICKIT_RENDERBUFFER_REF(3) β bestie edition
okay so welcome to the Library Functions Manual, section 3, and today's episode is all about tickit_renderbuffer_ref and tickit_renderbuffer_unref β the two functions that keep track of how many people are holding onto your render buffer. it's giving β¨reference countingβ¨ and honestly? iconic. π
πΈ NAME πΈ
tickit_renderbuffer_ref, tickit_renderbuffer_unref β adjust the refcount of a render buffer, aka the lil counter that decides whether your render buffer lives or gets yeeted into the void π
β¨ SYNOPSIS β¨
#include <tickit.h>
TickitRenderBuffer *tickit_renderbuffer_ref(TickitRenderBuffer *rb);
void tickit_renderbuffer_unref(TickitRenderBuffer *rb);
Link with -ltickit.
fr fr do not forget the -ltickit, bestie, the linker will simply Not Know Her π
π DESCRIPTION π
okay so tickit_renderbuffer_ref() increments the stored refcount of the given render buffer instance by one. one! that's it! and then β this is the cute part β it returns the pointer argument itself, so it's useful for chaining. like, you can just keep going. slay. π
tickit_renderbuffer_unref() decrements the stored refcount of the given render buffer instance by one. and if the refcount drops to zero, the instance is destroyed. gone. not me crying over a struct π«Ά when that happens, it will release any resources controlled by it β so everything it was holding onto gets cleaned up too. very responsible of her, no cap. β¨
π¦ RETURN VALUE π¦
tickit_renderbuffer_ref()returns a render buffer instance pointer. that pointer. the one you gave it. it's giving boomerang πͺtickit_renderbuffer_unref()returns no value. nothing. void. silence. π
π SEE ALSO π
go read those too, iykyk π
and that's the whole page, bestie! this was TICKIT_RENDERBUFFER_REF(3) from the Library Functions Manual, and it ate. periodt. πβ¨ππ¦πΈ
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms