sprite animation refactor

This commit is contained in:
turanszkij
2018-11-21 19:07:37 +00:00
parent 1bbfc1bd42
commit 9c1e97ff63
12 changed files with 169 additions and 245 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ void EditorLoadingScreen::Load()
addFont(&font);
sprite = wiSprite("../logo/logo_small.png");
sprite.anim.opa = 0.02f;
sprite.anim.opa = 1;
sprite.anim.repeatable = true;
sprite.params.pos = XMFLOAT3(wiRenderer::GetDevice()->GetScreenWidth()*0.5f, wiRenderer::GetDevice()->GetScreenHeight()*0.5f - font.textHeight(), 0);
sprite.params.siz = XMFLOAT2(128, 128);