diff options
Diffstat (limited to 'vendor/libftm/src/mat4/ftm_mat4set.c')
| -rw-r--r-- | vendor/libftm/src/mat4/ftm_mat4set.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/libftm/src/mat4/ftm_mat4set.c b/vendor/libftm/src/mat4/ftm_mat4set.c new file mode 100644 index 0000000..55e8125 --- /dev/null +++ b/vendor/libftm/src/mat4/ftm_mat4set.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ftm_mat4set.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/05/12 11:21:20 by charles #+# #+# */ +/* Updated: 2020/05/12 11:21:58 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libftm_mat4.h" + +t_ftmmat4 *ftm_mat4set(t_ftmmat4 *mat4, size_t y, size_t x, float value) +{ + mat4->m[y * 4 + x] = value; + return (mat4); +} |
