S3D_PEP_MATERIAL_TEX(3)

πŸ’– S3D_PEP_MATERIAL_TEX πŸ’–

okay bestie, welcome to the s3d manual, section 3, page S3D_PEP_MATERIAL_TEX(3) ✨ this one is short but it's so important, it's literally the glow-up step for your materials πŸŽ€


✨ NAME ✨

s3d_pep_material_texture β€” add texture to material πŸ¦‹


🌸 SYNOPSIS 🌸

#include <s3d.h>

int s3d_pep_material_texture(int object, uint32_t tex);

πŸ’… DESCRIPTION πŸ’…

so here's the tea, bestie: this function takes the latest material and slaps a texture on it πŸ‘‘ the texture you're assigning is the one referenced by the index tex.

and like, obviously β€” OBVIOUSLY β€” you already pushed that texture in with s3d_push_texture() before you call this, because the way this works is it's pointing at an index you made earlier. no texture pushed, nothing to reference, yk? πŸ™ˆ

it's giving "assign, don't create" β€” this is the final little accessory moment, not the shopping trip πŸ’œ

🌈 AUTHOR 🌈

Simon Wunderlich β€” Author of s3d 🫢


and that's the whole page, bestie, no notes πŸ’… that was S3D_PEP_MATERIAL_TEX(3) from the s3d manual, brought to you by the s3d crew β€” go texture something iconic, periodt βœ¨πŸŽ€