MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / lib_add_mat

Function lib_add_mat

src/CommonLibrary.cpp:2758–2777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2756 return vec;
2757 }
2758 bv_object_info* lib_add_mat(bv_library* lib, const char* name)
2759 {
2760 bv_object_info* mat = bv_object_info_create(name);
2761 mat->on_delete = lib_common_mat_destructor;
2762 mat->on_copy = lib_common_mat_copy;
2763
2764 bv_object_info_add_ext_method(mat, name, lib_common_mat_constructor);
2765
2766 bv_object_info_add_ext_method(mat, "*", lib_common_mat_operator_multiply);
2767 bv_object_info_add_ext_method(mat, "+", lib_common_mat_operator_add);
2768 bv_object_info_add_ext_method(mat, "++", lib_common_mat_operator_increment);
2769 bv_object_info_add_ext_method(mat, "--", lib_common_mat_operator_decrement);
2770 bv_object_info_add_ext_method(mat, "==", lib_common_mat_operator_equal);
2771 bv_object_info_add_ext_method(mat, "[]", lib_common_mat_operator_array_get);
2772 bv_object_info_add_ext_method(mat, "[]=", lib_common_mat_operator_array_set);
2773
2774 bv_library_add_object_info(lib, mat);
2775
2776 return mat;
2777 }
2778 }
2779}

Callers 2

LibraryFunction · 0.85
LibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected