-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text renderer with support for colors #357
Conversation
@@ -222,6 +222,8 @@ Engine::Engine(util::Dir *data_dir, const char *windowtitle) | |||
bind_player_switch(input::action_t::SWITCH_TO_PLAYER_6, 6); | |||
bind_player_switch(input::action_t::SWITCH_TO_PLAYER_7, 7); | |||
bind_player_switch(input::action_t::SWITCH_TO_PLAYER_8, 8); | |||
|
|||
this->text_renderer.reset(new renderer::TextRenderer()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this->text_renderer = std::make_unique<renderer::TextRenderer>()
Nice work! We can merge it soon, i'll integrate it into #287 then but it is functional standalone. |
85843eb
to
ed6726e
Compare
std::string text; | ||
}; | ||
|
||
struct TextRenderBatch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing left: struct names are lowercase-underscored. text_render_batch
and text_render_batch_pass
.
Would also be nice if you added some /** documentation */
for the members of this class.
2286e28
to
c1511db
Compare
Completed the required changes. |
text renderer with support for colors
Thanks! Cool stuff. |
text renderer with support for colors
No description provided.