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. π
π
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms