mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-02 01:44:23 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -60,7 +60,7 @@ Texture *Stitcher::constructTexture(bool mipmap)
|
||||
stitchedTexture = TextureManager::getInstance()->createTexture(name, Texture::TM_DYNAMIC, storageX, storageY, Texture::TFMT_RGBA, mipmap);
|
||||
stitchedTexture->fill(stitchedTexture->getRect(), 0xffff0000);
|
||||
|
||||
vector<StitchSlot *> *slots = gatherAreas();
|
||||
std::vector<StitchSlot *> *slots = gatherAreas();
|
||||
for (int index = 0; index < slots->size(); index++)
|
||||
{
|
||||
StitchSlot *slot = slots->at(index);
|
||||
@@ -96,9 +96,9 @@ void Stitcher::stitch()
|
||||
}
|
||||
}
|
||||
|
||||
vector<StitchSlot *> *Stitcher::gatherAreas()
|
||||
std::vector<StitchSlot *> *Stitcher::gatherAreas()
|
||||
{
|
||||
vector<StitchSlot *> *result = new vector<StitchSlot *>();
|
||||
std::vector<StitchSlot *> *result = new std::vector<StitchSlot *>();
|
||||
|
||||
//for (StitchSlot slot : storage)
|
||||
for(AUTO_VAR(it, storage.begin()); it != storage.end(); ++it)
|
||||
|
||||
Reference in New Issue
Block a user