TICKIT_RENDERBUFFER_BLIT(3)

πŸ“¦
version 0.4.6 Β· 2 versions
  • 0.4.6 Β· alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.4.1 Β· ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… TICKIT_RENDERBUFFER_BLIT(3) πŸ’…

okay bestie, welcome to the Library Functions Manual ✨ this one is called tickit_renderbuffer_blit and it's genuinely one of the most underrated little functions out here. no cap.


🌸 NAME 🌸

tickit_renderbuffer_blit β€” copies buffer contents to another buffer

like, it's giving copy-paste but make it ✨graphics✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <tickit.h>

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

Link with -ltickit.

don't forget the link flag, bestie, or the compiler WILL humble you 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: tickit_renderbuffer_blit() copies the stored state in the src buffer over to the dst buffer. that's it. that's the whole job. πŸ’–

and listen β€” the src buffer is not reset afterwards, and it's not modified in any way. it stays exactly as it was. untouched. unbothered. main character energy, honestly. πŸ‘‘

meanwhile, on the dst side, these things are respected:

  • translation
  • clipping masks
  • current pen settings

so the destination gets its own rules applied, periodt.

now for the why β€” this function is intended for storing long-term screen state that rarely changes in an off-screen buffer stored by the application, which lets you do fast efficient rendering when you actually need it. it's the "prep once, flex forever" strategy. πŸ”₯

⚠️ but real talk, if you're using this, you should be aware that memory allocated internally by the TickitRenderBuffer instance is only released by tickit_renderbuffer_reset(3). only. just that one. so don't come crying to me when your memory just sits there vibing forever πŸ™ˆ

πŸ’€ RETURN VALUE πŸ’€

this function returns nothing. literally nothing. void. empty. a beautiful little nothing. void. ✨


🌈 SEE ALSO 🌈

go read those too, iykyk πŸ“š


and that's the whole page, bestie! this was TICKIT_RENDERBUFFER_BLIT(3), straight out of the Library Functions Manual β€” same title top and bottom, because consistency is iconic πŸ’…πŸ«Ά stay slaying, and remember: blit responsibly πŸŽ€