---
name: "s3d_pep_material_texture"
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_material_texture"
---

# s3d\_pep\_material\_texture(3)

add texture to material

## NAME

s3d\_pep\_material\_texture - add texture to material

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_pep\_material\_texture(int** *object***, uint32\_t** *tex***);**

## DESCRIPTION

Assign the latest material a texture referenced by the index tex. Of course, you will have pushed this texture with s3d\_push\_texture()

## AUTHOR

**Simon Wunderlich**

Author of s3d
