Доброго вечера! Пытаюсь считать файл такого формата:
content//welcome.jpg
1
-1
1
-1
content//logo.png
0.8
-0.8
0.8
0.4
struct Image
{
//float**TextureCoordinats;
float**VertexCoordinats;
unsigned int*IndexTexture;
std::string *Name;
int *number;
};
std::ifstream in("welcome coordinats.txt");
Image *im = new Image();
if (in.is_open())
{
while (in >> im->Name)
{
//new_operations.push_back(Operation(sum, rate));
}
}
in.close();