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:
1 parent
6b87711424
commit
f2bf82e370
16 files changed
+372
-224
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
Reference in new issue
Block a user