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

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

neercs: theme support again (not really working yet)

File size: 1.0 KB
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 InitVar();
31    void SetupVar();
32    void UpdateVar();
33    void UpdateSize();
34
35    caca_canvas_t *m_cv_screen, *m_cv_setup;
36    class TextRender *m_txt_screen, *m_txt_setup;
37
38    Entity *m_fps_debug;
39
40    bool m_ready;
41    bool m_pause;
42    bool m_shader;
43    bool m_shader_glow;
44    bool m_shader_blur;
45    bool m_shader_remanence;
46    bool m_shader_copper;
47    bool m_shader_color;
48    bool m_shader_noise;
49    bool m_shader_postfx;
50    bool m_shader_mirror;
51    bool m_shader_radial;
52};
53
54#endif // __VIDEO_RENDER_H__
Note: See TracBrowser for help on using the repository browser.