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

Last change on this file since 1966 was 1966, checked in by sam, 6 years ago

neercs: use two different text rendering objects for the screen and
the setup.

File size: 979 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    bool m_ready;
37    bool m_pause;
38    bool m_polygon;
39    bool m_setup;
40    bool m_shader;
41    bool m_shader_glow;
42    bool m_shader_blur;
43    bool m_shader_remanency;
44    bool m_shader_copper;
45    bool m_shader_color;
46    bool m_shader_noise;
47    bool m_shader_postfx;
48};
49
50#endif // __VIDEO_RENDER_H__
51
Note: See TracBrowser for help on using the repository browser.