summaryrefslogtreecommitdiffstats
path: root/libs/rs/scriptc/rs_types.rsh
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/scriptc/rs_types.rsh')
-rw-r--r--libs/rs/scriptc/rs_types.rsh10
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/rs/scriptc/rs_types.rsh b/libs/rs/scriptc/rs_types.rsh
index 69e1aed..489b034 100644
--- a/libs/rs/scriptc/rs_types.rsh
+++ b/libs/rs/scriptc/rs_types.rsh
@@ -55,18 +55,22 @@ typedef int int3 __attribute__((ext_vector_type(3)));
typedef int int4 __attribute__((ext_vector_type(4)));
-typedef struct {
+typedef struct rs_matrix4x4_s {
float m[16];
} rs_matrix4x4;
-typedef struct {
+typedef struct rs_matrix3x3_s {
float m[9];
} rs_matrix3x3;
-typedef struct {
+typedef struct rs_matrix2x2_s {
float m[4];
} rs_matrix2x2;
+typedef struct rs_quaternion_s {
+ float w, x, y, z;
+} rs_quaternion;
+
#define RS_PACKED __attribute__((packed, aligned(4)))