LWJGL Forum

Programming => OpenGL => Topic started by: CaseyB on September 15, 2005, 17:35:56

Title: Batching
Post by: CaseyB on September 15, 2005, 17:35:56
Between GL11.glBegin(GL11.GL_TRIANGLES) /* or GL_QUADS */ and GL11.glEnd(), one can define as many triangles (or quads) and they want.  Is there any way to do the same with GL_POLYONS or is it only polygon per begin/end?

Casey
Title: Batching
Post by: princec on September 15, 2005, 18:08:31
Just one. The glEnd() tells it that you want to join the last point with the first one, you see.

Cas :)
Title: Batching
Post by: CaseyB on September 15, 2005, 18:21:19
Yeah, that's what I thought, but I wanted to double check!  Thanks!