From 018b7ce3f7d94af92fa4fab32ffdde451da7fcb9 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 23 May 2020 11:56:10 -0500 Subject: refactor: rename number, vector, etc in honey_shader_set_* to value --- include/shader.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/shader.h b/include/shader.h index 262b153..40561d4 100644 --- a/include/shader.h +++ b/include/shader.h @@ -38,30 +38,40 @@ enum honey_shader_result honey_shader_load(honey_shader* shader, * * @param[in] shader The shader to which the uniform belongs * @param[in] int_name The name of the integer uniform - * @param[in] number The value of the integer uniform + * @param[in] value The value of the integer uniform */ void honey_shader_set_int(honey_shader shader, char* int_name, - int number); + int value); + +/** @brief Set a float uniform. + * + * @param[in] shader The shader to which the uniform belongs + * @param[in] float_name The name of the float uniform + * @param[in] value The value of the float uniform + */ +void honey_shader_set_float(honey_shader shader, + char* float_name, + float value); /** @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 + * @param[in] value The value of the vector uniform */ void honey_shader_set_vec3(honey_shader shader, char* vector_name, - vec3 vector); + vec3 value); /** @brief Set a mat4 uniform. * * @param[in] shader The shader to which the uniform belongs * @param[in] matrix_name The name of the matrix uniform - * @param[in] matrix The value of the matrix uniform + * @param[in] value The value of the matrix uniform */ void honey_shader_set_mat4(honey_shader shader, char* matrix_name, - mat4 matrix); + mat4 value); /** @brief Use a shader. */ -- cgit v1.2.1