Tue, 08 Jul 2025 17:45:33 +0200
remove functions that construct a transform from position/rotation/scale
src/ascension/transform.h | file | annotate | diff | comparison | revisions |
--- a/src/ascension/transform.h Mon Jul 07 22:51:06 2025 +0200 +++ b/src/ascension/transform.h Tue Jul 08 17:45:33 2025 +0200 @@ -76,18 +76,6 @@ // TODO: implement } -ASC_TRANFORM_FUNC void asc_transform_from_vec3f( - asc_transform transform, - asc_vec3f position, - asc_vec3f scale, - asc_vec3f rotation -) { - asc_transform_identity(transform); - asc_transform_scale3f(transform, scale); - asc_transform_translate3f(transform, position); - asc_transform_rotate_euler3f(transform, rotation); -} - ASC_TRANFORM_FUNC void asc_transform_translate2f( asc_transform transform, asc_vec2f vec @@ -113,16 +101,4 @@ // TODO: implement - and think about the point of origin! } -ASC_TRANFORM_FUNC void asc_transform_from_vec2f( - asc_transform transform, - asc_vec2f position, - asc_vec2f scale, - asc_vec2f rotation -) { - asc_transform_identity(transform); - asc_transform_scale2f(transform, scale); - asc_transform_translate2f(transform, position); - asc_transform_rotate_euler2f(transform, rotation); -} - #endif //ASCENSION_TRANSFORM_H