al_clone_bitmap(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸŽ€ al_clone_bitmap(3) πŸŽ€

okay bestie, welcome to the Library Functions Manual β€” this is the Allegro reference manual page for al_clone_bitmap(3), and it is literally giving β€œclone that bitmap” energy. let’s go πŸ’…βœ¨


🌸 NAME 🌸

al_clone_bitmap β€” Allegro 5 API πŸ’–


✨ SYNOPSIS ✨

bestie, here’s the exact code vibe:

#include <allegro5/allegro.h>

ALLEGRO_BITMAP *al_clone_bitmap(ALLEGRO_BITMAP *bitmap)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea: this function creates a new bitmap with al_create_bitmap(3), and copies the pixel data from the old bitmap across. slay. πŸ’…

The newly created bitmap will be created with the current new bitmap flags, and not the ones that were used to create the original bitmap. important!! 🫢

And if the new bitmap is a memory bitmap, its projection bitmap is reset to be orthographic. no cap. ✨


🌈 SEE ALSO 🌈

go look at these next, bestie:


and that’s the whole page, bestie! footer sign-off energy: source/version is Allegro reference manual, page is al_clone_bitmap(3). mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms