diff options
author | sanine-a <sanine.not@pm.me> | 2020-05-23 11:50:54 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-05-23 11:50:54 -0500 |
commit | a247c0adac7b3e50c72fde9b197ef6eabfd38b0b (patch) | |
tree | ea0c49821dca6bcc7829051724f5ad7df6f26020 /include/shader.h | |
parent | 86568ae07c04da1bfc2edbd029c677a73328c099 (diff) |
add honey_shader_set_vec3()
Diffstat (limited to 'include/shader.h')
-rw-r--r-- | include/shader.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/shader.h b/include/shader.h index cbef3de..262b153 100644 --- a/include/shader.h +++ b/include/shader.h @@ -44,11 +44,20 @@ void honey_shader_set_int(honey_shader shader, char* int_name, int number); -/** @brief Set a mat4 uniform +/** @brief Set a vec3 uniform. + * @param[in] shader The shader to which the uniform belongs + * @param[in] vector_name The name of the vec3 uniform + * @param[in] vector The value of the vector uniform + */ +void honey_shader_set_vec3(honey_shader shader, + char* vector_name, + vec3 vector); + +/** @brief Set a mat4 uniform. * * @param[in] shader The shader to which the uniform belongs - * @param[in] int_name The name of the matrix uniform - * @param[in] number The value of the matrix uniform + * @param[in] matrix_name The name of the matrix uniform + * @param[in] matrix The value of the matrix uniform */ void honey_shader_set_mat4(honey_shader shader, char* matrix_name, |