I am very new to OpenGL. I am trying to render multiple teapots in the Image Target sample on one image target, but it doesn't work for me. I tried adding the projection/model transformation function calls at the end of the renderFrame() function and also added the glDrawElements() function call again expecting the scene to render and translate the second object on the scene in accordance to my parameters in the transformation function calls, but it doesn't work. Here is what I added at the end of the Image Target sample:
SampleUtils::rotatePoseMatrix(5.0f, 0.0f, 0.0f, 1.0f, &modelViewMatrix.data);
SampleUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale,
glDrawElements(GL_TRIANGLES, NUM_TEAPOT_OBJECT_INDEX, GL_UNSIGNED_SHORT,
(const GLvoid*) &teapotIndices);
Can you please advise me as to what I need to do to render two or more teapots on one image target?