S3D_PEP_POLYGON_TEX_(3)
β¨ NAME β¨
s3d_pep_polygon_tex_coords β bestie, this one slaps texture coordinates onto your polygons π
πΈ SYNOPSIS πΈ
#include <s3d.h>
int s3d_pep_polygon_tex_coords(int object, const float *tbuf,
uint16_t n);
π¦ DESCRIPTION π¦
okay so. you know how you've got polygons that are just sitting there, looking kinda plain, no texture drip at all? π this function is here to fix that. it pimps the latest n polygons with texture coordinates. glow-up complete, no cap β¨
the tbuf buffer holds 6*n float values for its entries. that's it, that's the math. six floats per polygon, times however many polygons you're blessing.
and the order those values go in? literally the exact same order as in s3d_pep_polygon_tex_coord() β so if you already know that one, you already know this one. iykyk π«Ά
π AUTHOR π
Simon Wunderlich Author of s3d
k that's the whole page, bestie π go forth and texture those polygons, you absolute icon π§
this was brought to you by the s3d manual, page S3D_PEP_POLYGON_TEX_(3) β stay slay, stay textured π
π¦ 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