S3D_PEP_POLYGON_TEX_(3)
β¨ NAME β¨
s3d_pep_polygon_tex_coord β bestie, this is the one that adds texture coordinates to a polygon π
πΈ SYNOPSIS πΈ
#include <s3d.h>
int s3d_pep_polygon_tex_coord(int object, float x1, float y1, float x2,
float y2, float x3, float y3);
π¦ DESCRIPTION π¦
Okay so picture this: you already pushed a polygon, right? And now you wanna pimp it out with some texture coordinates. That's literally what this does, no cap. π
You hand it x and y values for each vertex point, respectively β so x1/y1 for the first vertex, x2/y2 for the second, x3/y3 for the third. Iconic. β¨
Those values may be between 0 and 1, and they're vertex points on the texture that's defined in the material of the polygon. It's giving UV mapping, it's giving main character energy. π
Heads up bestie: this only handles the last polygon pushed. If you've got more polygons that should get a texture, don't do them one by one like a clown β use s3d_pep_polygon_tex_coords() instead. π«Ά
π AUTHOR π
Simon Wunderlich
Author of s3d π
And that's the whole vibe fr fr β brought to you by the s3d Manual, S3D_PEP_POLYGON_TEX_(3), page s3d. Slay, go texture something pretty. π
πΈβ¨
π¦ 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