projects
/
cyberay
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b06fd64e6bc87fa1d7c0b08d87a240fc32c35a30
[cyberay]
/
src
/
rt.h
1
#ifndef RT_H_
2
#define RT_H_
3
4
#include <cgmath/cgmath.h>
5
#include "image.h"
6
7
struct material {
8
cgm_vec3 color;
9
float roughness;
10
float ior;
11
12
struct image *tex_color;
13
};
14
15
struct framebuffer {
16
int width, height;
17
cgm_vec3 *pixels;
18
};
19
20
extern struct framebuffer fb;
21
22
int fbsize(int width, int height);
23
24
void render(void);
25
26
#endif /* RT_H_ */