summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-21 10:23:34 -0500
committersanine-a <sanine.not@pm.me>2020-05-21 10:23:34 -0500
commit5379b4214696e64902c5e10b3d4ef3d503fddcc4 (patch)
tree589270053f276534b2f1f12bf20e62de209af7f0
parent8b7e8a1a3e77b4e3b56ea9025af8b254faa16c13 (diff)
refactor: rename honey_shader_set_matrix_4vf to honey_shader_set_mat4
-rw-r--r--include/shader.h6
-rw-r--r--src/shader.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/shader.h b/include/shader.h
index bfdb090..610322e 100644
--- a/include/shader.h
+++ b/include/shader.h
@@ -50,9 +50,9 @@ void honey_shader_set_int(honey_shader shader,
* @param[in] int_name The name of the matrix uniform
* @param[in] number The value of the matrix uniform
*/
-void honey_shader_set_matrix_4fv(honey_shader shader,
- char* matrix_name,
- float* matrix);
+void honey_shader_set_mat4(honey_shader shader,
+ char* matrix_name,
+ float* matrix);
/** @brief Use a shader.
*/
diff --git a/src/shader.c b/src/shader.c
index 207ce30..b9e13da 100644
--- a/src/shader.c
+++ b/src/shader.c
@@ -99,9 +99,9 @@ void honey_shader_set_int(honey_shader shader,
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-void honey_shader_set_matrix_4fv(honey_shader shader,
- char* matrix_name,
- float* matrix) {
+void honey_shader_set_mat4(honey_shader shader,
+ char* matrix_name,
+ float* matrix) {
glUseProgram(shader);
unsigned int matrix_location = glGetUniformLocation(shader, matrix_name);
glUniformMatrix4fv(matrix_location, 1, GL_FALSE, matrix);