S3D_PUSH_TEXTURES(3)
β¨ S3D_PUSH_TEXTURES β¨
okay bestie, welcome to the s3d manual, section 3 β and today's main character is s3d_push_textures, aka the "push many textures" girlie π she's giving bulk efficiency energy and honestly? obsessed.
πΈ NAME πΈ
s3d_push_textures β push many textures π¦
like. MANY. textures. at once. plural. a whole squad. π
β¨ SYNOPSIS β¨
#include <s3d.h>
int s3d_push_textures(int object, const uint16_t *tbuf, uint16_t n);
that's it, that's the whole vibe check. one include, one function, three args, no cap. π«Ά
π DESCRIPTION π
so here's the tea, bestie β β same situation as with vertices, okay? if you've got a whole pile of textures to deal with, you can push arrays of textures onto the texture stack and get greater performance out of it. it's the "don't do it one at a time when you could do it all at once" pipeline, and she ATE. π₯
and the way tbuf works? okay so listen closely π β tbuf should contain n texture sizes. and each one of those texture sizes is made up of 2 uint16_t values: one for the width and one for the height, for each texture. so it's like a lil width-height duo per texture, lined up one after another, and n tells her how many of those duos to expect. iconic structure, honestly. β
so like: n textures in, n pairs of uint16_t out, everybody's sized, everybody's on the stack, everybody's thriving. π
π AUTHOR π
Simon Wunderlich Author of s3d π
(he literally wrote s3d. king behaviour. we love to see it. π)
and that's a wrap, bestie!! this page came to you straight from the s3d manual, section 3, S3D_PUSH_TEXTURES(3) β and ngl there's no date on this thing so she's simply timeless, an eternal queen, periodt. π
β¨π¦π go push some textures, ily, bye!! πΈπ«Άβ
π¦ 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