entity array writes to gpu-ringbuffer + general updates

This commit is contained in:
turanszkij
2017-10-25 17:18:09 +01:00
parent b5f6e24a72
commit 73153a42ae
19 changed files with 182 additions and 195 deletions
+6 -5
View File
@@ -84,12 +84,16 @@ void Editor::Initialize()
void EditorLoadingScreen::Load()
{
font = wiFont("Loading...", wiFontProps((int)(wiRenderer::GetDevice()->GetScreenWidth()*0.5f), (int)(wiRenderer::GetDevice()->GetScreenHeight()*0.5f), 36,
WIFALIGN_MID, WIFALIGN_MID));
addFont(&font);
sprite = wiSprite("../logo/logo_small.png");
sprite.anim.opa = 0.02f;
sprite.anim.repeatable = true;
sprite.effects.pos = XMFLOAT3(wiRenderer::GetDevice()->GetScreenWidth()*0.5f, wiRenderer::GetDevice()->GetScreenHeight()*0.5f, 0);
sprite.effects.pos = XMFLOAT3(wiRenderer::GetDevice()->GetScreenWidth()*0.5f, wiRenderer::GetDevice()->GetScreenHeight()*0.5f - font.textHeight(), 0);
sprite.effects.siz = XMFLOAT2(128, 128);
sprite.effects.pivot = XMFLOAT2(0.5f, 0.5f);
sprite.effects.pivot = XMFLOAT2(0.5f, 1.0f);
sprite.effects.quality = QUALITY_BILINEAR;
sprite.effects.blendFlag = BLENDMODE_ALPHA;
addSprite(&sprite);
@@ -99,9 +103,6 @@ void EditorLoadingScreen::Load()
void EditorLoadingScreen::Compose()
{
__super::Compose();
wiFont("Loading...", wiFontProps((int)(wiRenderer::GetDevice()->GetScreenWidth()*0.5f), (int)(wiRenderer::GetDevice()->GetScreenHeight()*0.6f), 36,
WIFALIGN_MID, WIFALIGN_MID)).Draw(GRAPHICSTHREAD_IMMEDIATE);
}
void EditorLoadingScreen::Unload()
{