currently trying to make a skybox using the soil lib. However, I get these two errors and have no idea why or what to do to fix them... If anyone could offer any help or suggestions would be greatly appreciated!
GLuint textureCon;
int widthX, heightY;
unsigned char* imageInfo;
std::list<int> faces;
faces.push_back(6);
glBindTexture(GL_TEXTURE_CUBE_MAP, textureCon);
for (GLuint i = 0; i < faces.size(); i++)
{
imageInfo = SOIL_load_image(faces[i], &widthX, &heightY, 0, SOIL_LOAD_RGB);
glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_RGB, widthX, heightY, 0, GL_RGB, GL_UNSIGNED_BYTE, imageInfo);
}
Where I'm saying faces[i]
that is where the E0349 error occurs saying that the square brackets don't match the operator? But I thought that's how to use lists?
Thanks again for any help!