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

# s3dw\_ani\_mate(3)

doing the whole animation thing

## NAME

s3dw\_ani\_mate - doing the whole animation thing

## SYNOPSIS

```
#include <s3dw.h>
```

**void s3dw\_ani\_mate(void);**

## DESCRIPTION

Just call this in your mainloop if you want some nice window sliding animations. it's somewhat bloating, but you don't want to miss it ;)

```
 #include <time.h>   // nanosleep()
 static struct timespec t={0.33*1000*1000}; // 33 mili seconds
 void mainloop()
 {
         // keep this in your mainloop. this will do smooth animations for you ...
         s3dw_ani_mate();
         nanosleep(&t,NULL);
 }
 ....
 s3d_mainloop(mainloop);
```

## AUTHOR

**Simon Wunderlich**

Author of s3d
