---
name: "s3d_pep_polygon_tex_coord"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_pep_polygon_tex_coord"
---

# s3d\_pep\_polygon\_tex\_coord(3)

add texture coordinates to polygon

## NAME

s3d\_pep\_polygon\_tex\_coord - add texture coordinates to 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

Pimp the last polygon pushed with some textures coordinates, x and y values for each vertex point respectively. Those values may be between 0 and 1 and are vertex points on the texture defined in the material of the polygon. If you have more polygons which should get a texture, use s3d\_pep\_polygon\_tex\_coords()

## AUTHOR

**Simon Wunderlich**

Author of s3d
