projects
/
cyberay
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
foo
[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_ */