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

Last change on this file since 1999 was 1999, checked in by sam, 10 years ago

neercs: don't show the FPS information unless the setup is open.

File size: 1013 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_polygon;
41    bool m_shader;
42    bool m_shader_glow;
43    bool m_shader_blur;
44    bool m_shader_remanence;
45    bool m_shader_copper;
46    bool m_shader_color;
47    bool m_shader_noise;
48    bool m_shader_postfx;
49    bool m_shader_mirror;
50};
51
52#endif // __VIDEO_RENDER_H__
53
Note: See TracBrowser for help on using the repository browser.