diff options
author | sanine-a <sanine.not@pm.me> | 2020-06-05 18:20:49 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-06-05 18:20:49 -0500 |
commit | e4dd7978d24f53465c8475bd3a027047b4a53bb8 (patch) | |
tree | 5c861830a2f7ad6ed2bcc0f9f04cd504403b3292 /src/shader.c | |
parent | 70784cdb24628e758df27cbe1965ff83102decb0 (diff) |
refactor: rename honey_error to honey_result
Diffstat (limited to 'src/shader.c')
-rw-r--r-- | src/shader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader.c b/src/shader.c index d570f52..898a7fc 100644 --- a/src/shader.c +++ b/src/shader.c @@ -2,7 +2,7 @@ /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -static honey_error read_file(char** destination, char* file_path) { +static honey_result read_file(char** destination, char* file_path) { FILE* f = fopen(file_path, "r"); if (f == NULL) { honey_error_set_string1(file_path); @@ -27,12 +27,12 @@ static honey_error read_file(char** destination, char* file_path) { /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -honey_error honey_shader_load(honey_shader* shader, +honey_result honey_shader_load(honey_shader* shader, char* vertex_shader_path, char* fragment_shader_path) { /* load vertex shader code */ char* vertex_shader_code; - honey_error result = read_file(&vertex_shader_code, + honey_result result = read_file(&vertex_shader_code, vertex_shader_path); if (result != HONEY_OK) return result; @@ -62,7 +62,7 @@ honey_error honey_shader_load(honey_shader* shader, /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -honey_error honey_shader_new(honey_shader* shader, +honey_result honey_shader_new(honey_shader* shader, char* vertex_shader_code, char* fragment_shader_code) { /* compile shaders */ |