summaryrefslogtreecommitdiff
path: root/src/renderer/render.h
blob: e095e1ce12af601053219470dd6029540f4dc400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "loaders.h"
#include "render_types.h"

// --- Lifecycle
/** @brief initialise the render system frontend */
bool renderer_init(renderer* ren);
/** @brief shutdown the render system frontend */
void renderer_shutdown(renderer* ren);

// --- Frame

void render_frame_begin(renderer* ren);
void render_frame_end(renderer* ren);

// ---
texture texture_data_load(const char* path, bool invert_y);  // #frontend
void texture_data_upload(texture* tex);                      // #backend