diff options
Diffstat (limited to 'vendor/libftm/inc/libftm_mat4.h')
| -rw-r--r-- | vendor/libftm/inc/libftm_mat4.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/vendor/libftm/inc/libftm_mat4.h b/vendor/libftm/inc/libftm_mat4.h index 5fc183b..16e1c61 100644 --- a/vendor/libftm/inc/libftm_mat4.h +++ b/vendor/libftm/inc/libftm_mat4.h @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/12 11:04:59 by charles #+# #+# */ -/* Updated: 2020/05/12 17:21:34 by charles ### ########.fr */ +/* Updated: 2020/05/14 16:46:03 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -47,8 +47,14 @@ typedef struct t_ftmmat4 *ftm_mat4init_eye(t_ftmmat4 *mat4, float x); t_ftmmat4 *ftm_mat4init_fill(t_ftmmat4 *mat4, float x); t_ftmmat4 *ftm_mat4init_frustum(t_ftmmat4 *mat4, t_ftmfrustum *frustum); -t_ftmmat4 *ftm_mat4init_frustum_sym(t_ftmmat4 *mat4, t_ftmfrustum_sym *frustum); -t_ftmmat4 *ftm_mat4init_perspective(t_ftmmat4 *mat4, float fov, float aspect_ratio, float near, float far); + +t_ftmmat4 *ftm_mat4init_frustum_sym( + t_ftmmat4 *mat4, t_ftmfrustum_sym *frustum); + +t_ftmmat4 *ftm_mat4init_perspective( + t_ftmmat4 *mat4, float fov, float aspect_ratio, + float near, float far); + t_ftmmat4 *ftm_mat4translate(t_ftmmat4 *mat4, float x, float y, float z); t_ftmmat4 *ftm_mat4rotate(t_ftmmat4 *mat4, float radian, t_ftmvec3 *axis); t_ftmmat4 *ftm_mat4scale(t_ftmmat4 *mat4, float x, float y, float z); @@ -56,5 +62,4 @@ t_ftmmat4 *ftm_mat4mul(t_ftmmat4 *dst, t_ftmmat4 *other); t_ftmmat4 *ftm_mat4set(t_ftmmat4 *mat4, size_t y, size_t x, float value); float ftm_mat4get(t_ftmmat4 *mat4, size_t y, size_t x); - #endif |
