blob: 7e1c16ce7b46e69ce4b44131b98c82cd9d986054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/**
* @brief
*/
#pragma once
#include "maths_types.h"
#include "render_types.h"
/// --- Lifecycle
bool gfx_backend_init(renderer* ren);
void gfx_backend_shutdown(renderer* ren);
void clear_screen(vec3 colour);
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);
void set_shader(shader s);
// --- Uniforms
|