summaryrefslogtreecommitdiff
path: root/Runtime/Math/Vector4.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-29 13:36:49 +0800
committerchai <chaifix@163.com>2021-10-29 13:36:49 +0800
commit91c32cb173201ac8803a1e4452e8342969b8e484 (patch)
tree5e78c485b5fcfcf839a2348667597d7e10476214 /Runtime/Math/Vector4.h
parent1f92d4c389cceba6f90261d9cb29885c8a3ca24c (diff)
*GLSL test
Diffstat (limited to 'Runtime/Math/Vector4.h')
-rw-r--r--Runtime/Math/Vector4.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Runtime/Math/Vector4.h b/Runtime/Math/Vector4.h
new file mode 100644
index 0000000..c0f99f2
--- /dev/null
+++ b/Runtime/Math/Vector4.h
@@ -0,0 +1,32 @@
+#pragma once
+
+namespace Internal
+{
+
+ struct Vector4
+ {
+ float x, y, z, w;
+
+ Vector4(float x = 0, float y = 0, float z = 0, float w = 0)
+ {
+ this->x = x;
+ this->y = y;
+ this->z = z;
+ this->w = w;
+ }
+
+ inline void Set(float x, float y, float z, float w)
+ {
+ this->x = x;
+ this->y = y;
+ this->z = z;
+ this->w = w;
+ }
+
+
+ static Vector4 zero;
+ static Vector4 one;
+ };
+
+
+}