| 140 | } |
| 141 | |
| 142 | bv_variable create_float4(bv_program* prog, glm::vec4 val) |
| 143 | { |
| 144 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "vec4" : "float4")); |
| 145 | bv_object* retObj = bv_variable_get_object(ret); |
| 146 | |
| 147 | bv_object_set_property(retObj, "x", bv_variable_create_float(val.x)); |
| 148 | bv_object_set_property(retObj, "y", bv_variable_create_float(val.y)); |
| 149 | bv_object_set_property(retObj, "z", bv_variable_create_float(val.z)); |
| 150 | bv_object_set_property(retObj, "w", bv_variable_create_float(val.w)); |
| 151 | |
| 152 | return ret; |
| 153 | } |
| 154 | bv_variable create_int4(bv_program* prog, glm::ivec4 val) |
| 155 | { |
| 156 | bv_variable ret = bv_variable_create_object(bv_program_get_object_info(prog, isGLSL(prog) ? "ivec4" : "int4")); |
no test coverage detected