| 279 | } |
| 280 | |
| 281 | bv_type merge_type(bv_type type1, bv_type type2) |
| 282 | { |
| 283 | if (type1 == bv_type_float || type2 == bv_type_float) |
| 284 | return bv_type_float; |
| 285 | else if (type1 == bv_type_uint || type2 == bv_type_uint) |
| 286 | return bv_type_uint; |
| 287 | else if (type1 == bv_type_int || type2 == bv_type_int) |
| 288 | return bv_type_int; |
| 289 | else if (type1 == bv_type_ushort || type2 == bv_type_ushort) |
| 290 | return bv_type_ushort; |
| 291 | else if (type1 == bv_type_short || type2 == bv_type_short) |
| 292 | return bv_type_short; |
| 293 | else if (type1 == bv_type_uchar || type2 == bv_type_uchar) |
| 294 | return bv_type_uchar; |
| 295 | else if (type1 == bv_type_char || type2 == bv_type_char) |
| 296 | return bv_type_char; |
| 297 | |
| 298 | return type1; |
| 299 | } |
| 300 | glm::vec4 multiply_mat_vec(const sd::Matrix& mat, bv_object* vec, u8 transposed = 0) |
| 301 | { |
| 302 | glm::vec4 ret(0.0f); |
no outgoing calls
no test coverage detected