Please help me with tutorial 6
I have studied tutorial 6 and have modified it so, that it draws to cubes instead of one. I would like the cubes have different texture maps, but don''t know how to do it. If I set the texture map of the first cube the other cube will have the exactly same texture. I have written a class like below. If I load the textures in the texture[0], in different objects, the both cubes have still the same texture. Please help me...
class CCube {
double x;
double y;
double z;
double size;
...
public:
GLuint texture[1];
...
};
Thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement