SOLVED sorry can't delete
Hi all,
I'm a fairly advanced C programmer but have little experience in C++, and need to convert some code to C++, basically I have 3 "nested classes" but am having trouble calling a variable from the "inner class".
Basically "main" class is MD5ModelLoader, then I have a class for mesh
class Mesh
{
public:
std ::vector<Texture> textures;
std ::vector<vertecies> verts;
//etc.......
};
and a texture class
class Texture
{
public:
std::string texture_name;
}
so if I want to display texture string I do
mesh->textures.texture_name=shader_from_file;
printf("shader name %s \n",mesh->texture.texture_name.c_str());
This gives me
error : 'class std :: vector<MD5ModelLoader::Texture, std::<MD5ModelLoader::Texture> >' has no member named 'texture_name'
It looks like it's not seeing mesh class, but I know it is because the vettecies class works fine :s
normally I'd do these as structures but need to use C++, can anyone advise. Thanks.
