]> Dogcows Code - chaz/yoink/blobdiff - src/moof/texture.cc
testing new non-autotools build system
[chaz/yoink] / src / moof / texture.cc
index f8687f0c5f98b38110104225f5d47d357b97c43e..94d792dfc9d8ea295a152508d9c309700b1a5c93 100644 (file)
@@ -105,10 +105,9 @@ class texture::impl : public manager<impl>
 
 public:
 
-       /**
+       /*
         * Construction is initialization.
         */
-
        impl() :
                mMinFilter(GL_NEAREST),
                mMagFilter(GL_NEAREST),
@@ -138,7 +137,7 @@ public:
        {
                std::string path(name);
                
-               texture::find_path(path);
+               resource::find(path);
 
                mImage = image::alloc(path);
                if (!mImage->is_valid())
@@ -161,8 +160,7 @@ public:
                }
                else
                {
-                       log_info << "loading tiles from texture " << path
-                                       << std::endl;
+                       log_info("loading tiles from texture", path);
 
                        script::slot globals = script.globals();
                        globals.get(mTilesS, "tiles_s");
@@ -175,11 +173,10 @@ public:
        }
 
 
-       /**
+       /*
         * Upload the image to GL so that it will be accessible by a much more
         * manageable handle and hopefully reside in video memory.
         */
-
        void upload_to_gl()
        {
                if (mObject)
@@ -210,11 +207,10 @@ public:
        }
 
 
-       /**
+       /*
         * Sets some texture properties such as the filters and external
         * coordinate behavior.
         */
-
        void set_properties()
        {
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, mMinFilter);
@@ -399,11 +395,5 @@ bool texture::tile_coordinates(int index, scalar coords[8],
 }
 
 
-bool texture::find_path(std::string& name)
-{
-       return resource::find_path(name, "textures/", "png");
-}
-
-
 } // namespace moof
 
This page took 0.019003 seconds and 4 git commands to generate.