#include <msp/datafile/objectloader.h>
#include "color.h"
#include "programdata.h"
+#include "texture.h"
namespace Msp {
namespace GL {
-class Texture;
class Texturing;
class Material
template<typename C>
void Material::LoaderBase<C>::property_texture(void (C::*set_texture)(const Texture *), const std::string &name)
{
- (static_cast<C &>(obj).*set_texture)(&get_collection().get<GL::Texture>(name));
+ /* The static_cast around get_collection is needed because otherwise Android
+ SDK's g++ 4.9 fails to parse get<Texture> as a template function call */
+ (static_cast<C &>(obj).*set_texture)(&static_cast<Collection &>(get_collection()).get<Texture>(name));
}