You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However one function glm_vec2 does exactly that.
Issue created to discuss if we should utilize functions
with no _make suffix to fill in vector by individual items.
glm_vec2(x, y, dest);
glm_vec3(x, y, z, dest);
glm_vec4(x, y, z, w, dest);
The text was updated successfully, but these errors were encountered:
I like the proposal but let wait a little bit to get more feedbacks,
Currently glm_vec3() creates vec3 from vec4 or pointer, glm_vec2() creates vec2 from pointer. glm_vec4(vec3, 1.0, dest) promotes vec3 to vec4 by adding last element.
We must DEPRECATE these or select alternative names for:
glm_vec2(x, y, dest);
glm_vec3(x, y, z, dest);
glm_vec4(x, y, z, w, dest);
e.g.
glm_vec2_from(x, y, dest);
glm_vec3_from(x, y, z, dest);
glm_vec4_from(x, y, z, w, dest);
glm_vec2_makes(x, y, dest);
glm_vec3_make_s(x, y, z, dest);
glm_vec4_make_s(x, y, z, w, dest);
glm_vec2_init(x, y, dest);
glm_vec3_init(x, y, z, dest);
glm_vec4_init(x, y, z, w, dest);
or any better names ... if we chose this direction
Multiple PR's are merge to allow creating matrices and vectors given a pointer to an array of floats. All suffixed with name
_make
glm_vec2_make
glm_vec3_make
glm_vec4_make
glm_mat2_make
glm_mat3_make
glm_mat4_make
Later PR's
glm_mat2x3_make
glm_mat2x4_make
glm_mat3x2_make
glm_mat3x4_make
glm_mat4x2_make
glm_mat4x3_make
Full set
However one function
glm_vec2
does exactly that.Issue created to discuss if we should utilize functions
with no
_make
suffix to fill in vector by individual items.The text was updated successfully, but these errors were encountered: