Skip to content

Draw string view - #319

Open
dandistine wants to merge 2 commits into
developfrom
draw_string_view
Open

dandistine wants to merge 2 commits into
developfrom
draw_string_view

Conversation

@dandistine

Copy link
Copy Markdown
Collaborator

Change the string drawing functions to accept string_view. String_view is more convenient when you want to (for instance) have an array of unchanging strings to draw.

The conversion from const std::string& to std::string_view is also essentially free at run time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants