| 219 | return ret; |
| 220 | } |
| 221 | bv_variable create_bool2(bv_program* prog, glm::bvec2 val) |
| 222 | { |
| 223 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "bvec2" : "bool2")); |
| 224 | bv_object* retObj = bv_variable_get_object(ret); |
| 225 | |
| 226 | bv_object_set_property(retObj, "x", bv_variable_create_uchar(val.x)); |
| 227 | bv_object_set_property(retObj, "y", bv_variable_create_uchar(val.y)); |
| 228 | |
| 229 | return ret; |
| 230 | } |
| 231 | |
| 232 | // TODO: remove all other functions |
| 233 | bv_variable create_vec(bv_program* prog, bv_type type, u16 components) |