title: How to make a cube in pyglet with images on faces
body: <p>I'm making a 3d game, and i need to paste images on a cube, but I can't find out where the <code>front</code>/<code>back</code>/<code>top</code>/<code>bottom</code>/<code>left</code>/<code>right</code> textures should go.</p>
  
  <p>I just started using pyglet, so I'm not very familiar with it. I've been flipping the texture part of the cube for a few days now, and it's still a mess. Here's my code for the cube function below:</p>
  
  <pre class="lang-py prettyprint-override"><code>def cuboid(self, x1,y1,z1, x2,y2,z2, tex):
      '''
      Draws a cuboid from x1,y1,z1 to x2,y2,z2 and covers each side with tex\n
      tex format:\n
          (front, back, left, right, top, bottom)
      Facing in the -z direction
      '''
      front = tex[0]
      back = tex[1]
      left = tex[2]
      right = tex[3]
      top = tex[4]
      bottom = tex[5]
  
      tex_coords = ("t2f", (0,0, 1,0, 1,1, 0,1))
  
      self.batch.add(4,GL_QUADS,back,('v3f',(x1,y1,z1, x1,y1,z2, x1,y2,z2, x1,y2,z1, )),tex_coords)
      self.batch.add(4,GL_QUADS,right,('v3f',(x2,y1,z2, x2,y1,z1, x2,y2,z1, x2,y2,z2, )),tex_coords)
      self.batch.add(4,GL_QUADS,top,('v3f',(x1,y1,z1, x2,y1,z1, x2,y1,z2, x1,y1,z2, )),tex_coords)
      self.batch.add(4,GL_QUADS,front,('v3f',(x1,y2,z2, x2,y2,z2, x2,y2,z1, x1,y2,z1, )),tex_coords)
      self.batch.add(4,GL_QUADS,bottom,('v3f',(x2,y1,z1, x1,y1,z1, x1,y2,z1, x2,y2,z1, )),tex_coords)
      self.batch.add(4,GL_QUADS,left,('v3f',(x1,y1,z2, x2,y1,z2, x2,y2,z2, x1,y2,z2, )),tex_coords)
  </code></pre>
  
  <p>I cannot show what I was expecting because I don't have a working 3d rendering program.</p>