Migración del Renderer al nuevo sistema de Drawables.

El Renderer extrae los datos de los drawables, eliminando la clase DrawCall.
Los Drawables utilizan los nuevos Drawables. Aunque falta pulir la forma en que lo hacen.
This commit is contained in:
2022-09-19 20:10:02 +02:00
parent 6b87711424
commit f2bf82e370
16 changed files with 372 additions and 224 deletions
+3 -1
View File
@@ -63,8 +63,10 @@ public:
UE::TextBox text1(OP_Regular);
//UE::TextBox text2(OP_Bold, "Otro texto");
//UE::TextBox(OP_Regular)
texts.push_back(text1);
texts.push_back(text1); //Copiamos el text1.
//texts.emplace_back(OP_Regular); //Construimos el text1.
//texts.push_back(text2);
}
+3 -3
View File
@@ -112,7 +112,7 @@ private:
for (int i = 0; i < sprites.size(); i++)
{
UE::Sprite& sp = sprites.at(i);
SDL_Rect sp_Pos = sp.getPositionRect();
SDL_Rect sp_Pos = sp.GetTransformRect();
if (SDL_HasIntersection(&mouseRect, &sp_Pos))
{
int i = rand() % 5;
@@ -195,8 +195,8 @@ private:
}
private:
const int vAmount = 10;
const int hAmount = 10;
const int vAmount = 256;
const int hAmount = 256;
std::vector<UE::Sprite> sprites = {};