source: trunk/tools/neercs/video/render.h @ 2007

Last change on this file since 2007 was 2007, checked in by rez, 8 years ago

neercs: added radial blur! FUCK YEAH \:D/

File size: 1017 bytes
Line 
1//
2// Neercs
3//
4
5#if !defined __VIDEO_RENDER_H__
6#define __VIDEO_RENDER_H__
7
8class Render : public WorldEntity
9{
10public:
11    Render(caca_canvas_t *caca);
12    virtual ~Render();
13
14    char const *GetName() { return "<title>"; }
15
16protected:
17    virtual void TickGame(float seconds);
18    virtual void TickDraw(float seconds);
19
20    void Draw2D();
21    void Draw3D();
22
23private:
24    int CreateGLWindow();
25    int InitDraw();
26    void ShaderSimple(FrameBuffer *fbo_output, int n);
27    void TraceQuad();
28    void Pause();
29    void Shader();
30    void UpdateVar();
31    void UpdateSize();
32
33    caca_canvas_t *m_cv_screen, *m_cv_setup;
34    class TextRender *m_txt_screen, *m_txt_setup;
35
36    Entity *m_fps_debug;
37
38    bool m_ready;
39    bool m_pause;
40    bool m_shader;
41    bool m_shader_glow;
42    bool m_shader_blur;
43    bool m_shader_remanence;
44    bool m_shader_copper;
45    bool m_shader_color;
46    bool m_shader_noise;
47    bool m_shader_postfx;
48    bool m_shader_mirror;
49    bool m_shader_radial;
50};
51
52#endif // __VIDEO_RENDER_H__
Note: See TracBrowser for help on using the repository browser.