diff options
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/render.h | 8 | ||||
-rw-r--r-- | src/renderer/render_backend.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/renderer/render.h b/src/renderer/render.h index 65ace4e..35c2d91 100644 --- a/src/renderer/render.h +++ b/src/renderer/render.h @@ -27,10 +27,10 @@ void texture_data_upload(texture* tex); // #backend // --- Uniforms /** @brief upload a vec3 of f32 to a uniform */ -void uniform_vec3f(u32 program_id, const char *uniform_name, vec3 *value); +void uniform_vec3f(u32 program_id, const char* uniform_name, vec3* value); /** @brief upload a single f32 to a uniform */ -void uniform_f32(u32 program_id, const char *uniform_name, f32 value); +void uniform_f32(u32 program_id, const char* uniform_name, f32 value); /** @brief upload a integer to a uniform */ -void uniform_i32(u32 program_id, const char *uniform_name, i32 value); +void uniform_i32(u32 program_id, const char* uniform_name, i32 value); /** @brief upload a mat4 of f32 to a uniform */ -void uniform_mat4f(u32 program_id, const char *uniform_name, mat4 *value);
\ No newline at end of file +void uniform_mat4f(u32 program_id, const char* uniform_name, mat4* value);
\ No newline at end of file diff --git a/src/renderer/render_backend.h b/src/renderer/render_backend.h index a524f7f..7e1c16c 100644 --- a/src/renderer/render_backend.h +++ b/src/renderer/render_backend.h @@ -12,11 +12,11 @@ void gfx_backend_shutdown(renderer* ren); void clear_screen(vec3 colour); -void bind_texture(shader s, texture *tex, u32 slot); +void bind_texture(shader s, texture* tex, u32 slot); void bind_mesh_vertex_buffer(void* backend, mesh* mesh); void draw_primitives(cel_primitive_topology primitive, u32 start_index, u32 count); -shader shader_create_separate(const char *vert_shader, const char *frag_shader); +shader shader_create_separate(const char* vert_shader, const char* frag_shader); void set_shader(shader s); // --- Uniforms |