S3D_PEP_LINES(3)

πŸ’… s3d_pep_lines β€” rewrite lines

okay bestie, welcome to the s3d manual, page S3D_PEP_LINES(3). yes this is a real section 3 page and yes it's lowkey iconic. let's get into it ✨


πŸŽ€ NAME πŸŽ€

s3d_pep_lines β€” rewrite lines

like, glow-up for lines that already exist. we're not making new ones, we're editing. main character behavior fr fr πŸ’–


✨ SYNOPSIS ✨

#include <s3d.h>

int s3d_pep_lines(int object, const uint32_t *lbuf, uint16_t n);

look at her. so clean. so simple. she ate πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: this function goes in and alters the latest n pushed lines. not older ones, not random ones β€” the latest ones. the most recent glow-up recipients. periodt.

and lbuf? lbuf is carrying the values that get used to overwrite the old data. it's giving "out with the old, in with the new" but make it buffers.

so like, lbuf holds n entries. each one of those entries is made of 3 uint32_t values, and those three are:

  • the first vertex
  • the second vertex
  • the material

of each line 🫢

so basically: n entries, 3 uint32_t apiece, first vertex + second vertex + material, and boom β€” your lines are rewritten. no cap, that's the whole vibe. 🌸


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich Author of s3d

(we stan a legend who writes both the library and the manpage, honestly iconic behavior πŸ”₯)


πŸ’€ quick reminder bestie: this one rewrites the latest n pushed lines only, and lbuf needs n entries of 3 uint32_t each β€” first vertex, second vertex, material. don't come for me if you pass the wrong count, i'm just the messenger πŸ₯Ί

and that's the whole page, bestie! this was s3d, S3D_PEP_LINES(3) β€” go forth and rewrite your lines, you absolute queen πŸ‘‘πŸ’œ