S3D_PUSH_VERTICES(3)

πŸ’… s3d_push_vertices β€” bestie, we're pushing SO many vertices rn

okay so real talk, this is a page from the s3d manual (section 3, the library-functions girlies), and it's all about s3d_push_vertices. Buckle up πŸŽ€


✨ NAME ✨

s3d_push_vertices β€” push many vertices 🫢

like… not one. MANY. plural. iconic behavior.


🌸 SYNOPSIS 🌸

#include <s3d.h>

int s3d_push_vertices(int object, const float *vbuf, uint16_t n);

πŸ’– DESCRIPTION πŸ’–

So the whole vibe here is: you got an array of vertices and you wanna push a whole bunch of them at once. And like β€” this is so much better for performance than calling s3d_push_vertex() over and over again, especially if you've got a ton of vertices, which lowkey is probably the usual case for you bestie. πŸ’€

Here's the moment, look at her:

float vertices[] = { 0.0, 0.0, 0.0,
                     1.0, 2.0, 3.0,
                     3.0, 2.0, 1.0};
s3d_push_vertices(object, vertices, 3); // pushing 3 vertices

see that? three vertices, one call, no drama. slay. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” Author of s3d

not me putting respect on the author's name, we STAN. πŸ«‘πŸ’œ


🌈 SEE ALSO 🌈

(no other pages listed in the original, bestie β€” this one's flying solo ✨)


and that's the whole page fr fr. it's from the s3d manual, section 3 β€” S3D_PUSH_VERTICES(3) β€” brought to you by the s3d girlies. go forth and batch your vertices, you absolute main character. πŸ’…πŸŒŸ