What is allowed between two calls to glDrawElements?
satya - Friday, July 10, 2009 12:52:06 PM
Can I change camera position between two calls to glDrawElements?
Can I change camera position between two calls to glDrawElements?
Search for: Can I change camera position between two calls to glDrawElements?
satya - Friday, July 10, 2009 12:52:43 PM
Can I change transformation matrix between two calls to glDrawElements?
Can I change transformation matrix between two calls to glDrawElements?
Search for: Can I change transformation matrix between two calls to glDrawElements?
satya - Saturday, July 11, 2009 11:36:21 PM
This is a great article (pdf) on transformation matrices and drawing multiple figures
This is a great article (pdf) on transformation matrices and drawing multiple figures
This is from Wayne Cochrans' CS notes
satya - Monday, July 13, 2009 7:34:50 PM
The following is the norm!!!
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mFVertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mFTextureBuffer);
gl.glPushMatrix();
gl.glScalef(0.5f, 0.5f, 1.0f);
gl.glTranslatef(0.5f,0, 0);
gl.glDrawElements(GL10.GL_TRIANGLES, this.numOfIndecies,
GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
gl.glPopMatrix();
gl.glPushMatrix();
gl.glScalef(0.5f, 0.5f, 1.0f);
gl.glTranslatef(-0.5f,0, 0);
gl.glDrawElements(GL10.GL_TRIANGLES, this.numOfIndecies,
GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
gl.glPopMatrix();