Temp commit. Need to store all sh... Changes

This commit is contained in:
korenkonder
2022-06-13 02:18:05 +03:00
parent 913c874c01
commit 82da8a484d
261 changed files with 23706 additions and 17661 deletions
+73
View File
@@ -0,0 +1,73 @@
/*
by korenkonder
GitHub/GitLab: korenkonder
*/
#include "vec.hpp"
const __m128 vec2_negate = { -0.0f, -0.0f, 0.0f, 0.0f };
const __m128 vec3_negate = { -0.0f, -0.0f, -0.0f, 0.0f };
const __m128 vec4_negate = { -0.0f, -0.0f, -0.0f, -0.0f };
const vec4i vec4_mask_vec2 = { (int32_t)0xFFFFFFFF, (int32_t)0xFFFFFFFF, (int32_t)0x00000000, (int32_t)0x00000000 };
const vec4i vec4_mask_vec3 = { (int32_t)0xFFFFFFFF, (int32_t)0xFFFFFFFF, (int32_t)0xFFFFFFFF, (int32_t)0x00000000 };
const __m128d vec2d_negate = { -0.0, -0.0 };
const vec2 vec2_identity = { 1.0f, 1.0f };
const vec3 vec3_identity = { 1.0f, 1.0f, 1.0f };
const vec4 vec4_identity = { 1.0f, 1.0f, 1.0f, 1.0f };
const vec2 vec2_null = { 0.0f, 0.0f };
const vec3 vec3_null = { 0.0f, 0.0f, 0.0f };
const vec4 vec4_null = { 0.0f, 0.0f, 0.0f, 0.0f };
const vec2i vec2i_null = { 0, 0 };
const vec3i vec3i_null = { 0, 0, 0 };
const vec4i vec4i_null = { 0, 0, 0, 0 };
const vec2d vec2d_identity = { 1.0f, 1.0f };
const vec2d vec2d_null = { 0.0f, 0.0f };
const vec4u vec4u_identity = { 1.0f, 1.0f, 1.0f, 1.0f };
const vec4u vec4u_null = { 0.0f, 0.0f, 0.0f, 0.0f };
const vec4iu vec4iu_null = { 0, 0, 0, 0 };
vec4::operator vec4u() const {
vec4u v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return v;
}
vec4u::operator vec4() const {
vec4 v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return v;
}
vec4i::operator vec4iu() const {
vec4iu v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return v;
}
vec4iu::operator vec4i() const {
vec4i v;
v.x = x;
v.y = y;
v.z = z;
v.w = w;
return v;
}