public:
- /**
+ /*
* Construction is initialization.
*/
-
impl() :
mMinFilter(GL_NEAREST),
mMagFilter(GL_NEAREST),
{
std::string path(name);
- texture::find_path(path);
+ resource::find(path);
mImage = image::alloc(path);
if (!mImage->is_valid())
}
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");
}
- /**
+ /*
* 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)
}
- /**
+ /*
* Sets some texture properties such as the filters and external
* coordinate behavior.
*/
-
void set_properties()
{
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, mMinFilter);
}
-bool texture::find_path(std::string& name)
-{
- return resource::find_path(name, "textures/", "png");
-}
-
-
} // namespace moof