-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender_dummy.c
52 lines (41 loc) · 1.1 KB
/
render_dummy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "base/base.h"
#include "render.h"
////////////////////////////////////////////////////////////////
//
//
// Main
//
//
////////////////////////////////////////////////////////////////
extern_c void r_startup(r_state *state, HWND hwnd) {
unused(state, hwnd);
}
extern_c void r_shutdown(r_state *state) {
unused(state);
}
extern_c void r_render(r_state *state, ivec2 target_dim, r_pass_list pass_list, bool need_redraw) {
unused(state, target_dim, pass_list);
}
////////////////////////////////////////////////////////////////
//
//
// Textures
//
//
////////////////////////////////////////////////////////////////
extern_c r_tex r_create_texture(r_state *state, ivec2 dim, r_tex_format format) {
unused(state, dim);
return (r_tex) { 0 };
}
extern_c void r_destroy_texture(r_state *state, r_tex tex) {
unused(state, tex);
}
extern_c void r_update_texture(r_state *state, r_tex tex, void *data, i64 data_size) {
unused(state, tex, data, data_size);
}