S3D_PUSH_LINE(3)

✨ NAME ✨

s3d_push_line β€” push line πŸ’…

Ok so welcome to the s3d manual bestie, this page is S3D_PUSH_LINE(3) and it's literally about pushing one single line. Baby steps. Iconic behavior. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <s3d.h>

int s3d_push_line(int object, uint32_t v1, uint32_t v2,
                  uint32_t material);

That's the whole vibe. Four args, no drama. πŸŽ€


πŸ’– DESCRIPTION πŸ’–

So what we're doing here is pushing one line onto the line stack of the object. One. Uno. Singular. No cap. πŸ”₯

The function takes:

  • 2 vertex-index-no β€” <yellow>v1</yellow> and <yellow>v2</yellow>, the two vertices your line is gonna connect
  • 1 material material-index-no β€” <purple>material</purple>, the material it's serving looks in

And obviously <cyan>object</cyan> is the object whose line stack you're blessing with this line. 🫢

Pro tip fr fr: if you've got a lot of lines to push, do not sit here calling this in a loop like a clown 😭 β€” use s3d_push_lines() instead. She's built for volume. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” Author of s3d πŸ’œ


And that's the tea πŸ“ β€” this was the s3d Manual page for s3d, delivered to you with all the love in the world. Go push some lines, bestie, you got this. ⭐