source: trunk/tools/neercs/video/text-render.h @ 2318

Last change on this file since 2318 was 2318, checked in by sam, 8 years ago

build: fix all vector/scalar type mismatches such as "vec2 * double"
instead of "vec2 * float".

  • Property svn:keywords set to Id
File size: 640 bytes
Line 
1//
2// Neercs
3//
4
5#if !defined __TEXT_RENDER_H__
6#define __TEXT_RENDER_H__
7
8class TextRender
9{
10public:
11    TextRender(caca_canvas_t *caca, ivec2 font_size);
12    void Init();
13    void Render();
14    void Blit(ivec2 pos, ivec2 size);
15
16private:
17    void CreateBuffers();
18
19    caca_canvas_t *m_caca;
20    ivec2 m_font_size, m_canvas_size, m_fbo_size;
21    int m_cells;
22
23    TileSet *m_font;
24
25    Shader *m_shader;
26    ShaderAttrib m_color, m_char, m_vertexid;
27    ShaderUniform m_texture, m_transform, m_datasize;
28    VertexDeclaration *m_vdecl;
29    VertexBuffer *m_vbo1, *m_vbo2, *m_vbo3;
30
31    FrameBuffer *m_fbo;
32};
33
34#endif // __TEXT_RENDER_H__
35
Note: See TracBrowser for help on using the repository browser.