MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / GLTextRenderer

Class GLTextRenderer

src/visualization/gl_text_renderer.h:37–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace oid {
36
37class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected