X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=ir.h;h=eda1fbde866f7289a9d19b82f7cf6553d692fa34;hb=e3dc56fc923e5dc8d404e91cc5ef36ef0bfcc9e6;hp=9eab51f73f5d9282e4597986badb38ff85fb6268;hpb=f8b3081c44fa51860bb56f7d13b3b730717e9e3b;p=xonotic%2Fgmqcc.git diff --git a/ir.h b/ir.h index 9eab51f..eda1fbd 100644 --- a/ir.h +++ b/ir.h @@ -55,6 +55,8 @@ typedef struct ir_value_s { char *vstring; struct ir_value_s *vpointer; struct ir_function_s *vfunc; + quaternion vquat; + matrix vmat; } constval; struct { @@ -89,6 +91,8 @@ bool GMQCC_WARN ir_value_set_string(ir_value*, const char *s); bool GMQCC_WARN ir_value_set_vector(ir_value*, vector v); /*bool ir_value_set_pointer_v(ir_value*, ir_value* p); */ /*bool ir_value_set_pointer_i(ir_value*, int i); */ +bool GMQCC_WARN ir_value_set_quaternion(ir_value*, quaternion v); +bool GMQCC_WARN ir_value_set_matrix(ir_value*, matrix v); MEM_VECTOR_PROTO(ir_value, ir_life_entry_t, life); /* merge an instruction into the life-range */