X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTilemap.cc;h=17642c723c9fccda03ee36325b14ff917f8b9218;hp=9f24b1bce91547a200bf7de7090f9ce6a8110ca8;hb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4;hpb=eebb993ca929c3f4c235cad9e01dc4797fcd2945 diff --git a/src/Moof/Tilemap.cc b/src/Moof/Tilemap.cc index 9f24b1b..17642c7 100644 --- a/src/Moof/Tilemap.cc +++ b/src/Moof/Tilemap.cc @@ -36,7 +36,7 @@ namespace Mf { -class Tilemap::TilemapImpl : public Mippleton +class Tilemap::Impl : public Mippleton { static GLint filterFromString(const std::string& filter) { @@ -75,8 +75,8 @@ class Tilemap::TilemapImpl : public Mippleton } public: - TilemapImpl(const std::string& name) : - Mippleton(name), + Impl(const std::string& name) : + Mippleton(name), magFilter_(GL_NEAREST), minFilter_(GL_NEAREST), nTilesS_(1), @@ -89,7 +89,7 @@ public: void loadFromFile() { - Deserializer deserializer(Tilemap::getPathToResource(getName())); + Deserializer deserializer(Tilemap::getPath(getName())); SerializablePtr root = deserializer.deserialize(); @@ -164,10 +164,8 @@ public: Tilemap::Tilemap(const std::string& name) : Texture(name), - impl_(Tilemap::TilemapImpl::retain(name), &Tilemap::TilemapImpl::release) + impl_(Tilemap::Impl::retain(name), &Tilemap::Impl::release) { - bind(); - setMinFilter(impl_->minFilter_); setMagFilter(impl_->magFilter_); setWrapS(impl_->wrapS_); @@ -225,9 +223,9 @@ bool Tilemap::getTileCoords(unsigned index, Scalar coords[8], } -std::string Tilemap::getPathToResource(const std::string& name) +std::string Tilemap::getPath(const std::string& name) { - return Resource::getPathToResource("tilemaps/" + name + ".json"); + return Resource::getPath("tilemaps/" + name + ".json"); }