How to use this for polygon tesselation

90 views
Skip to first unread message

Ed Anuff

unread,
Feb 15, 2009, 4:58:26 PM2/15/09
to iphone-glu
Sorry for what might be a very basic question about how to use iglu
with the OpenGL tesselation example code. I've been trying to convert
the class from this page:

http://www.flipcode.com/tutorials/tut_tesselation.shtml

to use the iglu library. It's basically a C++ wrapper around the
polygon tesselation example in the OpenGL redbook. My main questions
are what to use instead of glBegin, glEnd, glVertex3dv and glColor3dv
in this code?

Thanks

Ed

Christopher Stawarz

unread,
Feb 17, 2009, 9:33:13 AM2/17/09
to iphon...@googlegroups.com
Hi Ed,

Since OpenGL ES doesn't support immediate-mode rendering, you need to
store the vertices passed to the vertex callback in vertex arrays, and
then render each polygon when it's complete (or, alternatively, defer
all rendering until the tessellation is finished). The following
tutorial describes how to use vertex arrays:

http://www.songho.ca/opengl/gl_vertexarray.html


Cheers,
Chris

Justin

unread,
Mar 22, 2009, 5:50:50 AM3/22/09
to iphone-glu
I'm having the same problem as Ed. Could someone post a sample code
that does a simple polygon tessellation?
Reply all
Reply to author
Forward
0 new messages