| 35 | namespace oid { |
| 36 | |
| 37 | class GLTextRenderer { |
| 38 | public: |
| 39 | GLuint text_vbo{0}; |
| 40 | GLuint text_tex{0}; |
| 41 | |
| 42 | Array_256_2 text_texture_offsets{}; |
| 43 | Array_256_2 text_texture_advances{}; |
| 44 | Array_256_2 text_texture_sizes{}; |
| 45 | Array_256_2 text_texture_tls{}; |
| 46 | |
| 47 | GLTextRenderer(const RenderCanvas& canvas, GlyphAtlas atlas); |
| 48 | ~GLTextRenderer(); |
| 49 | |
| 50 | [[nodiscard]] bool initialize(); |
| 51 | |
| 52 | ShaderProgram text_prog; |
| 53 | |
| 54 | float text_texture_width{0}; |
| 55 | float text_texture_height{0}; |
| 56 | |
| 57 | private: |
| 58 | void upload_atlas(); |
| 59 | |
| 60 | const RenderCanvas& canvas_; |
| 61 | GlyphAtlas atlas_; |
| 62 | }; |
| 63 | |
| 64 | } // namespace oid |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected