finished tutorial 9

This commit is contained in:
h4570
2022-08-24 19:27:16 +02:00
parent 5c375dd24f
commit a21bcee671
11 changed files with 130 additions and 41 deletions
@@ -11,6 +11,7 @@
#pragma once
#include <tyra>
#include <memory>
namespace Tyra {
@@ -23,7 +24,22 @@ class Tutorial09 : public Game {
void loop();
private:
void setDrawData();
void loadBags();
Engine* engine;
StaticPipeline stapip;
Vec4 cameraPosition, cameraLookAt;
M4x4 translation, rotation, scale, model;
std::array<Vec4, 3> vertices;
std::array<Color, 3> colors;
std::unique_ptr<StaPipBag> bag;
std::unique_ptr<StaPipInfoBag> infoBag;
std::unique_ptr<StaPipColorBag> colorBag;
};
} // namespace Tyra