修改OpenGl渲染底层之前
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Tile.h"
|
||||
#include "Tool/Tool_String.h"
|
||||
#include "EngineCore/Game.h"
|
||||
Tile::Tile()
|
||||
{
|
||||
}
|
||||
@@ -12,6 +13,7 @@ Tile::Tile(std::string Path) : Sprite()
|
||||
|
||||
m_texture = new Texture(std::get<std::string>(m_data["path"]), std::get<int>(m_data["idx"]));
|
||||
Sprite::Init();
|
||||
this->imgPath = Path;
|
||||
}
|
||||
|
||||
Tile::~Tile()
|
||||
@@ -42,4 +44,4 @@ void Tile::InitInfo(std::string Path)
|
||||
m_data["pos"] = std::stoi(Data.Get());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user