S3D_CLONE(3)

πŸ’– S3D_CLONE πŸ’–

okay bestie, welcome to the s3d_clone(3) page β€” yes, that's manual section 3, from the s3d manual, and it's literally the cutest lil function in the whole library. sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

s3d_clone β€” clone object. that's it. that's the whole job. no cap. 🫢


🌸 SYNOPSIS 🌸

okay so first you gotta invite the header in, like:

#include <s3d.h>

and then the function itself, iconic as always:

int s3d_clone(int oid);

she takes an oid and she hands you back an int. slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so the way that this works is: s3d_clone clones an already existing object. already existing, bestie β€” that's the vibe check right there, there's no object materialising out of thin air. πŸ‘‘

the clone and the parent-object get just look the same as each other, and the clone will change when the parent-object changes. so like, parent does something, baby does it too. matching outfits. main character energy times two. ✨

no fr, the visual look is shared, so don't be shocked when you tweak the parent and the child follows along. that's not a bug, that's the whole point. πŸ’€

and cloning especially makes sense if you want to use the same object a lot of times. one object, many copies, all the vibes. 🌈

but here's the part that matters β€” move and transform is independent from the parent. so she may look identical but she can absolutely go her own way, walk her own path, do her own little glTranslate situation. independent queen. 🧚

and the function returns the children object id. πŸŽ€

like, be so fr, it's giving "same face, different font." periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” Author of s3d. the icon, the moment, the blueprint. we bow. πŸ™‡β™€οΈπŸ’–


that's the whole page, bestie! this cutie lives in the s3d manual as S3D_CLONE(3), and the source is the s3d manual, author Simon Wunderlich (Author of s3d). no date on this one, so consider this your timestamp-free slay. go clone something and make it everyone's problem. πŸ’…βœ¨πŸ«Ά