feat: base + display functions!!!!!

This commit is contained in:
mcolonna 2024-02-26 14:18:51 +01:00
parent ebb5931632
commit 664b18eb2e
187 changed files with 29451 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# How to import assets?
1. `sudo apt install magickimage`
2. cd to a directory where there is *only* .png files (or subdirectories)
3. Execute
```sh
for PNG in $(find . -type f)
do
convert "$PNG" "${PNG%.png}.xpm"
convert "$PNG" -alpha export "${PNG%.png}.alpha.xpm"
rm "$PNG"
done
```

3
dev/norm.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/zsh
setopt extendedglob
norminette -R CheckForbiddenSourceHeader ^(dev|mlx)

6
dev/tmp.c Normal file
View file

@ -0,0 +1,6 @@
#include "mlx.h"
int main()
{
mlx_xpm_file_to_img("../assets/object/snas/down.xpm");
}