]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Tilemap.cc
preliminary physics, sound, hud
[chaz/yoink] / src / Moof / Tilemap.cc
index 9f24b1bce91547a200bf7de7090f9ce6a8110ca8..17642c723c9fccda03ee36325b14ff917f8b9218 100644 (file)
@@ -36,7 +36,7 @@
 namespace Mf {
 
 
-class Tilemap::TilemapImpl : public Mippleton<TilemapImpl>
+class Tilemap::Impl : public Mippleton<Impl>
 {
        static GLint filterFromString(const std::string& filter)
        {
@@ -75,8 +75,8 @@ class Tilemap::TilemapImpl : public Mippleton<TilemapImpl>
        }
 
 public:
-       TilemapImpl(const std::string& name) :
-               Mippleton<TilemapImpl>(name),
+       Impl(const std::string& name) :
+               Mippleton<Impl>(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");
 }
 
 
This page took 0.018141 seconds and 4 git commands to generate.