I have a simple 3D cube in openGL drawn by glut:
glLoadIdentity();
glTranslatef(0.0f,0.0f,-5.0f);
glutWireCube(2.0f);
Now, if I'm using a very simple model / texture (say a RAW file drawn in photoshop) how can I then assign these textures (for a cube I'd probably make a "face" model and simply display it across the 6 faces of the cube) to the shape in the code so that when I manipulate the shape - resize, translate, etc. - the texture / model changes along with the shape?