2 #ifndef SHADY_RENDERER_HPP
3 #define SHADY_RENDERER_HPP
16 Renderer(const std::vector
<std::string
> & pps
);
21 * Initialize the rendering system.
23 bool init(size_t width
, size_t height
);
25 void renderShadowmap(const World
& world
);
29 * @param camera The transformation from model space to view space.
31 void renderScene(const transform
& camera
, const World
& world
);
33 void postprocess(float radius
, float var
, float time
);
36 * Set a new render size.
38 void resized(size_t width
, size_t height
);
47 bool checkGl(const char * action
, bool fatal
= false);
49 #endif // SHADY_RENDERER_HPP