title: Cube mesh with libgdx on Android
body: <p>I've done a mesh with libgdx and I'm trying to fill the mesh with some color.</p>
  
  <pre><code>create() {
           if (bigMesh == null) {
              bigMesh = new Mesh(true, 8, 8, 
                      new VertexAttribute(Usage.Position, 3, "a_position"),
                      new VertexAttribute(Usage.ColorPacked, 4, "a_color"));
  
              bigMesh.setVertices(new float[] {
                      0, -0.5f, -4, Color.toFloatBits(255, 0, 0, 255),
                      1, -0.5f, -4, Color.toFloatBits(255, 0, 0, 255),
                      1, 0.5f, -4, Color.toFloatBits(255, 0, 0, 255),
                      0, 0.5f, -4, Color.toFloatBits(255, 0, 0, 255),
  
                      1, 0.5f, -3, Color.toFloatBits(0, 255, 0, 255),
                      1, -0.5f, -3, Color.toFloatBits(0, 255, 0, 255),
                      0, -0.5f, -3, Color.toFloatBits(0, 255, 0, 255),
                      0, 0.5f,-3, Color.toFloatBits(0, 255, 0, 255)
                     });   
              bigMesh.setIndices(new short[] { 0, 1, 2, 3,4,5,6,7});
          }
  }
  
  render(){
          Gdx.gl.glClearColor(0,0,0,1);
          Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
          bigMesh.render(GL10.GL_TRIANGLE_STRIP);
  }
  </code></pre>
  
  <p>Which render paremeter shall I use? I'm using PerspectiveCamera.</p>