Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSplit text runs into chunks of 32 glyphs each, and only pack primitives in the visible rect. #324
Conversation
in the visible rect.
| let glyph_index = gl::get_uniform_block_index(program_id.0, "Glyphs"); | ||
| gl::uniform_block_binding(program_id.0, glyph_index, UBO_BIND_GLYPHS); | ||
|
|
||
| println!("PrimShader {}: items={}/{} tiles={}/{} layers={}/{} glyphs={}", |
This comment has been minimized.
This comment has been minimized.
| }; | ||
|
|
||
| struct Glyph { | ||
| vec4 local_rect; | ||
| vec4 color; |
This comment has been minimized.
This comment has been minimized.
| @@ -3,24 +3,42 @@ | |||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |||
|
|
|||
This comment has been minimized.
This comment has been minimized.
421af4f
to
af0d188
af0d188
to
f5ed4e3
|
@pcwalton Let me know when this is complete and ready for review. |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
pcwalton commentedAug 3, 2016
•
edited by larsbergstrom
r? @glennw
This change is