| 189 | } |
| 190 | |
| 191 | bv_variable create_float2(bv_program* prog, glm::vec2 val) |
| 192 | { |
| 193 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "vec2" : "float2")); |
| 194 | bv_object* retObj = bv_variable_get_object(ret); |
| 195 | |
| 196 | bv_object_set_property(retObj, "x", bv_variable_create_float(val.x)); |
| 197 | bv_object_set_property(retObj, "y", bv_variable_create_float(val.y)); |
| 198 | |
| 199 | return ret; |
| 200 | } |
| 201 | bv_variable create_int2(bv_program* prog, glm::ivec2 val) |
| 202 | { |
| 203 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec2" : "int2")); |
no test coverage detected