GL11.glLoadIdentity();GL11.glColor3f(1.0f,1.0f,1.0f);GL11.glTranslatef(-34f,-24f,-70);cubeRender();
GL11.glPushMatrix(); float positionX = indexX*2.2f; [i]// Index are position of cube in txt file(Iam using tilemap)[/i] float positionY = indexY*2.2f; GL11.glTranslatef(positionX,positionY,0f); GL11.glRotatef(90,1,0,0); GL11.glScalef(0.01f,0.01f,0.01f); cubeTexture.bind(); cubeModel.render(); GL11.glPopMatrix();