Modifiable value error
I am trying to get my vertex to read from a file but it keeps giving me an error. I get an expression must be a modifiable lvalue for indexedVertices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
bool Cube::Load(char * path)
{
ifstream inFile;
inFile.open(path);
if (!inFile.good())
{
cerr << "Can't open texture file " << path << endl;
return false;
}
inFile >> numVertices;
indexedVertices = new Vertex[numVertices];
for (int i = 0; i < numVertices; i++)
{
}
inFile >> numColours;
for (int i = 0; i < numColours; i++)
{
}
//TODO: Load the Index information from file
inFile.close();
return true;
}
| |
Last edited on
How is indexedVertices declared?
Topic archived. No new replies allowed.