Composite sprite
aoki-marika opened this issue · 0 comments
aoki-marika commented
Need a CompositeSprite drawable that can draw multiples images from an atlas with one draw call, mainly for text.
Current API idea is like below:
CompositeSprite *sprite = new CompositeSprite();
sprite->SetAtlas(atlas);
CompositeSprite::Sprite sprites[] =
{
{
.X = 0,
.Y = 0,
.Image = “image”,
},
...
};
sprite->SetSprites(sprites);
Each Sprite is auto sized to it’s image’s size. The sprites array may be a different type but oddly C arrays seems to be the best fit here.