summaryrefslogtreecommitdiff
path: root/in_practice/breakout/post_processor.h
blob: 5056aeee3ce9640aa1e023a77c56925522e5b6b5 (plain)
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
#ifndef POST_PROCESSOR_H
#define POST_PROCESSOR_H

#include "types.h"

struct post_processor {
	i32 width, height;
	u32 msfbo;
	u32 fbo;
	u32 rbo;
	u32 texture;
	u32 vao;
	i32 confuse, chaos, shake;
	u32 shader;
};

struct post_processor init_post_processor(i32 width, i32 height, u32 shader);
void begin_render(struct post_processor processor);
void end_render(struct post_processor processor);
void render_post(struct post_processor processor, f32 time);

#endif