Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Split-off render sprite atlas - #8937

Merged
jfirebaugh merged 2 commits into
masterfrom
render-sprite-atlas
May 12, 2017
Merged

jfirebaugh merged 2 commits into
masterfrom
render-sprite-atlas

Conversation

@ivovandongen

@ivovandongen ivovandongen commented May 9, 2017 •

Copy link
Copy Markdown
Contributor

Splits the render side of sprite atlas for use on another thread.

See #8820

@ivovandongen ivovandongen added the Core The cross-platform C++ core, aka mbgl label May 9, 2017
@ivovandongen ivovandongen self-assigned this May 9, 2017
@ivovandongen
ivovandongen force-pushed the render-sprite-atlas branch from 2037da9 to 3803299 Compare May 10, 2017 11:57
@ivovandongen ivovandongen mentioned this pull request May 10, 2017
24 of 28 tasks
@ivovandongen

Copy link
Copy Markdown
Contributor Author

@jfirebaugh I've added an Impl to style::Image according to #8820 (comment). I kept the SpriteAtlas intact instead of adding the image collection directly on Style like you've suggested in #8820 (comment). Thought that might be a bit more nicely encapsulated, but I can change that if you prefer.

@ivovandongen
ivovandongen requested a review from jfirebaugh May 10, 2017 16:37
@jfirebaugh

Copy link
Copy Markdown
Contributor

Yes, I think it's better to add the image collection directly on Style. The main reason is that we want to make style images more like sources and layers -- a collection of items held by the style, which you can add to and remove from. Separately, "atlas" is a rendering-specific concept: a single texture which can be indexed into by vertex attributes in order to render individual images.

@ivovandongen
ivovandongen force-pushed the render-sprite-atlas branch from 68c785f to 385ac17 Compare May 12, 2017 19:41
@jfirebaugh
jfirebaugh merged commit cc9f040 into master May 12, 2017
@jfirebaugh
jfirebaugh deleted the render-sprite-atlas branch May 12, 2017 20:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Core The cross-platform C++ core, aka mbgl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants